Class CrossRegionCopyDeprecateRule
- java.lang.Object
-
- software.amazon.awssdk.services.dlm.model.CrossRegionCopyDeprecateRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CrossRegionCopyDeprecateRule.Builder,CrossRegionCopyDeprecateRule>
@Generated("software.amazon.awssdk:codegen") public final class CrossRegionCopyDeprecateRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CrossRegionCopyDeprecateRule.Builder,CrossRegionCopyDeprecateRule>
[AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCrossRegionCopyDeprecateRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CrossRegionCopyDeprecateRule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerinterval()The period after which to deprecate the cross-Region AMI copies.RetentionIntervalUnitValuesintervalUnit()The unit of time in which to measure the Interval.StringintervalUnitAsString()The unit of time in which to measure the Interval.List<SdkField<?>>sdkFields()static Class<? extends CrossRegionCopyDeprecateRule.Builder>serializableBuilderClass()CrossRegionCopyDeprecateRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
interval
public 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.
- Returns:
- 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.
-
intervalUnit
public final RetentionIntervalUnitValues intervalUnit()
The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify
Interval=3andIntervalUnit=MONTHS.If the service returns an enum value that is not available in the current SDK version,
intervalUnitwill returnRetentionIntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromintervalUnitAsString().- Returns:
- The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI
copy after 3 months, specify
Interval=3andIntervalUnit=MONTHS. - See Also:
RetentionIntervalUnitValues
-
intervalUnitAsString
public final String intervalUnitAsString()
The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify
Interval=3andIntervalUnit=MONTHS.If the service returns an enum value that is not available in the current SDK version,
intervalUnitwill returnRetentionIntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromintervalUnitAsString().- Returns:
- The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI
copy after 3 months, specify
Interval=3andIntervalUnit=MONTHS. - See Also:
RetentionIntervalUnitValues
-
toBuilder
public CrossRegionCopyDeprecateRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CrossRegionCopyDeprecateRule.Builder,CrossRegionCopyDeprecateRule>
-
builder
public static CrossRegionCopyDeprecateRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends CrossRegionCopyDeprecateRule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-