Class CfnBucket.TransitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.TransitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.TransitionProperty>
- Enclosing interface:
- CfnBucket.TransitionProperty
@Stability(Stable)
public static final class CfnBucket.TransitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.TransitionProperty>
A builder for
CfnBucket.TransitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.storageClass
(String storageClass) Sets the value ofCfnBucket.TransitionProperty.getStorageClass()
transitionDate
(Instant transitionDate) Sets the value ofCfnBucket.TransitionProperty.getTransitionDate()
transitionDate
(IResolvable transitionDate) Sets the value ofCfnBucket.TransitionProperty.getTransitionDate()
transitionInDays
(Number transitionInDays) Sets the value ofCfnBucket.TransitionProperty.getTransitionInDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storageClass
Sets the value ofCfnBucket.TransitionProperty.getStorageClass()
- Parameters:
storageClass
- The storage class to which you want the object to transition. This parameter is required.- Returns:
this
-
transitionDate
@Stability(Stable) public CfnBucket.TransitionProperty.Builder transitionDate(IResolvable transitionDate) Sets the value ofCfnBucket.TransitionProperty.getTransitionDate()
- Parameters:
transitionDate
- Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.- Returns:
this
-
transitionDate
@Stability(Stable) public CfnBucket.TransitionProperty.Builder transitionDate(Instant transitionDate) Sets the value ofCfnBucket.TransitionProperty.getTransitionDate()
- Parameters:
transitionDate
- Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.- Returns:
this
-
transitionInDays
@Stability(Stable) public CfnBucket.TransitionProperty.Builder transitionInDays(Number transitionInDays) Sets the value ofCfnBucket.TransitionProperty.getTransitionInDays()
- Parameters:
transitionInDays
- Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.TransitionProperty>
- Returns:
- a new instance of
CfnBucket.TransitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-