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

Information about the encryption configuration for X-Ray.

See * Also:

AWS * API Reference

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The identifier of the KMS key that is used for encryption. Provided if * Type is KMS.

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

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

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

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

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

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

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

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

*/ inline AwsXrayEncryptionConfigDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

*/ inline AwsXrayEncryptionConfigDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The current status of the encryption configuration. Valid values are * ACTIVE or UPDATING.

When Status is * equal to UPDATING, X-Ray might use both the old and new * encryption.

*/ inline AwsXrayEncryptionConfigDetails& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

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

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

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

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

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

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

*/ inline AwsXrayEncryptionConfigDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

*/ inline AwsXrayEncryptionConfigDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of encryption. KMS indicates that the encryption uses * KMS keys. NONE indicates the default encryption.

*/ inline AwsXrayEncryptionConfigDetails& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_keyId; bool m_keyIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws