@Generated(value="com.ibm.cos.v2: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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Transition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Transition.Builder |
builder() |
Instant |
date()
Indicates when objects are transitioned to the specified storage class.
|
Integer |
days()
Indicates the number of days after creation when objects are transitioned to the specified storage class.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<String,SdkField<?>> |
sdkFieldNameToField() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Transition.Builder> |
serializableBuilderClass() |
TransitionStorageClass |
storageClass()
The storage class to which you want the object to transition.
|
String |
storageClassAsString()
The storage class to which you want the object to transition.
|
Transition.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
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, or
DEEP_ARCHIVE, valid values are 0 or positive integers. If the specified storage class
is STANDARD_IA or ONEZONE_IA, valid values are positive integers greater than
30. 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.
INTELLIGENT_TIERING, GLACIER_IR,
GLACIER, or DEEP_ARCHIVE, valid values are 0 or positive integers.
If the specified storage class is STANDARD_IA or ONEZONE_IA, valid values are
positive integers greater than 30. 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.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, storageClass will
return TransitionStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from storageClassAsString().
TransitionStorageClasspublic 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, storageClass will
return TransitionStorageClass.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from storageClassAsString().
TransitionStorageClasspublic Transition.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Transition.Builder,Transition>public static Transition.Builder builder()
public static Class<? extends Transition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojoSdkPojo class,
and is generated based on a service model.
If an SdkPojo class does not have any inherited fields, equalsBySdkFields
and equals are essentially the same.
equalsBySdkFields in interface SdkPojoobj - the object to be compared withpublic final String toString()
public final Map<String,SdkField<?>> sdkFieldNameToField()
sdkFieldNameToField in interface SdkPojoCopyright © 2026. All rights reserved.