@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EncryptionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
[Event-based policies only] Specifies the encryption settings for cross-Region snapshot copies created by event-based policies.
Constructor and Description |
---|
EncryptionConfiguration() |
Modifier and Type | Method and Description |
---|---|
EncryptionConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getCmkArn()
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.
|
Boolean |
getEncrypted()
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using
this parameter.
|
int |
hashCode() |
Boolean |
isEncrypted()
To encrypt a copy of an unencrypted snapshot when 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 |
setEncrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using
this parameter.
|
String |
toString()
Returns a string representation of this object.
|
EncryptionConfiguration |
withCmkArn(String cmkArn)
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption.
|
EncryptionConfiguration |
withEncrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using
this parameter.
|
public void setEncrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
encrypted
- To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption
using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when
encryption by default is not enabled.public Boolean getEncrypted()
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
public EncryptionConfiguration withEncrypted(Boolean encrypted)
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
encrypted
- To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption
using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when
encryption by default is not enabled.public Boolean isEncrypted()
To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or when 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 EncryptionConfiguration 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 String toString()
toString
in class Object
Object.toString()
public EncryptionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.