@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 be used only to create a new domain, not update an existing one.
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 Object
Object.toString()
public EncryptionAtRestOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.