@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsBackupBackupPlanRuleDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about an array of BackupRule
objects, each of which specifies a scheduled task that is
used to back up a selection of resources.
Constructor and Description |
---|
AwsBackupBackupPlanRuleDetails() |
Modifier and Type | Method and Description |
---|---|
AwsBackupBackupPlanRuleDetails |
clone() |
boolean |
equals(Object obj) |
Long |
getCompletionWindowMinutes()
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by
Backup.
|
List<AwsBackupBackupPlanRuleCopyActionsDetails> |
getCopyActions()
An array of
CopyAction objects, each of which contains details of the copy operation. |
Boolean |
getEnableContinuousBackup()
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
|
AwsBackupBackupPlanLifecycleDetails |
getLifecycle()
Defines when a protected resource is transitioned to cold storage and when it expires.
|
String |
getRuleId()
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
|
String |
getRuleName()
A display name for a backup rule.
|
String |
getScheduleExpression()
A cron expression in UTC specifying when Backup initiates a backup job.
|
Long |
getStartWindowMinutes()
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
|
String |
getTargetBackupVault()
The name of a logical container where backups are stored.
|
int |
hashCode() |
Boolean |
isEnableContinuousBackup()
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCompletionWindowMinutes(Long completionWindowMinutes)
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by
Backup.
|
void |
setCopyActions(Collection<AwsBackupBackupPlanRuleCopyActionsDetails> copyActions)
An array of
CopyAction objects, each of which contains details of the copy operation. |
void |
setEnableContinuousBackup(Boolean enableContinuousBackup)
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
|
void |
setLifecycle(AwsBackupBackupPlanLifecycleDetails lifecycle)
Defines when a protected resource is transitioned to cold storage and when it expires.
|
void |
setRuleId(String ruleId)
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
|
void |
setRuleName(String ruleName)
A display name for a backup rule.
|
void |
setScheduleExpression(String scheduleExpression)
A cron expression in UTC specifying when Backup initiates a backup job.
|
void |
setStartWindowMinutes(Long startWindowMinutes)
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
|
void |
setTargetBackupVault(String targetBackupVault)
The name of a logical container where backups are stored.
|
String |
toString()
Returns a string representation of this object.
|
AwsBackupBackupPlanRuleDetails |
withCompletionWindowMinutes(Long completionWindowMinutes)
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by
Backup.
|
AwsBackupBackupPlanRuleDetails |
withCopyActions(AwsBackupBackupPlanRuleCopyActionsDetails... copyActions)
An array of
CopyAction objects, each of which contains details of the copy operation. |
AwsBackupBackupPlanRuleDetails |
withCopyActions(Collection<AwsBackupBackupPlanRuleCopyActionsDetails> copyActions)
An array of
CopyAction objects, each of which contains details of the copy operation. |
AwsBackupBackupPlanRuleDetails |
withEnableContinuousBackup(Boolean enableContinuousBackup)
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
|
AwsBackupBackupPlanRuleDetails |
withLifecycle(AwsBackupBackupPlanLifecycleDetails lifecycle)
Defines when a protected resource is transitioned to cold storage and when it expires.
|
AwsBackupBackupPlanRuleDetails |
withRuleId(String ruleId)
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
|
AwsBackupBackupPlanRuleDetails |
withRuleName(String ruleName)
A display name for a backup rule.
|
AwsBackupBackupPlanRuleDetails |
withScheduleExpression(String scheduleExpression)
A cron expression in UTC specifying when Backup initiates a backup job.
|
AwsBackupBackupPlanRuleDetails |
withStartWindowMinutes(Long startWindowMinutes)
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
|
AwsBackupBackupPlanRuleDetails |
withTargetBackupVault(String targetBackupVault)
The name of a logical container where backups are stored.
|
public void setTargetBackupVault(String targetBackupVault)
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
targetBackupVault
- The name of a logical container where backups are stored. Backup vaults are identified by names that are
unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where
they are created. They consist of letters, numbers, and hyphens.public String getTargetBackupVault()
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
public AwsBackupBackupPlanRuleDetails withTargetBackupVault(String targetBackupVault)
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
targetBackupVault
- The name of a logical container where backups are stored. Backup vaults are identified by names that are
unique to the Amazon Web Services account used to create them and the Amazon Web Services Region where
they are created. They consist of letters, numbers, and hyphens.public void setStartWindowMinutes(Long startWindowMinutes)
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
startWindowMinutes
- A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start
successfully.public Long getStartWindowMinutes()
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
public AwsBackupBackupPlanRuleDetails withStartWindowMinutes(Long startWindowMinutes)
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully.
startWindowMinutes
- A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start
successfully.public void setScheduleExpression(String scheduleExpression)
A cron expression in UTC specifying when Backup initiates a backup job.
scheduleExpression
- A cron expression in UTC specifying when Backup initiates a backup job.public String getScheduleExpression()
A cron expression in UTC specifying when Backup initiates a backup job.
public AwsBackupBackupPlanRuleDetails withScheduleExpression(String scheduleExpression)
A cron expression in UTC specifying when Backup initiates a backup job.
scheduleExpression
- A cron expression in UTC specifying when Backup initiates a backup job.public void setRuleName(String ruleName)
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
ruleName
- A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.public String getRuleName()
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
public AwsBackupBackupPlanRuleDetails withRuleName(String ruleName)
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
ruleName
- A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.public void setRuleId(String ruleId)
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
ruleId
- Uniquely identifies a rule that is used to schedule the backup of a selection of resources.public String getRuleId()
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
public AwsBackupBackupPlanRuleDetails withRuleId(String ruleId)
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
ruleId
- Uniquely identifies a rule that is used to schedule the backup of a selection of resources.public void setEnableContinuousBackup(Boolean enableContinuousBackup)
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
enableContinuousBackup
- Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).public Boolean getEnableContinuousBackup()
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
public AwsBackupBackupPlanRuleDetails withEnableContinuousBackup(Boolean enableContinuousBackup)
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
enableContinuousBackup
- Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).public Boolean isEnableContinuousBackup()
Specifies whether Backup creates continuous backups capable of point-in-time restore (PITR).
public void setCompletionWindowMinutes(Long completionWindowMinutes)
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
completionWindowMinutes
- A value in minutes after a backup job is successfully started before it must be completed, or it is
canceled by Backup.public Long getCompletionWindowMinutes()
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
public AwsBackupBackupPlanRuleDetails withCompletionWindowMinutes(Long completionWindowMinutes)
A value in minutes after a backup job is successfully started before it must be completed, or it is canceled by Backup.
completionWindowMinutes
- A value in minutes after a backup job is successfully started before it must be completed, or it is
canceled by Backup.public List<AwsBackupBackupPlanRuleCopyActionsDetails> getCopyActions()
An array of CopyAction
objects, each of which contains details of the copy operation.
CopyAction
objects, each of which contains details of the copy operation.public void setCopyActions(Collection<AwsBackupBackupPlanRuleCopyActionsDetails> copyActions)
An array of CopyAction
objects, each of which contains details of the copy operation.
copyActions
- An array of CopyAction
objects, each of which contains details of the copy operation.public AwsBackupBackupPlanRuleDetails withCopyActions(AwsBackupBackupPlanRuleCopyActionsDetails... copyActions)
An array of CopyAction
objects, each of which contains details of the copy operation.
NOTE: This method appends the values to the existing list (if any). Use
setCopyActions(java.util.Collection)
or withCopyActions(java.util.Collection)
if you want to
override the existing values.
copyActions
- An array of CopyAction
objects, each of which contains details of the copy operation.public AwsBackupBackupPlanRuleDetails withCopyActions(Collection<AwsBackupBackupPlanRuleCopyActionsDetails> copyActions)
An array of CopyAction
objects, each of which contains details of the copy operation.
copyActions
- An array of CopyAction
objects, each of which contains details of the copy operation.public void setLifecycle(AwsBackupBackupPlanLifecycleDetails 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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
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. If you do not specify a
lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
public AwsBackupBackupPlanLifecycleDetails getLifecycle()
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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
public AwsBackupBackupPlanRuleDetails withLifecycle(AwsBackupBackupPlanLifecycleDetails 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. If you do not specify a lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
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. If you do not specify a
lifecycle, Backup applies the lifecycle policy of the source backup to the destination backup.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.
public String toString()
toString
in class Object
Object.toString()
public AwsBackupBackupPlanRuleDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.