/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Encryption options for the broker.See Also:
AWS
* API Reference
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.
*/ inline const Aws::String& GetKmsKeyId() const{ return m_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.
*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *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.
*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *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.
*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *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.
*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *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.
*/ inline EncryptionOptions& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *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.
*/ inline EncryptionOptions& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *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.
*/ inline EncryptionOptions& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *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.
*/ inline bool GetUseAwsOwnedKey() const{ return m_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.
*/ inline bool UseAwsOwnedKeyHasBeenSet() const { return m_useAwsOwnedKeyHasBeenSet; } /** *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.
*/ inline void SetUseAwsOwnedKey(bool value) { m_useAwsOwnedKeyHasBeenSet = true; m_useAwsOwnedKey = value; } /** *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.
*/ inline EncryptionOptions& WithUseAwsOwnedKey(bool value) { SetUseAwsOwnedKey(value); return *this;} private: Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; bool m_useAwsOwnedKey; bool m_useAwsOwnedKeyHasBeenSet = false; }; } // namespace Model } // namespace MQ } // namespace Aws