@Generated(value="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.
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) |
<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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public 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 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.
public 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()
.
TransitionStorageClass
public 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()
.
TransitionStorageClass
public Transition.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Transition.Builder,Transition>
public static Transition.Builder builder()
public static Class<? extends Transition.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.