@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CrossRegionCopyRetainRule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the retention rule for cross-Region snapshot copies.
| Constructor and Description |
|---|
CrossRegionCopyRetainRule() |
| Modifier and Type | Method and Description |
|---|---|
CrossRegionCopyRetainRule |
clone() |
boolean |
equals(Object obj) |
Integer |
getInterval()
The amount of time to retain each snapshot.
|
String |
getIntervalUnit()
The unit of time for time-based retention.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setInterval(Integer interval)
The amount of time to retain each snapshot.
|
void |
setIntervalUnit(String intervalUnit)
The unit of time for time-based retention.
|
String |
toString()
Returns a string representation of this object.
|
CrossRegionCopyRetainRule |
withInterval(Integer interval)
The amount of time to retain each snapshot.
|
CrossRegionCopyRetainRule |
withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time for time-based retention.
|
CrossRegionCopyRetainRule |
withIntervalUnit(String intervalUnit)
The unit of time for time-based retention.
|
public void setInterval(Integer interval)
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
interval - The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months,
5200 weeks, or 36500 days.public Integer getInterval()
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
public CrossRegionCopyRetainRule withInterval(Integer interval)
The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
interval - The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months,
5200 weeks, or 36500 days.public void setIntervalUnit(String intervalUnit)
The unit of time for time-based retention.
intervalUnit - The unit of time for time-based retention.RetentionIntervalUnitValuespublic String getIntervalUnit()
The unit of time for time-based retention.
RetentionIntervalUnitValuespublic CrossRegionCopyRetainRule withIntervalUnit(String intervalUnit)
The unit of time for time-based retention.
intervalUnit - The unit of time for time-based retention.RetentionIntervalUnitValuespublic CrossRegionCopyRetainRule withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time for time-based retention.
intervalUnit - The unit of time for time-based retention.RetentionIntervalUnitValuespublic String toString()
toString in class ObjectObject.toString()public CrossRegionCopyRetainRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.