@Generated(value="software.amazon.awssdk:codegen") public final class Schedule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Schedule.Builder,Schedule>
Specifies a backup schedule for a snapshot or AMI lifecycle policy.
| 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 |
hasShareRules()
Returns true if the ShareRules 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 |
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<ShareRule> |
shareRules()
The rule for sharing snapshots with other AWS accounts.
|
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 final String name()
The name of the schedule.
public final Boolean copyTags()
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
public final boolean hasTagsToAdd()
public final 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 final boolean hasVariableTags()
public final 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 final CreateRule createRule()
The creation rule.
public final RetainRule retainRule()
The retention rule.
public final FastRestoreRule fastRestoreRule()
The rule for enabling fast snapshot restore.
public final boolean hasCrossRegionCopyRules()
public final List<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.
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.
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 final boolean hasShareRules()
public final List<ShareRule> shareRules()
The rule for sharing snapshots with other AWS accounts.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasShareRules() 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.