public static interface Schedule.Builder extends SdkPojo, CopyableBuilder<Schedule.Builder,Schedule>
| Modifier and Type | Method and Description |
|---|---|
Schedule.Builder |
copyTags(Boolean copyTags)
Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
|
default Schedule.Builder |
createRule(Consumer<CreateRule.Builder> createRule)
The creation rule.
|
Schedule.Builder |
createRule(CreateRule createRule)
The creation rule.
|
Schedule.Builder |
crossRegionCopyRules(Collection<CrossRegionCopyRule> crossRegionCopyRules)
The rule for cross-Region snapshot copies.
|
Schedule.Builder |
crossRegionCopyRules(Consumer<CrossRegionCopyRule.Builder>... crossRegionCopyRules)
The rule for cross-Region snapshot copies.
|
Schedule.Builder |
crossRegionCopyRules(CrossRegionCopyRule... crossRegionCopyRules)
The rule for cross-Region snapshot copies.
|
default Schedule.Builder |
fastRestoreRule(Consumer<FastRestoreRule.Builder> fastRestoreRule)
The rule for enabling fast snapshot restore.
|
Schedule.Builder |
fastRestoreRule(FastRestoreRule fastRestoreRule)
The rule for enabling fast snapshot restore.
|
Schedule.Builder |
name(String name)
The name of the schedule.
|
default Schedule.Builder |
retainRule(Consumer<RetainRule.Builder> retainRule)
The retention rule.
|
Schedule.Builder |
retainRule(RetainRule retainRule)
The retention rule.
|
Schedule.Builder |
tagsToAdd(Collection<Tag> tagsToAdd)
The tags to apply to policy-created resources.
|
Schedule.Builder |
tagsToAdd(Consumer<Tag.Builder>... tagsToAdd)
The tags to apply to policy-created resources.
|
Schedule.Builder |
tagsToAdd(Tag... tagsToAdd)
The tags to apply to policy-created resources.
|
Schedule.Builder |
variableTags(Collection<Tag> variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
Schedule.Builder |
variableTags(Consumer<Tag.Builder>... variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
Schedule.Builder |
variableTags(Tag... variableTags)
A collection of key/value pairs with values determined dynamically when the policy is executed.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSchedule.Builder name(String name)
The name of the schedule.
name - The name of the schedule.Schedule.Builder copyTags(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.Schedule.Builder tagsToAdd(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.Schedule.Builder tagsToAdd(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.Schedule.Builder tagsToAdd(Consumer<Tag.Builder>... tagsToAdd)
The tags to apply to policy-created resources. These user-defined tags are in addition to the AWS-added lifecycle tags.
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #tagsToAdd(List) .tagsToAdd - a consumer that will call methods on List.Builder #tagsToAdd(List) Schedule.Builder variableTags(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.Schedule.Builder variableTags(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.Schedule.Builder variableTags(Consumer<Tag.Builder>... 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.
List.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #variableTags(List) .variableTags - a consumer that will call methods on List.Builder #variableTags(List) Schedule.Builder createRule(CreateRule createRule)
The creation rule.
createRule - The creation rule.default Schedule.Builder createRule(Consumer<CreateRule.Builder> createRule)
The creation rule.
This is a convenience that creates an instance of theCreateRule.Builder avoiding the need to create
one manually via CreateRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to createRule(CreateRule).createRule - a consumer that will call methods on CreateRule.BuildercreateRule(CreateRule)Schedule.Builder retainRule(RetainRule retainRule)
The retention rule.
retainRule - The retention rule.default Schedule.Builder retainRule(Consumer<RetainRule.Builder> retainRule)
The retention rule.
This is a convenience that creates an instance of theRetainRule.Builder avoiding the need to create
one manually via RetainRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to retainRule(RetainRule).retainRule - a consumer that will call methods on RetainRule.BuilderretainRule(RetainRule)Schedule.Builder fastRestoreRule(FastRestoreRule fastRestoreRule)
The rule for enabling fast snapshot restore.
fastRestoreRule - The rule for enabling fast snapshot restore.default Schedule.Builder fastRestoreRule(Consumer<FastRestoreRule.Builder> fastRestoreRule)
The rule for enabling fast snapshot restore.
This is a convenience that creates an instance of theFastRestoreRule.Builder avoiding the need to
create one manually via FastRestoreRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to fastRestoreRule(FastRestoreRule).fastRestoreRule - a consumer that will call methods on FastRestoreRule.BuilderfastRestoreRule(FastRestoreRule)Schedule.Builder crossRegionCopyRules(Collection<CrossRegionCopyRule> crossRegionCopyRules)
The rule for cross-Region snapshot copies.
crossRegionCopyRules - The rule for cross-Region snapshot copies.Schedule.Builder crossRegionCopyRules(CrossRegionCopyRule... crossRegionCopyRules)
The rule for cross-Region snapshot copies.
crossRegionCopyRules - The rule for cross-Region snapshot copies.Schedule.Builder crossRegionCopyRules(Consumer<CrossRegionCopyRule.Builder>... crossRegionCopyRules)
The rule for cross-Region snapshot copies.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #crossRegionCopyRules(List) .crossRegionCopyRules - a consumer that will call methods on List.Builder #crossRegionCopyRules(List) Copyright © 2020. All rights reserved.