@Generated(value="software.amazon.awssdk:codegen") public final class CrossRegionCopyRetainRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CrossRegionCopyRetainRule.Builder,CrossRegionCopyRetainRule>
Specifies the retention rule for cross-Region snapshot copies.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CrossRegionCopyRetainRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CrossRegionCopyRetainRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
interval()
The amount of time to retain each snapshot.
|
RetentionIntervalUnitValues |
intervalUnit()
The unit of time for time-based retention.
|
String |
intervalUnitAsString()
The unit of time for time-based retention.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CrossRegionCopyRetainRule.Builder> |
serializableBuilderClass() |
CrossRegionCopyRetainRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer interval()
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
public final RetentionIntervalUnitValues intervalUnit()
The unit of time for time-based retention.
If the service returns an enum value that is not available in the current SDK version, intervalUnit will
return RetentionIntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from intervalUnitAsString().
RetentionIntervalUnitValuespublic final String intervalUnitAsString()
The unit of time for time-based retention.
If the service returns an enum value that is not available in the current SDK version, intervalUnit will
return RetentionIntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from intervalUnitAsString().
RetentionIntervalUnitValuespublic CrossRegionCopyRetainRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CrossRegionCopyRetainRule.Builder,CrossRegionCopyRetainRule>public static CrossRegionCopyRetainRule.Builder builder()
public static Class<? extends CrossRegionCopyRetainRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.