Class CfnBucketPropsMixin.TransitionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketPropsMixin.TransitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.TransitionProperty>
- Enclosing interface:
CfnBucketPropsMixin.TransitionProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.TransitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.TransitionProperty>
A builder for
CfnBucketPropsMixin.TransitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.storageClass(String storageClass) Sets the value ofCfnBucketPropsMixin.TransitionProperty.getStorageClass()transitionDate(Instant transitionDate) Sets the value ofCfnBucketPropsMixin.TransitionProperty.getTransitionDate()transitionDate(IResolvable transitionDate) Sets the value ofCfnBucketPropsMixin.TransitionProperty.getTransitionDate()transitionInDays(Number transitionInDays) Sets the value ofCfnBucketPropsMixin.TransitionProperty.getTransitionInDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storageClass
@Stability(Stable) public CfnBucketPropsMixin.TransitionProperty.Builder storageClass(String storageClass) Sets the value ofCfnBucketPropsMixin.TransitionProperty.getStorageClass()- Parameters:
storageClass- The storage class to which you want the object to transition.- Returns:
this
-
transitionDate
@Stability(Stable) public CfnBucketPropsMixin.TransitionProperty.Builder transitionDate(Instant transitionDate) Sets the value ofCfnBucketPropsMixin.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 CfnBucketPropsMixin.TransitionProperty.Builder transitionDate(IResolvable transitionDate) Sets the value ofCfnBucketPropsMixin.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 CfnBucketPropsMixin.TransitionProperty.Builder transitionInDays(Number transitionInDays) Sets the value ofCfnBucketPropsMixin.TransitionProperty.getTransitionInDays()- Parameters:
transitionInDays- Indicates the number of days after creation when objects are transitioned to the specified storage class. If the specified storage class isINTELLIGENT_TIERING,GLACIER_IR,GLACIER, orDEEP_ARCHIVE, valid values are0or positive integers. If the specified storage class isSTANDARD_IAorONEZONE_IA, valid values are positive integers greater than30. Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see Constraints and considerations for transitions in the Amazon S3 User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.TransitionProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.TransitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-