Class CfnBucket.IntelligentTieringConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.IntelligentTieringConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.IntelligentTieringConfigurationProperty>
- Enclosing interface:
- CfnBucket.IntelligentTieringConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.IntelligentTieringConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.IntelligentTieringConfigurationProperty>
A builder for
CfnBucket.IntelligentTieringConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getId()
Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getPrefix()
Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getStatus()
tagFilters
(List<? extends Object> tagFilters) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTagFilters()
tagFilters
(IResolvable tagFilters) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTagFilters()
Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTierings()
tierings
(IResolvable tierings) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTierings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getId()
- Parameters:
id
- The ID used to identify the S3 Intelligent-Tiering configuration. This parameter is required.- Returns:
this
-
status
@Stability(Stable) public CfnBucket.IntelligentTieringConfigurationProperty.Builder status(String status) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getStatus()
- Parameters:
status
- Specifies the status of the configuration. This parameter is required.- Returns:
this
-
tierings
@Stability(Stable) public CfnBucket.IntelligentTieringConfigurationProperty.Builder tierings(IResolvable tierings) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTierings()
- Parameters:
tierings
- Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. This parameter is required. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier:ARCHIVE_ACCESS
andDEEP_ARCHIVE_ACCESS
.You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.
- Returns:
this
-
tierings
@Stability(Stable) public CfnBucket.IntelligentTieringConfigurationProperty.Builder tierings(List<? extends Object> tierings) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTierings()
- Parameters:
tierings
- Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration. This parameter is required. At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier:ARCHIVE_ACCESS
andDEEP_ARCHIVE_ACCESS
.You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.
- Returns:
this
-
prefix
@Stability(Stable) public CfnBucket.IntelligentTieringConfigurationProperty.Builder prefix(String prefix) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getPrefix()
- Parameters:
prefix
- An object key name prefix that identifies the subset of objects to which the rule applies.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnBucket.IntelligentTieringConfigurationProperty.Builder tagFilters(IResolvable tagFilters) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTagFilters()
- Parameters:
tagFilters
- A container for a key-value pair.- Returns:
this
-
tagFilters
@Stability(Stable) public CfnBucket.IntelligentTieringConfigurationProperty.Builder tagFilters(List<? extends Object> tagFilters) Sets the value ofCfnBucket.IntelligentTieringConfigurationProperty.getTagFilters()
- Parameters:
tagFilters
- A container for a key-value pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.IntelligentTieringConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.IntelligentTieringConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-