@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Schedule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a backup schedule for a snapshot or AMI lifecycle policy.
Constructor and Description |
---|
Schedule() |
Modifier and Type | Method and Description |
---|---|
Schedule |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCopyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
CreateRule |
getCreateRule()
The creation rule.
|
List<CrossRegionCopyRule> |
getCrossRegionCopyRules()
The rule for cross-Region snapshot copies.
|
DeprecateRule |
getDeprecateRule()
The AMI deprecation rule for the schedule.
|
FastRestoreRule |
getFastRestoreRule()
The rule for enabling fast snapshot restore.
|
String |
getName()
The name of the schedule.
|
RetainRule |
getRetainRule()
The retention rule.
|
List<ShareRule> |
getShareRules()
The rule for sharing snapshots with other Amazon Web Services accounts.
|
List<Tag> |
getTagsToAdd()
The tags to apply to policy-created resources.
|
List<Tag> |
getVariableTags()
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
int |
hashCode() |
Boolean |
isCopyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCopyTags(Boolean copyTags)
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
void |
setCreateRule(CreateRule createRule)
The creation rule.
|
void |
setCrossRegionCopyRules(Collection<CrossRegionCopyRule> crossRegionCopyRules)
The rule for cross-Region snapshot copies.
|
void |
setDeprecateRule(DeprecateRule deprecateRule)
The AMI deprecation rule for the schedule.
|
void |
setFastRestoreRule(FastRestoreRule fastRestoreRule)
The rule for enabling fast snapshot restore.
|
void |
setName(String name)
The name of the schedule.
|
void |
setRetainRule(RetainRule retainRule)
The retention rule.
|
void |
setShareRules(Collection<ShareRule> shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
|
void |
setTagsToAdd(Collection<Tag> tagsToAdd)
The tags to apply to policy-created resources.
|
void |
setVariableTags(Collection<Tag> variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
String |
toString()
Returns a string representation of this object.
|
Schedule |
withCopyTags(Boolean copyTags)
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
Schedule |
withCreateRule(CreateRule createRule)
The creation rule.
|
Schedule |
withCrossRegionCopyRules(Collection<CrossRegionCopyRule> crossRegionCopyRules)
The rule for cross-Region snapshot copies.
|
Schedule |
withCrossRegionCopyRules(CrossRegionCopyRule... crossRegionCopyRules)
The rule for cross-Region snapshot copies.
|
Schedule |
withDeprecateRule(DeprecateRule deprecateRule)
The AMI deprecation rule for the schedule.
|
Schedule |
withFastRestoreRule(FastRestoreRule fastRestoreRule)
The rule for enabling fast snapshot restore.
|
Schedule |
withName(String name)
The name of the schedule.
|
Schedule |
withRetainRule(RetainRule retainRule)
The retention rule.
|
Schedule |
withShareRules(Collection<ShareRule> shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
|
Schedule |
withShareRules(ShareRule... shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
|
Schedule |
withTagsToAdd(Collection<Tag> tagsToAdd)
The tags to apply to policy-created resources.
|
Schedule |
withTagsToAdd(Tag... tagsToAdd)
The tags to apply to policy-created resources.
|
Schedule |
withVariableTags(Collection<Tag> variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
Schedule |
withVariableTags(Tag... variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
public void setName(String name)
The name of the schedule.
name
- The name of the schedule.public String getName()
The name of the schedule.
public Schedule withName(String name)
The name of the schedule.
name
- The name of the schedule.public void setCopyTags(Boolean copyTags)
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
copyTags
- Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.public Boolean getCopyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
public Schedule withCopyTags(Boolean copyTags)
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
copyTags
- Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.public Boolean isCopyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
public List<Tag> getTagsToAdd()
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
public void setTagsToAdd(Collection<Tag> tagsToAdd)
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
tagsToAdd
- The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web
Services-added lifecycle tags.public Schedule withTagsToAdd(Tag... tagsToAdd)
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
NOTE: This method appends the values to the existing list (if any). Use
setTagsToAdd(java.util.Collection)
or withTagsToAdd(java.util.Collection)
if you want to
override the existing values.
tagsToAdd
- The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web
Services-added lifecycle tags.public Schedule withTagsToAdd(Collection<Tag> tagsToAdd)
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
tagsToAdd
- The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web
Services-added lifecycle tags.public List<Tag> getVariableTags()
A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any
valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id)
or
$(timestamp)
. Variable tags are only valid for EBS Snapshot Management – Instance policies.
$(instance-id)
or $(timestamp)
. Variable tags are only valid for EBS Snapshot
Management – Instance policies.public void setVariableTags(Collection<Tag> variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any
valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id)
or
$(timestamp)
. Variable tags are only valid for EBS Snapshot Management – Instance policies.
variableTags
- A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may
be any valid Amazon EC2 tag key. Values must be in one of the two following formats:
$(instance-id)
or $(timestamp)
. Variable tags are only valid for EBS Snapshot
Management – Instance policies.public Schedule withVariableTags(Tag... variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any
valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id)
or
$(timestamp)
. Variable tags are only valid for EBS Snapshot Management – Instance policies.
NOTE: This method appends the values to the existing list (if any). Use
setVariableTags(java.util.Collection)
or withVariableTags(java.util.Collection)
if you want to
override the existing values.
variableTags
- A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may
be any valid Amazon EC2 tag key. Values must be in one of the two following formats:
$(instance-id)
or $(timestamp)
. Variable tags are only valid for EBS Snapshot
Management – Instance policies.public Schedule withVariableTags(Collection<Tag> variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may be any
valid Amazon EC2 tag key. Values must be in one of the two following formats: $(instance-id)
or
$(timestamp)
. Variable tags are only valid for EBS Snapshot Management – Instance policies.
variableTags
- A collection of key/value pairs with values determined dynamically when the policy is executed. Keys may
be any valid Amazon EC2 tag key. Values must be in one of the two following formats:
$(instance-id)
or $(timestamp)
. Variable tags are only valid for EBS Snapshot
Management – Instance policies.public void setCreateRule(CreateRule createRule)
The creation rule.
createRule
- The creation rule.public CreateRule getCreateRule()
The creation rule.
public Schedule withCreateRule(CreateRule createRule)
The creation rule.
createRule
- The creation rule.public void setRetainRule(RetainRule retainRule)
The retention rule.
retainRule
- The retention rule.public RetainRule getRetainRule()
The retention rule.
public Schedule withRetainRule(RetainRule retainRule)
The retention rule.
retainRule
- The retention rule.public void setFastRestoreRule(FastRestoreRule fastRestoreRule)
The rule for enabling fast snapshot restore.
fastRestoreRule
- The rule for enabling fast snapshot restore.public FastRestoreRule getFastRestoreRule()
The rule for enabling fast snapshot restore.
public Schedule withFastRestoreRule(FastRestoreRule fastRestoreRule)
The rule for enabling fast snapshot restore.
fastRestoreRule
- The rule for enabling fast snapshot restore.public List<CrossRegionCopyRule> getCrossRegionCopyRules()
The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
public void setCrossRegionCopyRules(Collection<CrossRegionCopyRule> crossRegionCopyRules)
The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
crossRegionCopyRules
- The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
public Schedule withCrossRegionCopyRules(CrossRegionCopyRule... crossRegionCopyRules)
The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
NOTE: This method appends the values to the existing list (if any). Use
setCrossRegionCopyRules(java.util.Collection)
or withCrossRegionCopyRules(java.util.Collection)
if you want to override the existing values.
crossRegionCopyRules
- The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
public Schedule withCrossRegionCopyRules(Collection<CrossRegionCopyRule> crossRegionCopyRules)
The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
crossRegionCopyRules
- The rule for cross-Region snapshot copies.
You can only specify cross-Region copy rules for policies that create snapshots in a Region. If the policy creates snapshots on an Outpost, then you cannot copy the snapshots to a Region or to an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
public List<ShareRule> getShareRules()
The rule for sharing snapshots with other Amazon Web Services accounts.
public void setShareRules(Collection<ShareRule> shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
shareRules
- The rule for sharing snapshots with other Amazon Web Services accounts.public Schedule withShareRules(ShareRule... shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
NOTE: This method appends the values to the existing list (if any). Use
setShareRules(java.util.Collection)
or withShareRules(java.util.Collection)
if you want to
override the existing values.
shareRules
- The rule for sharing snapshots with other Amazon Web Services accounts.public Schedule withShareRules(Collection<ShareRule> shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
shareRules
- The rule for sharing snapshots with other Amazon Web Services accounts.public void setDeprecateRule(DeprecateRule deprecateRule)
The AMI deprecation rule for the schedule.
deprecateRule
- The AMI deprecation rule for the schedule.public DeprecateRule getDeprecateRule()
The AMI deprecation rule for the schedule.
public Schedule withDeprecateRule(DeprecateRule deprecateRule)
The AMI deprecation rule for the schedule.
deprecateRule
- The AMI deprecation rule for the schedule.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.