@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CrossRegionCopyDeprecateRule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an AMI deprecation rule for cross-Region AMI copies created by a cross-Region copy rule.
| Constructor and Description |
|---|
CrossRegionCopyDeprecateRule() |
| Modifier and Type | Method and Description |
|---|---|
CrossRegionCopyDeprecateRule |
clone() |
boolean |
equals(Object obj) |
Integer |
getInterval()
The period after which to deprecate the cross-Region AMI copies.
|
String |
getIntervalUnit()
The unit of time in which to measure the Interval.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setInterval(Integer interval)
The period after which to deprecate the cross-Region AMI copies.
|
void |
setIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
|
String |
toString()
Returns a string representation of this object.
|
CrossRegionCopyDeprecateRule |
withInterval(Integer interval)
The period after which to deprecate the cross-Region AMI copies.
|
CrossRegionCopyDeprecateRule |
withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time in which to measure the Interval.
|
CrossRegionCopyDeprecateRule |
withIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
|
public void setInterval(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.
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 Integer getInterval()
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 CrossRegionCopyDeprecateRule withInterval(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.
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 void setIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
intervalUnit - The unit of time in which to measure the Interval.RetentionIntervalUnitValuespublic String getIntervalUnit()
The unit of time in which to measure the Interval.
RetentionIntervalUnitValuespublic CrossRegionCopyDeprecateRule withIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
intervalUnit - The unit of time in which to measure the Interval.RetentionIntervalUnitValuespublic CrossRegionCopyDeprecateRule withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time in which to measure the Interval.
intervalUnit - The unit of time in which to measure the Interval.RetentionIntervalUnitValuespublic String toString()
toString in class ObjectObject.toString()public CrossRegionCopyDeprecateRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.