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 interface
Transition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
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()
String
toString()
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. The value must be a positive integer.
- Returns:
- Indicates the number of days after creation when objects are transitioned to the specified storage class. The value must be a positive integer.
-
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,
storageClass
will 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,
storageClass
will 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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-