/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

A configuration document that specifies encryption configuration * settings.

See Also:

AWS * API Reference

*/ class EncryptionConfig { public: AWS_XRAY_API EncryptionConfig(); AWS_XRAY_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline const Aws::String& GetKeyId() const{ return m_keyId; } /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; } /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; } /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); } /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); } /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline EncryptionConfig& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline EncryptionConfig& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} /** *

The ID of the KMS key used for encryption, if applicable.

*/ inline EncryptionConfig& WithKeyId(const char* value) { SetKeyId(value); return *this;} /** *

The encryption status. While the status is UPDATING, X-Ray may * encrypt data with a combination of the new and old settings.

*/ inline const EncryptionStatus& GetStatus() const{ return m_status; } /** *

The encryption status. While the status is UPDATING, X-Ray may * encrypt data with a combination of the new and old settings.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The encryption status. While the status is UPDATING, X-Ray may * encrypt data with a combination of the new and old settings.

*/ inline void SetStatus(const EncryptionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The encryption status. While the status is UPDATING, X-Ray may * encrypt data with a combination of the new and old settings.

*/ inline void SetStatus(EncryptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The encryption status. While the status is UPDATING, X-Ray may * encrypt data with a combination of the new and old settings.

*/ inline EncryptionConfig& WithStatus(const EncryptionStatus& value) { SetStatus(value); return *this;} /** *

The encryption status. While the status is UPDATING, X-Ray may * encrypt data with a combination of the new and old settings.

*/ inline EncryptionConfig& WithStatus(EncryptionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The type of encryption. Set to KMS for encryption with KMS keys. * Set to NONE for default encryption.

*/ inline const EncryptionType& GetType() const{ return m_type; } /** *

The type of encryption. Set to KMS for encryption with KMS keys. * Set to NONE for default encryption.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of encryption. Set to KMS for encryption with KMS keys. * Set to NONE for default encryption.

*/ inline void SetType(const EncryptionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of encryption. Set to KMS for encryption with KMS keys. * Set to NONE for default encryption.

*/ inline void SetType(EncryptionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of encryption. Set to KMS for encryption with KMS keys. * Set to NONE for default encryption.

*/ inline EncryptionConfig& WithType(const EncryptionType& value) { SetType(value); return *this;} /** *

The type of encryption. Set to KMS for encryption with KMS keys. * Set to NONE for default encryption.

*/ inline EncryptionConfig& WithType(EncryptionType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_keyId; bool m_keyIdHasBeenSet = false; EncryptionStatus m_status; bool m_statusHasBeenSet = false; EncryptionType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws