public static interface Schedule.Builder extends SdkPojo, CopyableBuilder<Schedule.Builder,Schedule>
| Modifier and Type | Method and Description |
|---|---|
Schedule.Builder |
archiveRule(ArchiveRule archiveRule)
[Snapshot policies that target volumes only] The snapshot archiving rule for the schedule.
|
default Schedule.Builder |
archiveRule(Consumer<ArchiveRule.Builder> archiveRule)
[Snapshot policies that target volumes only] The snapshot archiving rule for 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.
|
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)
Specifies a rule for copying snapshots or AMIs across regions.
|
Schedule.Builder |
crossRegionCopyRules(Consumer<CrossRegionCopyRule.Builder>... crossRegionCopyRules)
Specifies a rule for copying snapshots or AMIs across regions.
|
Schedule.Builder |
crossRegionCopyRules(CrossRegionCopyRule... crossRegionCopyRules)
Specifies a rule for copying snapshots or AMIs across regions.
|
default Schedule.Builder |
deprecateRule(Consumer<DeprecateRule.Builder> deprecateRule)
[AMI policies only] The AMI deprecation rule for the schedule.
|
Schedule.Builder |
deprecateRule(DeprecateRule deprecateRule)
[AMI policies only] The AMI deprecation rule for the schedule.
|
default Schedule.Builder |
fastRestoreRule(Consumer<FastRestoreRule.Builder> fastRestoreRule)
[Snapshot policies only] The rule for enabling fast snapshot restore.
|
Schedule.Builder |
fastRestoreRule(FastRestoreRule fastRestoreRule)
[Snapshot policies only] 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 for snapshots or AMIs created by the policy.
|
Schedule.Builder |
retainRule(RetainRule retainRule)
The retention rule for snapshots or AMIs created by the policy.
|
Schedule.Builder |
shareRules(Collection<ShareRule> shareRules)
[Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services accounts.
|
Schedule.Builder |
shareRules(Consumer<ShareRule.Builder>... shareRules)
[Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services accounts.
|
Schedule.Builder |
shareRules(ShareRule... shareRules)
[Snapshot policies only] 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)
[AMI policies and snapshot policies that target instances only] A collection of key/value pairs with
values determined dynamically when the policy is executed.
|
Schedule.Builder |
variableTags(Consumer<Tag.Builder>... variableTags)
[AMI policies and snapshot policies that target instances only] A collection of key/value pairs with
values determined dynamically when the policy is executed.
|
Schedule.Builder |
variableTags(Tag... variableTags)
[AMI policies and snapshot policies that target instances only] 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 theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #tagsToAdd(List.
tagsToAdd - a consumer that will call methods on Tag.Builder#tagsToAdd(java.util.Collection) Schedule.Builder variableTags(Collection<Tag> variableTags)
[AMI policies and snapshot policies that target instances only] 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 - [AMI policies and snapshot policies that target instances only] 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)
[AMI policies and snapshot policies that target instances only] 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 - [AMI policies and snapshot policies that target instances only] 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)
[AMI policies and snapshot policies that target instances only] 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.
Tag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #variableTags(List.
variableTags - a consumer that will call methods on Tag.Builder#variableTags(java.util.Collection) 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 for snapshots or AMIs created by the policy.
retainRule - The retention rule for snapshots or AMIs created by the policy.default Schedule.Builder retainRule(Consumer<RetainRule.Builder> retainRule)
The retention rule for snapshots or AMIs created by the policy.
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)
[Snapshot policies only] The rule for enabling fast snapshot restore.
fastRestoreRule - [Snapshot policies only] The rule for enabling fast snapshot restore.default Schedule.Builder fastRestoreRule(Consumer<FastRestoreRule.Builder> fastRestoreRule)
[Snapshot policies only] 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)
Specifies a rule for copying snapshots or AMIs across regions.
You can't specify cross-Region copy rules for policies that create snapshots on an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
crossRegionCopyRules - Specifies a rule for copying snapshots or AMIs across regions. You can't specify cross-Region copy rules for policies that create snapshots on 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)
Specifies a rule for copying snapshots or AMIs across regions.
You can't specify cross-Region copy rules for policies that create snapshots on an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
crossRegionCopyRules - Specifies a rule for copying snapshots or AMIs across regions. You can't specify cross-Region copy rules for policies that create snapshots on 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)
Specifies a rule for copying snapshots or AMIs across regions.
You can't specify cross-Region copy rules for policies that create snapshots on an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
CrossRegionCopyRule.Builder avoiding the need to create one
manually via CrossRegionCopyRule.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #crossRegionCopyRules(List.
crossRegionCopyRules - a consumer that will call methods on
CrossRegionCopyRule.Builder#crossRegionCopyRules(java.util.Collection) Schedule.Builder shareRules(Collection<ShareRule> shareRules)
[Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services accounts.
shareRules - [Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services
accounts.Schedule.Builder shareRules(ShareRule... shareRules)
[Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services accounts.
shareRules - [Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services
accounts.Schedule.Builder shareRules(Consumer<ShareRule.Builder>... shareRules)
[Snapshot policies only] The rule for sharing snapshots with other Amazon Web Services accounts.
This is a convenience method that creates an instance of theShareRule.Builder avoiding the need to create one manually
via ShareRule.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #shareRules(List.
shareRules - a consumer that will call methods on
ShareRule.Builder#shareRules(java.util.Collection) Schedule.Builder deprecateRule(DeprecateRule deprecateRule)
[AMI policies only] The AMI deprecation rule for the schedule.
deprecateRule - [AMI policies only] The AMI deprecation rule for the schedule.default Schedule.Builder deprecateRule(Consumer<DeprecateRule.Builder> deprecateRule)
[AMI policies only] 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)Schedule.Builder archiveRule(ArchiveRule archiveRule)
[Snapshot policies that target volumes only] The snapshot archiving rule for the schedule. When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify.
For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies.
archiveRule - [Snapshot policies that target volumes only] The snapshot archiving rule for the schedule. When
you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive
tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier
for the archive retention period that you specify.
For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies.
default Schedule.Builder archiveRule(Consumer<ArchiveRule.Builder> archiveRule)
[Snapshot policies that target volumes only] The snapshot archiving rule for the schedule. When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify.
For more information about using snapshot archiving, see Considerations for snapshot lifecycle policies.
This is a convenience method that creates an instance of theArchiveRule.Builder avoiding the need to
create one manually via ArchiveRule.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to archiveRule(ArchiveRule).
archiveRule - a consumer that will call methods on ArchiveRule.BuilderarchiveRule(ArchiveRule)Copyright © 2023. All rights reserved.