Class CfnBucket.TieringProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.TieringProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.TieringProperty>
- Enclosing interface:
- CfnBucket.TieringProperty
@Stability(Stable)
public static final class CfnBucket.TieringProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.TieringProperty>
A builder for
CfnBucket.TieringProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessTier
(String accessTier) Sets the value ofCfnBucket.TieringProperty.getAccessTier()
build()
Builds the configured instance.Sets the value ofCfnBucket.TieringProperty.getDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessTier
Sets the value ofCfnBucket.TieringProperty.getAccessTier()
- Parameters:
accessTier
- S3 Intelligent-Tiering access tier. This parameter is required. 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 ofCfnBucket.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. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.TieringProperty>
- Returns:
- a new instance of
CfnBucket.TieringProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-