@Generated(value="software.amazon.awssdk:codegen") public final class RetentionPeriod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>
Information about the retention period for which the retention rule is to retain resources.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RetentionPeriod.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RetentionPeriod.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
RetentionPeriodUnit |
retentionPeriodUnit()
The unit of time in which the retention period is measured.
|
String |
retentionPeriodUnitAsString()
The unit of time in which the retention period is measured.
|
Integer |
retentionPeriodValue()
The period value for which the retention rule is to retain resources.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RetentionPeriod.Builder> |
serializableBuilderClass() |
RetentionPeriod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer retentionPeriodValue()
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
public final RetentionPeriodUnit retentionPeriodUnit()
The unit of time in which the retention period is measured. Currently, only DAYS is supported.
If the service returns an enum value that is not available in the current SDK version,
retentionPeriodUnit will return RetentionPeriodUnit.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from retentionPeriodUnitAsString().
DAYS is
supported.RetentionPeriodUnitpublic final String retentionPeriodUnitAsString()
The unit of time in which the retention period is measured. Currently, only DAYS is supported.
If the service returns an enum value that is not available in the current SDK version,
retentionPeriodUnit will return RetentionPeriodUnit.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from retentionPeriodUnitAsString().
DAYS is
supported.RetentionPeriodUnitpublic RetentionPeriod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RetentionPeriod.Builder,RetentionPeriod>public static RetentionPeriod.Builder builder()
public static Class<? extends RetentionPeriod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.