@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 “retention” 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.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
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.
|
Boolean |
getOptInToArchiveForSupportedResources()
Optional Boolean.
|
int |
hashCode() |
Boolean |
isOptInToArchiveForSupportedResources()
Optional Boolean.
|
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.
|
void |
setOptInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources)
Optional Boolean.
|
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.
|
Lifecycle |
withOptInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources)
Optional Boolean.
|
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 void setOptInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources)
Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
optInToArchiveForSupportedResources
- Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported
resources to archive (cold) storage tier in accordance with your lifecycle settings.public Boolean getOptInToArchiveForSupportedResources()
Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
public Lifecycle withOptInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources)
Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
optInToArchiveForSupportedResources
- Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported
resources to archive (cold) storage tier in accordance with your lifecycle settings.public Boolean isOptInToArchiveForSupportedResources()
Optional Boolean. If this is true, this setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
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.