Interface CrossRegionCopyRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CrossRegionCopyRule.Builder,CrossRegionCopyRule>,SdkBuilder<CrossRegionCopyRule.Builder,CrossRegionCopyRule>,SdkPojo
- Enclosing class:
- CrossRegionCopyRule
public static interface CrossRegionCopyRule.Builder extends SdkPojo, CopyableBuilder<CrossRegionCopyRule.Builder,CrossRegionCopyRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CrossRegionCopyRule.BuildercmkArn(String cmkArn)The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.CrossRegionCopyRule.BuildercopyTags(Boolean copyTags)Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.default CrossRegionCopyRule.BuilderdeprecateRule(Consumer<CrossRegionCopyDeprecateRule.Builder> deprecateRule)[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.CrossRegionCopyRule.BuilderdeprecateRule(CrossRegionCopyDeprecateRule deprecateRule)[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.CrossRegionCopyRule.Builderencrypted(Boolean encrypted)To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter.default CrossRegionCopyRule.BuilderretainRule(Consumer<CrossRegionCopyRetainRule.Builder> retainRule)The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.CrossRegionCopyRule.BuilderretainRule(CrossRegionCopyRetainRule retainRule)The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.CrossRegionCopyRule.Buildertarget(String target)CrossRegionCopyRule.BuildertargetRegion(String targetRegion)-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
targetRegion
CrossRegionCopyRule.Builder targetRegion(String targetRegion)
Use this parameter for AMI policies only. For snapshot policies, use Target instead. For snapshot policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- Parameters:
targetRegion-Use this parameter for AMI policies only. For snapshot policies, use Target instead. For snapshot policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
CrossRegionCopyRule.Builder target(String target)
Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- Parameters:
target-Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
CrossRegionCopyRule.Builder encrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
- Parameters:
encrypted- To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cmkArn
CrossRegionCopyRule.Builder cmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
- Parameters:
cmkArn- The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyTags
CrossRegionCopyRule.Builder copyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.
- Parameters:
copyTags- Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retainRule
CrossRegionCopyRule.Builder retainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.
- Parameters:
retainRule- The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retainRule
default CrossRegionCopyRule.Builder retainRule(Consumer<CrossRegionCopyRetainRule.Builder> retainRule)
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.
This is a convenience method that creates an instance of theCrossRegionCopyRetainRule.Builderavoiding the need to create one manually viaCrossRegionCopyRetainRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretainRule(CrossRegionCopyRetainRule).- Parameters:
retainRule- a consumer that will call methods onCrossRegionCopyRetainRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retainRule(CrossRegionCopyRetainRule)
-
deprecateRule
CrossRegionCopyRule.Builder deprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.
- Parameters:
deprecateRule- [Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deprecateRule
default CrossRegionCopyRule.Builder deprecateRule(Consumer<CrossRegionCopyDeprecateRule.Builder> deprecateRule)
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.
This is a convenience method that creates an instance of theCrossRegionCopyDeprecateRule.Builderavoiding the need to create one manually viaCrossRegionCopyDeprecateRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeprecateRule(CrossRegionCopyDeprecateRule).- Parameters:
deprecateRule- a consumer that will call methods onCrossRegionCopyDeprecateRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
deprecateRule(CrossRegionCopyDeprecateRule)
-
-