@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EncryptionOptions extends Object implements Serializable, Cloneable, StructuredPojo
Encryption options for the broker.
Constructor and Description |
---|
EncryptionOptions() |
Modifier and Type | Method and Description |
---|---|
EncryptionOptions |
clone() |
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The customer master key (CMK) to use for the A KMS (KMS).
|
Boolean |
getUseAwsOwnedKey()
Enables the use of an Amazon Web Services owned CMK using KMS (KMS).
|
int |
hashCode() |
Boolean |
isUseAwsOwnedKey()
Enables the use of an Amazon Web Services owned CMK using KMS (KMS).
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKmsKeyId(String kmsKeyId)
The customer master key (CMK) to use for the A KMS (KMS).
|
void |
setUseAwsOwnedKey(Boolean useAwsOwnedKey)
Enables the use of an Amazon Web Services owned CMK using KMS (KMS).
|
String |
toString()
Returns a string representation of this object.
|
EncryptionOptions |
withKmsKeyId(String kmsKeyId)
The customer master key (CMK) to use for the A KMS (KMS).
|
EncryptionOptions |
withUseAwsOwnedKey(Boolean useAwsOwnedKey)
Enables the use of an Amazon Web Services owned CMK using KMS (KMS).
|
public void setKmsKeyId(String kmsKeyId)
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
kmsKeyId
- The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest.
If not provided, Amazon MQ will use a default CMK to encrypt your data.public String getKmsKeyId()
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
public EncryptionOptions withKmsKeyId(String kmsKeyId)
The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.
kmsKeyId
- The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest.
If not provided, Amazon MQ will use a default CMK to encrypt your data.public void setUseAwsOwnedKey(Boolean useAwsOwnedKey)
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
useAwsOwnedKey
- Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value
is provided, for example, for RabbitMQ brokers.public Boolean getUseAwsOwnedKey()
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
public EncryptionOptions withUseAwsOwnedKey(Boolean useAwsOwnedKey)
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
useAwsOwnedKey
- Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value
is provided, for example, for RabbitMQ brokers.public Boolean isUseAwsOwnedKey()
Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.
public String toString()
toString
in class Object
Object.toString()
public EncryptionOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.