@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CrossRegionCopyRule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a rule for cross-Region snapshot copies.
Constructor and Description |
---|
CrossRegionCopyRule() |
Modifier and Type | Method and Description |
---|---|
CrossRegionCopyRule |
clone() |
boolean |
equals(Object obj) |
String |
getCmkArn()
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.
|
Boolean |
getCopyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
CrossRegionCopyDeprecateRule |
getDeprecateRule()
The AMI deprecation rule for cross-Region AMI copies created by the rule.
|
Boolean |
getEncrypted()
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using
this parameter.
|
CrossRegionCopyRetainRule |
getRetainRule()
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
String |
getTarget()
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
|
String |
getTargetRegion()
Avoid using this parameter when creating new policies.
|
int |
hashCode() |
Boolean |
isCopyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
Boolean |
isEncrypted()
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using
this parameter.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.
|
void |
setCopyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
void |
setDeprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
|
void |
setEncrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using
this parameter.
|
void |
setRetainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
void |
setTarget(String target)
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
|
void |
setTargetRegion(String targetRegion)
Avoid using this parameter when creating new policies.
|
String |
toString()
Returns a string representation of this object.
|
CrossRegionCopyRule |
withCmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.
|
CrossRegionCopyRule |
withCopyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
|
CrossRegionCopyRule |
withDeprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
|
CrossRegionCopyRule |
withEncrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using
this parameter.
|
CrossRegionCopyRule |
withRetainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
|
CrossRegionCopyRule |
withTarget(String target)
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
|
CrossRegionCopyRule |
withTargetRegion(String targetRegion)
Avoid using this parameter when creating new policies.
|
public void setTargetRegion(String targetRegion)
Avoid using this parameter when creating new policies. Instead, use Target to specify a target Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
targetRegion
- Avoid using this parameter when creating new policies. Instead, use Target to specify a target
Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
public String getTargetRegion()
Avoid using this parameter when creating new policies. Instead, use Target to specify a target Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
public CrossRegionCopyRule withTargetRegion(String targetRegion)
Avoid using this parameter when creating new policies. Instead, use Target to specify a target Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
targetRegion
- Avoid using this parameter when creating new policies. Instead, use Target to specify a target
Region or a target Outpost for snapshot copies.
For policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
public void setTarget(String target)
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion. Do not specify both.
target
- The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion. Do not specify both.
public String getTarget()
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion. Do not specify both.
Use this parameter instead of TargetRegion. Do not specify both.
public CrossRegionCopyRule withTarget(String target)
The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion. Do not specify both.
target
- The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
Use this parameter instead of TargetRegion. Do not specify both.
public void setEncrypted(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.
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.public Boolean getEncrypted()
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.
public CrossRegionCopyRule withEncrypted(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.
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.public Boolean isEncrypted()
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.
public void setCmkArn(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.
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.public String getCmkArn()
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.
public CrossRegionCopyRule withCmkArn(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.
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.public void setCopyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
copyTags
- Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot
copy.public Boolean getCopyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
public CrossRegionCopyRule withCopyTags(Boolean copyTags)
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
copyTags
- Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot
copy.public Boolean isCopyTags()
Indicates whether to copy all user-defined tags from the source snapshot to the cross-Region snapshot copy.
public void setRetainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
retainRule
- The retention rule that indicates how long snapshot copies are to be retained in the destination Region.public CrossRegionCopyRetainRule getRetainRule()
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
public CrossRegionCopyRule withRetainRule(CrossRegionCopyRetainRule retainRule)
The retention rule that indicates how long snapshot copies are to be retained in the destination Region.
retainRule
- The retention rule that indicates how long snapshot copies are to be retained in the destination Region.public void setDeprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
deprecateRule
- The AMI deprecation rule for cross-Region AMI copies created by the rule.public CrossRegionCopyDeprecateRule getDeprecateRule()
The AMI deprecation rule for cross-Region AMI copies created by the rule.
public CrossRegionCopyRule withDeprecateRule(CrossRegionCopyDeprecateRule deprecateRule)
The AMI deprecation rule for cross-Region AMI copies created by the rule.
deprecateRule
- The AMI deprecation rule for cross-Region AMI copies created by the rule.public String toString()
toString
in class Object
Object.toString()
public CrossRegionCopyRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.