@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CalculatedLifecycle extends Object implements Serializable, Cloneable, StructuredPojo
Contains DeleteAt
and MoveToColdStorageAt
timestamps, which are used to specify a lifecycle
for a recovery point.
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
Constructor and Description |
---|
CalculatedLifecycle() |
Modifier and Type | Method and Description |
---|---|
CalculatedLifecycle |
clone() |
boolean |
equals(Object obj) |
Date |
getDeleteAt()
A timestamp that specifies when to delete a recovery point.
|
Date |
getMoveToColdStorageAt()
A timestamp that specifies when to transition a recovery point to cold storage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeleteAt(Date deleteAt)
A timestamp that specifies when to delete a recovery point.
|
void |
setMoveToColdStorageAt(Date moveToColdStorageAt)
A timestamp that specifies when to transition a recovery point to cold storage.
|
String |
toString()
Returns a string representation of this object.
|
CalculatedLifecycle |
withDeleteAt(Date deleteAt)
A timestamp that specifies when to delete a recovery point.
|
CalculatedLifecycle |
withMoveToColdStorageAt(Date moveToColdStorageAt)
A timestamp that specifies when to transition a recovery point to cold storage.
|
public void setMoveToColdStorageAt(Date moveToColdStorageAt)
A timestamp that specifies when to transition a recovery point to cold storage.
moveToColdStorageAt
- A timestamp that specifies when to transition a recovery point to cold storage.public Date getMoveToColdStorageAt()
A timestamp that specifies when to transition a recovery point to cold storage.
public CalculatedLifecycle withMoveToColdStorageAt(Date moveToColdStorageAt)
A timestamp that specifies when to transition a recovery point to cold storage.
moveToColdStorageAt
- A timestamp that specifies when to transition a recovery point to cold storage.public void setDeleteAt(Date deleteAt)
A timestamp that specifies when to delete a recovery point.
deleteAt
- A timestamp that specifies when to delete a recovery point.public Date getDeleteAt()
A timestamp that specifies when to delete a recovery point.
public CalculatedLifecycle withDeleteAt(Date deleteAt)
A timestamp that specifies when to delete a recovery point.
deleteAt
- A timestamp that specifies when to delete a recovery point.public String toString()
toString
in class Object
Object.toString()
public CalculatedLifecycle clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.