@Generated(value="software.amazon.awssdk:codegen") public final class CrossRegionCopyDeprecateRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CrossRegionCopyDeprecateRule.Builder,CrossRegionCopyDeprecateRule>
Specifies an AMI deprecation rule for cross-Region AMI copies created by a cross-Region copy rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CrossRegionCopyDeprecateRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CrossRegionCopyDeprecateRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
interval()
The period after which to deprecate the cross-Region AMI copies.
|
RetentionIntervalUnitValues |
intervalUnit()
The unit of time in which to measure the Interval.
|
String |
intervalUnitAsString()
The unit of time in which to measure the Interval.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CrossRegionCopyDeprecateRule.Builder> |
serializableBuilderClass() |
CrossRegionCopyDeprecateRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer interval()
The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
public final RetentionIntervalUnitValues intervalUnit()
The unit of time in which to measure the Interval.
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 in which to measure the Interval.
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 CrossRegionCopyDeprecateRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CrossRegionCopyDeprecateRule.Builder,CrossRegionCopyDeprecateRule>public static CrossRegionCopyDeprecateRule.Builder builder()
public static Class<? extends CrossRegionCopyDeprecateRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.