@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CrossRegionCopyDeprecateRule extends Object implements Serializable, Cloneable, StructuredPojo
[Custom AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
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)
Marshalls this structured data using the given
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. For example, to deprecate a cross-Region AMI copy after
3 months, specify Interval=3
and IntervalUnit=MONTHS
.
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=3
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public String getIntervalUnit()
The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after
3 months, specify Interval=3
and IntervalUnit=MONTHS
.
Interval=3
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public CrossRegionCopyDeprecateRule withIntervalUnit(String 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=3
and IntervalUnit=MONTHS
.
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=3
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public CrossRegionCopyDeprecateRule withIntervalUnit(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=3
and IntervalUnit=MONTHS
.
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=3
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public String toString()
toString
in class Object
Object.toString()
public CrossRegionCopyDeprecateRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.