@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BackupPlan extends Object implements Serializable, Cloneable, StructuredPojo
Contains an optional backup plan display name and an array of BackupRule
objects, each of which
specifies a backup rule. Each rule in a backup plan is a separate scheduled task and can back up a different
selection of Amazon Web Services resources.
Constructor and Description |
---|
BackupPlan() |
Modifier and Type | Method and Description |
---|---|
BackupPlan |
clone() |
boolean |
equals(Object obj) |
List<AdvancedBackupSetting> |
getAdvancedBackupSettings()
Contains a list of
BackupOptions for each resource type. |
String |
getBackupPlanName()
The display name of a backup plan.
|
List<BackupRule> |
getRules()
An array of
BackupRule objects, each of which specifies a scheduled task that is used to back up a
selection of resources. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdvancedBackupSettings(Collection<AdvancedBackupSetting> advancedBackupSettings)
Contains a list of
BackupOptions for each resource type. |
void |
setBackupPlanName(String backupPlanName)
The display name of a backup plan.
|
void |
setRules(Collection<BackupRule> rules)
An array of
BackupRule objects, each of which specifies a scheduled task that is used to back up a
selection of resources. |
String |
toString()
Returns a string representation of this object.
|
BackupPlan |
withAdvancedBackupSettings(AdvancedBackupSetting... advancedBackupSettings)
Contains a list of
BackupOptions for each resource type. |
BackupPlan |
withAdvancedBackupSettings(Collection<AdvancedBackupSetting> advancedBackupSettings)
Contains a list of
BackupOptions for each resource type. |
BackupPlan |
withBackupPlanName(String backupPlanName)
The display name of a backup plan.
|
BackupPlan |
withRules(BackupRule... rules)
An array of
BackupRule objects, each of which specifies a scheduled task that is used to back up a
selection of resources. |
BackupPlan |
withRules(Collection<BackupRule> rules)
An array of
BackupRule objects, each of which specifies a scheduled task that is used to back up a
selection of resources. |
public void setBackupPlanName(String backupPlanName)
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
backupPlanName
- The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.public String getBackupPlanName()
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
public BackupPlan withBackupPlanName(String backupPlanName)
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
backupPlanName
- The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.public List<BackupRule> getRules()
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
selection of resources.
BackupRule
objects, each of which specifies a scheduled task that is used to
back up a selection of resources.public void setRules(Collection<BackupRule> rules)
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
selection of resources.
rules
- An array of BackupRule
objects, each of which specifies a scheduled task that is used to back
up a selection of resources.public BackupPlan withRules(BackupRule... rules)
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
selection of resources.
NOTE: This method appends the values to the existing list (if any). Use
setRules(java.util.Collection)
or withRules(java.util.Collection)
if you want to override the
existing values.
rules
- An array of BackupRule
objects, each of which specifies a scheduled task that is used to back
up a selection of resources.public BackupPlan withRules(Collection<BackupRule> rules)
An array of BackupRule
objects, each of which specifies a scheduled task that is used to back up a
selection of resources.
rules
- An array of BackupRule
objects, each of which specifies a scheduled task that is used to back
up a selection of resources.public List<AdvancedBackupSetting> getAdvancedBackupSettings()
Contains a list of BackupOptions
for each resource type.
BackupOptions
for each resource type.public void setAdvancedBackupSettings(Collection<AdvancedBackupSetting> advancedBackupSettings)
Contains a list of BackupOptions
for each resource type.
advancedBackupSettings
- Contains a list of BackupOptions
for each resource type.public BackupPlan withAdvancedBackupSettings(AdvancedBackupSetting... advancedBackupSettings)
Contains a list of BackupOptions
for each resource type.
NOTE: This method appends the values to the existing list (if any). Use
setAdvancedBackupSettings(java.util.Collection)
or
withAdvancedBackupSettings(java.util.Collection)
if you want to override the existing values.
advancedBackupSettings
- Contains a list of BackupOptions
for each resource type.public BackupPlan withAdvancedBackupSettings(Collection<AdvancedBackupSetting> advancedBackupSettings)
Contains a list of BackupOptions
for each resource type.
advancedBackupSettings
- Contains a list of BackupOptions
for each resource type.public String toString()
toString
in class Object
Object.toString()
public BackupPlan clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.