@Generated(value="software.amazon.awssdk:codegen") public final class Schedule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Schedule.Builder,Schedule>
Specifies a backup schedule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Schedule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Schedule.Builder |
builder() |
Boolean |
copyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
CreateRule |
createRule()
The creation rule.
|
List<CrossRegionCopyRule> |
crossRegionCopyRules()
The rule for cross-Region snapshot copies.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FastRestoreRule |
fastRestoreRule()
The rule for enabling fast snapshot restore.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCrossRegionCopyRules()
Returns true if the CrossRegionCopyRules property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasTagsToAdd()
Returns true if the TagsToAdd property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasVariableTags()
Returns true if the VariableTags property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
name()
The name of the schedule.
|
RetainRule |
retainRule()
The retention rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Schedule.Builder> |
serializableBuilderClass() |
List<Tag> |
tagsToAdd()
The tags to apply to policy-created resources.
|
Schedule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<Tag> |
variableTags()
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name of the schedule.
public Boolean copyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
public boolean hasTagsToAdd()
public List<Tag> tagsToAdd()
The tags to apply to policy-created resources. These user-defined tags are in addition to the AWS-added lifecycle tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTagsToAdd() to see if a value was sent in this field.
public boolean hasVariableTags()
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasVariableTags() to see if a value was sent in this field.
$(instance-id) or $(timestamp). Variable tags are only valid for EBS Snapshot
Management – Instance policies.public CreateRule createRule()
The creation rule.
public RetainRule retainRule()
The retention rule.
public FastRestoreRule fastRestoreRule()
The rule for enabling fast snapshot restore.
public boolean hasCrossRegionCopyRules()
public List<CrossRegionCopyRule> crossRegionCopyRules()
The rule for cross-Region snapshot copies.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCrossRegionCopyRules() to see if a value was sent in this field.
public Schedule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Schedule.Builder,Schedule>public static Schedule.Builder builder()
public static Class<? extends Schedule.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.