Class Transition
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.Transition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Transition.Builder,Transition>
@Generated("software.amazon.awssdk:codegen") public final class Transition extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTransition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Transition.Builderbuilder()Instantdate()Indicates when objects are transitioned to the specified storage class.Integerdays()Indicates the number of days after creation when objects are transitioned to the specified storage class.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Transition.Builder>serializableBuilderClass()TransitionStorageClassstorageClass()The storage class to which you want the object to transition.StringstorageClassAsString()The storage class to which you want the object to transition.Transition.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
date
public final Instant 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
public final Integer 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
public final TransitionStorageClass 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:
TransitionStorageClass
-
storageClassAsString
public final String 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:
TransitionStorageClass
-
toBuilder
public Transition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Transition.Builder,Transition>
-
builder
public static Transition.Builder builder()
-
serializableBuilderClass
public static Class<? extends Transition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-