Class NoncurrentVersionTransition.Builder
java.lang.Object
software.amazon.awscdk.services.s3.NoncurrentVersionTransition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NoncurrentVersionTransition>
- Enclosing interface:
NoncurrentVersionTransition
@Stability(Stable)
public static final class NoncurrentVersionTransition.Builder
extends Object
implements software.amazon.jsii.Builder<NoncurrentVersionTransition>
A builder for
NoncurrentVersionTransition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.noncurrentVersionsToRetain
(Number noncurrentVersionsToRetain) Sets the value ofNoncurrentVersionTransition.getNoncurrentVersionsToRetain()
storageClass
(StorageClass storageClass) Sets the value ofNoncurrentVersionTransition.getStorageClass()
transitionAfter
(Duration transitionAfter) Sets the value ofNoncurrentVersionTransition.getTransitionAfter()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storageClass
@Stability(Stable) public NoncurrentVersionTransition.Builder storageClass(StorageClass storageClass) Sets the value ofNoncurrentVersionTransition.getStorageClass()
- Parameters:
storageClass
- The storage class to which you want the object to transition. This parameter is required.- Returns:
this
-
transitionAfter
@Stability(Stable) public NoncurrentVersionTransition.Builder transitionAfter(Duration transitionAfter) Sets the value ofNoncurrentVersionTransition.getTransitionAfter()
- Parameters:
transitionAfter
- Indicates the number of days after creation when objects are transitioned to the specified storage class. This parameter is required.- Returns:
this
-
noncurrentVersionsToRetain
@Stability(Stable) public NoncurrentVersionTransition.Builder noncurrentVersionsToRetain(Number noncurrentVersionsToRetain) Sets the value ofNoncurrentVersionTransition.getNoncurrentVersionsToRetain()
- Parameters:
noncurrentVersionsToRetain
- Indicates the number of noncurrent version objects to be retained. Can be up to 100 noncurrent versions retained.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NoncurrentVersionTransition>
- Returns:
- a new instance of
NoncurrentVersionTransition
- Throws:
NullPointerException
- if any required attribute was not provided
-