Class CfnBucketPropsMixin.TieringProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.TieringProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.TieringProperty>
- Enclosing interface:
CfnBucketPropsMixin.TieringProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.TieringProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.TieringProperty>
A builder for
CfnBucketPropsMixin.TieringProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessTier(String accessTier) Sets the value ofCfnBucketPropsMixin.TieringProperty.getAccessTier()build()Builds the configured instance.Sets the value ofCfnBucketPropsMixin.TieringProperty.getDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessTier
Sets the value ofCfnBucketPropsMixin.TieringProperty.getAccessTier()- Parameters:
accessTier- S3 Intelligent-Tiering access tier. See Storage class for automatically optimizing frequently and infrequently accessed objects for a list of access tiers in the S3 Intelligent-Tiering storage class.- Returns:
this
-
days
Sets the value ofCfnBucketPropsMixin.TieringProperty.getDays()- Parameters:
days- The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.TieringProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.TieringProperty - Throws:
NullPointerException- if any required attribute was not provided
-