Class Transition.Builder
java.lang.Object
software.amazon.awscdk.services.s3.Transition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Transition>
- Enclosing interface:
Transition
@Stability(Stable)
public static final class Transition.Builder
extends Object
implements software.amazon.jsii.Builder<Transition>
A builder for
Transition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.storageClass
(StorageClass storageClass) Sets the value ofTransition.getStorageClass()
transitionAfter
(Duration transitionAfter) Sets the value ofTransition.getTransitionAfter()
transitionDate
(Instant transitionDate) Sets the value ofTransition.getTransitionDate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storageClass
Sets the value ofTransition.getStorageClass()
- Parameters:
storageClass
- The storage class to which you want the object to transition. This parameter is required.- Returns:
this
-
transitionAfter
Sets the value ofTransition.getTransitionAfter()
- Parameters:
transitionAfter
- Indicates the number of days after creation when objects are transitioned to the specified storage class.- Returns:
this
-
transitionDate
Sets the value ofTransition.getTransitionDate()
- Parameters:
transitionDate
- Indicates when objects are transitioned to the specified storage class. The date value must be in ISO 8601 format. The time is always midnight UTC.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Transition>
- Returns:
- a new instance of
Transition
- Throws:
NullPointerException
- if any required attribute was not provided
-