@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Schedule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a schedule.
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 create rule.
|
FastRestoreRule |
getFastRestoreRule()
Enable fast snapshot restore.
|
String |
getName()
The name of the schedule.
|
RetainRule |
getRetainRule()
The retention rule.
|
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 create rule.
|
void |
setFastRestoreRule(FastRestoreRule fastRestoreRule)
Enable fast snapshot restore.
|
void |
setName(String name)
The name of the schedule.
|
void |
setRetainRule(RetainRule retainRule)
The retention rule.
|
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 create rule.
|
Schedule |
withFastRestoreRule(FastRestoreRule fastRestoreRule)
Enable fast snapshot restore.
|
Schedule |
withName(String name)
The name of the schedule.
|
Schedule |
withRetainRule(RetainRule retainRule)
The retention rule.
|
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 AWS-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 AWS-added lifecycle tags.
tagsToAdd
- The tags to apply to policy-created resources. These user-defined tags are in addition to the AWS-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 AWS-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 AWS-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 AWS-added lifecycle tags.
tagsToAdd
- The tags to apply to policy-created resources. These user-defined tags are in addition to the AWS-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 create rule.
createRule
- The create rule.public CreateRule getCreateRule()
The create rule.
public Schedule withCreateRule(CreateRule createRule)
The create rule.
createRule
- The create 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)
Enable fast snapshot restore.
fastRestoreRule
- Enable fast snapshot restore.public FastRestoreRule getFastRestoreRule()
Enable fast snapshot restore.
public Schedule withFastRestoreRule(FastRestoreRule fastRestoreRule)
Enable fast snapshot restore.
fastRestoreRule
- Enable fast snapshot restore.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.