@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Lifecycle extends Object implements Serializable, Cloneable, StructuredPojo
Contains an array of Transition
objects specifying how long in days before a recovery point transitions
to cold storage or is deleted.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, on the console, 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.
Constructor and Description |
---|
Lifecycle() |
Modifier and Type | Method and Description |
---|---|
Lifecycle |
clone() |
boolean |
equals(Object obj) |
Long |
getDeleteAfterDays()
Specifies the number of days after creation that a recovery point is deleted.
|
Long |
getMoveToColdStorageAfterDays()
Specifies the number of days after creation that a recovery point is moved to cold storage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDeleteAfterDays(Long deleteAfterDays)
Specifies the number of days after creation that a recovery point is deleted.
|
void |
setMoveToColdStorageAfterDays(Long moveToColdStorageAfterDays)
Specifies the number of days after creation that a recovery point is moved to cold storage.
|
String |
toString()
Returns a string representation of this object.
|
Lifecycle |
withDeleteAfterDays(Long deleteAfterDays)
Specifies the number of days after creation that a recovery point is deleted.
|
Lifecycle |
withMoveToColdStorageAfterDays(Long moveToColdStorageAfterDays)
Specifies the number of days after creation that a recovery point is moved to cold storage.
|
public void setMoveToColdStorageAfterDays(Long moveToColdStorageAfterDays)
Specifies the number of days after creation that a recovery point is moved to cold storage.
moveToColdStorageAfterDays
- Specifies the number of days after creation that a recovery point is moved to cold storage.public Long getMoveToColdStorageAfterDays()
Specifies the number of days after creation that a recovery point is moved to cold storage.
public Lifecycle withMoveToColdStorageAfterDays(Long moveToColdStorageAfterDays)
Specifies the number of days after creation that a recovery point is moved to cold storage.
moveToColdStorageAfterDays
- Specifies the number of days after creation that a recovery point is moved to cold storage.public void setDeleteAfterDays(Long deleteAfterDays)
Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
deleteAfterDays
- Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days
plus MoveToColdStorageAfterDays
.public Long getDeleteAfterDays()
Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
MoveToColdStorageAfterDays
.public Lifecycle withDeleteAfterDays(Long deleteAfterDays)
Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days plus
MoveToColdStorageAfterDays
.
deleteAfterDays
- Specifies the number of days after creation that a recovery point is deleted. Must be greater than 90 days
plus MoveToColdStorageAfterDays
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.