Class Transition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Transition.Builder,Transition>
Specifies when an object transitions to a specified storage class. For more information about Amazon S3 lifecycle configuration rules, see Transitioning Objects Using Amazon S3 Lifecycle in the Amazon S3 User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Transition.Builderbuilder()final Instantdate()Indicates when objects are transitioned to the specified storage class.final Integerdays()Indicates the number of days after creation when objects are transitioned to the specified storage class.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends Transition.Builder>final TransitionStorageClassThe storage class to which you want the object to transition.final StringThe storage class to which you want the object to transition.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
date
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:
- 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.
-
days
Indicates the number of days after creation when objects are transitioned to the specified storage class. If the specified storage class is
INTELLIGENT_TIERING,GLACIER_IR,GLACIER, orDEEP_ARCHIVE, valid values are0or positive integers. If the specified storage class isSTANDARD_IAorONEZONE_IA, valid values are positive integers greater than30. Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see Constraints and considerations for transitions in the Amazon S3 User Guide.- Returns:
- Indicates the number of days after creation when objects are transitioned to the specified storage class.
If the specified storage class is
INTELLIGENT_TIERING,GLACIER_IR,GLACIER, orDEEP_ARCHIVE, valid values are0or positive integers. If the specified storage class isSTANDARD_IAorONEZONE_IA, valid values are positive integers greater than30. Be aware that some storage classes have a minimum storage duration and that you're charged for transitioning objects before their minimum storage duration. For more information, see Constraints and considerations for transitions in the Amazon S3 User Guide.
-
storageClass
The storage class to which you want the object to transition.
If the service returns an enum value that is not available in the current SDK version,
storageClasswill returnTransitionStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageClassAsString().- Returns:
- The storage class to which you want the object to transition.
- See Also:
-
storageClassAsString
The storage class to which you want the object to transition.
If the service returns an enum value that is not available in the current SDK version,
storageClasswill returnTransitionStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstorageClassAsString().- Returns:
- The storage class to which you want the object to transition.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Transition.Builder,Transition>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-