@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetentionArchiveTier extends Object implements Serializable, Cloneable, StructuredPojo
[Snapshot policies only] Describes the retention rule for archived snapshots. Once the archive retention threshold is met, the snapshots are permanently deleted from the archive tier.
The archive retention rule must retain snapshots in the archive tier for a minimum of 90 days.
For count-based schedules, you must specify Count. For age-based schedules, you must specify Interval and IntervalUnit.
For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies.
Constructor and Description |
---|
RetentionArchiveTier() |
Modifier and Type | Method and Description |
---|---|
RetentionArchiveTier |
clone() |
boolean |
equals(Object obj) |
Integer |
getCount()
The maximum number of snapshots to retain in the archive storage tier for each volume.
|
Integer |
getInterval()
Specifies the period of time to retain snapshots in the archive tier.
|
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 |
setCount(Integer count)
The maximum number of snapshots to retain in the archive storage tier for each volume.
|
void |
setInterval(Integer interval)
Specifies the period of time to retain snapshots in the archive tier.
|
void |
setIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
|
String |
toString()
Returns a string representation of this object.
|
RetentionArchiveTier |
withCount(Integer count)
The maximum number of snapshots to retain in the archive storage tier for each volume.
|
RetentionArchiveTier |
withInterval(Integer interval)
Specifies the period of time to retain snapshots in the archive tier.
|
RetentionArchiveTier |
withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time in which to measure the Interval.
|
RetentionArchiveTier |
withIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval.
|
public void setCount(Integer count)
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
count
- The maximum number of snapshots to retain in the archive storage tier for each volume. The count must
ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule
creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is
archived for at least 90 days.public Integer getCount()
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
public RetentionArchiveTier withCount(Integer count)
The maximum number of snapshots to retain in the archive storage tier for each volume. The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
count
- The maximum number of snapshots to retain in the archive storage tier for each volume. The count must
ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule
creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is
archived for at least 90 days.public void setInterval(Integer interval)
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
interval
- Specifies the period of time to retain snapshots in the archive tier. After this period expires, the
snapshot is permanently deleted.public Integer getInterval()
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
public RetentionArchiveTier withInterval(Integer interval)
Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.
interval
- Specifies the period of time to retain snapshots in the archive tier. After this period expires, the
snapshot is permanently deleted.public void setIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier
for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
intervalUnit
- The unit of time in which to measure the Interval. For example, to retain a snapshots in the
archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public String getIntervalUnit()
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier
for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
Interval=6
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public RetentionArchiveTier withIntervalUnit(String intervalUnit)
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier
for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
intervalUnit
- The unit of time in which to measure the Interval. For example, to retain a snapshots in the
archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public RetentionArchiveTier withIntervalUnit(RetentionIntervalUnitValues intervalUnit)
The unit of time in which to measure the Interval. For example, to retain a snapshots in the archive tier
for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.
intervalUnit
- The unit of time in which to measure the Interval. For example, to retain a snapshots in the
archive tier for 6 months, specify Interval=6
and IntervalUnit=MONTHS
.RetentionIntervalUnitValues
public String toString()
toString
in class Object
Object.toString()
public RetentionArchiveTier clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.