@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EncryptionAtRestOptions extends Object implements Serializable, Cloneable, StructuredPojo
Specifies whether the domain should encrypt data at rest, and if so, the Key Management Service (KMS) key to use. Can only be used when creating a new domain or enabling encryption at rest for the first time on an existing domain. You can't modify this parameter after it's already been specified.
| Constructor and Description |
|---|
EncryptionAtRestOptions() |
| Modifier and Type | Method and Description |
|---|---|
EncryptionAtRestOptions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
True to enable encryption at rest.
|
String |
getKmsKeyId()
The KMS key ID.
|
int |
hashCode() |
Boolean |
isEnabled()
True to enable encryption at rest.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEnabled(Boolean enabled)
True to enable encryption at rest.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key ID.
|
String |
toString()
Returns a string representation of this object.
|
EncryptionAtRestOptions |
withEnabled(Boolean enabled)
True to enable encryption at rest.
|
EncryptionAtRestOptions |
withKmsKeyId(String kmsKeyId)
The KMS key ID.
|
public void setEnabled(Boolean enabled)
True to enable encryption at rest.
enabled - True to enable encryption at rest.public Boolean getEnabled()
True to enable encryption at rest.
public EncryptionAtRestOptions withEnabled(Boolean enabled)
True to enable encryption at rest.
enabled - True to enable encryption at rest.public Boolean isEnabled()
True to enable encryption at rest.
public void setKmsKeyId(String kmsKeyId)
The KMS key ID. Takes the form 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
kmsKeyId - The KMS key ID. Takes the form 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.public String getKmsKeyId()
The KMS key ID. Takes the form 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.public EncryptionAtRestOptions withKmsKeyId(String kmsKeyId)
The KMS key ID. Takes the form 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.
kmsKeyId - The KMS key ID. Takes the form 1a2a3a4-1a2a-3a4a-5a6a-1a2a3a4a5a6a.public String toString()
toString in class ObjectObject.toString()public EncryptionAtRestOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.