@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 AWS KMS customer master key (CMK) to use for EBS encryption.
|
Boolean |
getCopyTags()
Copy all user-defined tags from the source snapshot to the copied snapshot.
|
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.
|
String |
getTarget()
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
|
String |
getTargetRegion()
The target Region for the snapshot copies.
|
int |
hashCode() |
Boolean |
isCopyTags()
Copy all user-defined tags from the source snapshot to the copied snapshot.
|
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 AWS KMS customer master key (CMK) to use for EBS encryption.
|
void |
setCopyTags(Boolean copyTags)
Copy all user-defined tags from the source snapshot to the copied snapshot.
|
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.
|
void |
setTarget(String target)
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
|
void |
setTargetRegion(String targetRegion)
The target Region for the snapshot copies.
|
String |
toString()
Returns a string representation of this object.
|
CrossRegionCopyRule |
withCmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption.
|
CrossRegionCopyRule |
withCopyTags(Boolean copyTags)
Copy all user-defined tags from the source snapshot to the copied snapshot.
|
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.
|
CrossRegionCopyRule |
withTarget(String target)
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
|
CrossRegionCopyRule |
withTargetRegion(String targetRegion)
The target Region for the snapshot copies.
|
public void setTargetRegion(String targetRegion)
The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
targetRegion
- The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
public String getTargetRegion()
The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
public CrossRegionCopyRule withTargetRegion(String targetRegion)
The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
targetRegion
- The target Region for the snapshot copies.
If you specify a target Region, you must omit Target. You cannot specify a target Region and a target Outpost in the same rule.
public void setTarget(String target)
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
target
- The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
public String getTarget()
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
public CrossRegionCopyRule withTarget(String target)
The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
target
- The Amazon Resource Name (ARN) of the target AWS Outpost for the snapshot copies.
If you specify an ARN, you must omit TargetRegion. You cannot specify a target Region and a target Outpost in the same rule.
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 AWS KMS customer master key (CMK) to use for EBS encryption. If this parameter is not specified, your AWS managed CMK for EBS is used.
cmkArn
- The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this
parameter is not specified, your AWS managed CMK for EBS is used.public String getCmkArn()
The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this parameter is not specified, your AWS managed CMK for EBS is used.
public CrossRegionCopyRule withCmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this parameter is not specified, your AWS managed CMK for EBS is used.
cmkArn
- The Amazon Resource Name (ARN) of the AWS KMS customer master key (CMK) to use for EBS encryption. If this
parameter is not specified, your AWS managed CMK for EBS is used.public void setCopyTags(Boolean copyTags)
Copy all user-defined tags from the source snapshot to the copied snapshot.
copyTags
- Copy all user-defined tags from the source snapshot to the copied snapshot.public Boolean getCopyTags()
Copy all user-defined tags from the source snapshot to the copied snapshot.
public CrossRegionCopyRule withCopyTags(Boolean copyTags)
Copy all user-defined tags from the source snapshot to the copied snapshot.
copyTags
- Copy all user-defined tags from the source snapshot to the copied snapshot.public Boolean isCopyTags()
Copy all user-defined tags from the source snapshot to the copied snapshot.
public void setRetainRule(CrossRegionCopyRetainRule retainRule)
The retention rule.
retainRule
- The retention rule.public CrossRegionCopyRetainRule getRetainRule()
The retention rule.
public CrossRegionCopyRule withRetainRule(CrossRegionCopyRetainRule retainRule)
The retention rule.
retainRule
- The retention 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.