Class CfnBucket.NoncurrentVersionTransitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.NoncurrentVersionTransitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.NoncurrentVersionTransitionProperty>
- Enclosing interface:
CfnBucket.NoncurrentVersionTransitionProperty
@Stability(Stable)
public static final class CfnBucket.NoncurrentVersionTransitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.NoncurrentVersionTransitionProperty>
A builder for
CfnBucket.NoncurrentVersionTransitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.newerNoncurrentVersions
(Number newerNoncurrentVersions) storageClass
(String storageClass) Sets the value ofCfnBucket.NoncurrentVersionTransitionProperty.getStorageClass()
transitionInDays
(Number transitionInDays) Sets the value ofCfnBucket.NoncurrentVersionTransitionProperty.getTransitionInDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storageClass
@Stability(Stable) public CfnBucket.NoncurrentVersionTransitionProperty.Builder storageClass(String storageClass) Sets the value ofCfnBucket.NoncurrentVersionTransitionProperty.getStorageClass()
- Parameters:
storageClass
- The class of storage used to store the object. This parameter is required.- Returns:
this
-
transitionInDays
@Stability(Stable) public CfnBucket.NoncurrentVersionTransitionProperty.Builder transitionInDays(Number transitionInDays) Sets the value ofCfnBucket.NoncurrentVersionTransitionProperty.getTransitionInDays()
- Parameters:
transitionInDays
- Specifies the number of days an object is noncurrent before Amazon S3 can perform the associated action. This parameter is required. For information about the noncurrent days calculations, see How Amazon S3 Calculates How Long an Object Has Been Noncurrent in the Amazon S3 User Guide .- Returns:
this
-
newerNoncurrentVersions
@Stability(Stable) public CfnBucket.NoncurrentVersionTransitionProperty.Builder newerNoncurrentVersions(Number newerNoncurrentVersions) - Parameters:
newerNoncurrentVersions
- Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent versions, see Lifecycle configuration elements in the Amazon S3 User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.NoncurrentVersionTransitionProperty>
- Returns:
- a new instance of
CfnBucket.NoncurrentVersionTransitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-