@Generated(value="software.amazon.awssdk:codegen") public final class CrossRegionCopyRetainRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CrossRegionCopyRetainRule.Builder,CrossRegionCopyRetainRule>
Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.
| 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 a cross-Region snapshot or AMI copy.
|
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 a cross-Region snapshot or AMI copy. 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. For example, to retain a cross-Region copy for 3 months, specify
Interval=3 and IntervalUnit=MONTHS.
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().
Interval=3 and IntervalUnit=MONTHS.RetentionIntervalUnitValuespublic final String intervalUnitAsString()
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify
Interval=3 and IntervalUnit=MONTHS.
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().
Interval=3 and IntervalUnit=MONTHS.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 © 2023. All rights reserved.