@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 |
getTargetRegion()
The target Region.
|
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 |
setTargetRegion(String targetRegion)
The target Region.
|
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 |
withTargetRegion(String targetRegion)
The target Region.
|
public void setTargetRegion(String targetRegion)
The target Region.
targetRegion
- The target Region.public String getTargetRegion()
The target Region.
public CrossRegionCopyRule withTargetRegion(String targetRegion)
The target Region.
targetRegion
- The target Region.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.