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

Contains information about the party that receives the response from the API * operation.

This data type is designed to support Amazon Web Services * Nitro Enclaves, which lets you create an isolated compute environment in Amazon * EC2. For information about the interaction between KMS and Amazon Web Services * Nitro Enclaves, see How * Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service * Developer Guide.

See Also:

AWS * API Reference

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

The encryption algorithm that KMS should use with the public key for an * Amazon Web Services Nitro Enclave to encrypt plaintext values for the response. * The only valid value is RSAES_OAEP_SHA_256.

*/ inline const KeyEncryptionMechanism& GetKeyEncryptionAlgorithm() const{ return m_keyEncryptionAlgorithm; } /** *

The encryption algorithm that KMS should use with the public key for an * Amazon Web Services Nitro Enclave to encrypt plaintext values for the response. * The only valid value is RSAES_OAEP_SHA_256.

*/ inline bool KeyEncryptionAlgorithmHasBeenSet() const { return m_keyEncryptionAlgorithmHasBeenSet; } /** *

The encryption algorithm that KMS should use with the public key for an * Amazon Web Services Nitro Enclave to encrypt plaintext values for the response. * The only valid value is RSAES_OAEP_SHA_256.

*/ inline void SetKeyEncryptionAlgorithm(const KeyEncryptionMechanism& value) { m_keyEncryptionAlgorithmHasBeenSet = true; m_keyEncryptionAlgorithm = value; } /** *

The encryption algorithm that KMS should use with the public key for an * Amazon Web Services Nitro Enclave to encrypt plaintext values for the response. * The only valid value is RSAES_OAEP_SHA_256.

*/ inline void SetKeyEncryptionAlgorithm(KeyEncryptionMechanism&& value) { m_keyEncryptionAlgorithmHasBeenSet = true; m_keyEncryptionAlgorithm = std::move(value); } /** *

The encryption algorithm that KMS should use with the public key for an * Amazon Web Services Nitro Enclave to encrypt plaintext values for the response. * The only valid value is RSAES_OAEP_SHA_256.

*/ inline RecipientInfo& WithKeyEncryptionAlgorithm(const KeyEncryptionMechanism& value) { SetKeyEncryptionAlgorithm(value); return *this;} /** *

The encryption algorithm that KMS should use with the public key for an * Amazon Web Services Nitro Enclave to encrypt plaintext values for the response. * The only valid value is RSAES_OAEP_SHA_256.

*/ inline RecipientInfo& WithKeyEncryptionAlgorithm(KeyEncryptionMechanism&& value) { SetKeyEncryptionAlgorithm(std::move(value)); return *this;} /** *

The attestation document for an Amazon Web Services Nitro Enclave. This * document includes the enclave's public key.

*/ inline const Aws::Utils::ByteBuffer& GetAttestationDocument() const{ return m_attestationDocument; } /** *

The attestation document for an Amazon Web Services Nitro Enclave. This * document includes the enclave's public key.

*/ inline bool AttestationDocumentHasBeenSet() const { return m_attestationDocumentHasBeenSet; } /** *

The attestation document for an Amazon Web Services Nitro Enclave. This * document includes the enclave's public key.

*/ inline void SetAttestationDocument(const Aws::Utils::ByteBuffer& value) { m_attestationDocumentHasBeenSet = true; m_attestationDocument = value; } /** *

The attestation document for an Amazon Web Services Nitro Enclave. This * document includes the enclave's public key.

*/ inline void SetAttestationDocument(Aws::Utils::ByteBuffer&& value) { m_attestationDocumentHasBeenSet = true; m_attestationDocument = std::move(value); } /** *

The attestation document for an Amazon Web Services Nitro Enclave. This * document includes the enclave's public key.

*/ inline RecipientInfo& WithAttestationDocument(const Aws::Utils::ByteBuffer& value) { SetAttestationDocument(value); return *this;} /** *

The attestation document for an Amazon Web Services Nitro Enclave. This * document includes the enclave's public key.

*/ inline RecipientInfo& WithAttestationDocument(Aws::Utils::ByteBuffer&& value) { SetAttestationDocument(std::move(value)); return *this;} private: KeyEncryptionMechanism m_keyEncryptionAlgorithm; bool m_keyEncryptionAlgorithmHasBeenSet = false; Aws::Utils::ByteBuffer m_attestationDocument; bool m_attestationDocumentHasBeenSet = false; }; } // namespace Model } // namespace KMS } // namespace Aws