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 |
deprecateRule(Consumer<DeprecateRule.Builder> deprecateRule)
The AMI deprecation rule for the schedule.
|
Schedule.Builder |
deprecateRule(DeprecateRule deprecateRule)
The AMI deprecation rule for the schedule.
|
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 |
shareRules(Collection<ShareRule> shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
|
Schedule.Builder |
shareRules(Consumer<ShareRule.Builder>... shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
|
Schedule.Builder |
shareRules(ShareRule... shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
|
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 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.Schedule.Builder tagsToAdd(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.Schedule.Builder tagsToAdd(Consumer<Tag.Builder>... tagsToAdd)
The tags to apply to policy-created resources. These user-defined tags are in addition to the Amazon Web Services-added lifecycle tags.
This is a convenience method 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 method 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 method 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 method 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.
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.
Schedule.Builder crossRegionCopyRules(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.
Schedule.Builder crossRegionCopyRules(Consumer<CrossRegionCopyRule.Builder>... 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.
This is a convenience method 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) Schedule.Builder shareRules(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.Schedule.Builder shareRules(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.Schedule.Builder shareRules(Consumer<ShareRule.Builder>... shareRules)
The rule for sharing snapshots with other Amazon Web Services accounts.
This is a convenience method 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 #shareRules(List) .shareRules - a consumer that will call methods on List.Builder #shareRules(List) Schedule.Builder deprecateRule(DeprecateRule deprecateRule)
The AMI deprecation rule for the schedule.
deprecateRule - The AMI deprecation rule for the schedule.default Schedule.Builder deprecateRule(Consumer<DeprecateRule.Builder> deprecateRule)
The AMI deprecation rule for the schedule.
This is a convenience method that creates an instance of theDeprecateRule.Builder avoiding the need
to create one manually via DeprecateRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to deprecateRule(DeprecateRule).deprecateRule - a consumer that will call methods on DeprecateRule.BuilderdeprecateRule(DeprecateRule)Copyright © 2022. All rights reserved.