/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace KMS { namespace Model { class AWS_KMS_API DecryptResult { public: DecryptResult(); DecryptResult(const Aws::AmazonWebServiceResult& result); DecryptResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

The Amazon Resource Name (key * ARN) of the CMK that was used to decrypt the ciphertext.

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

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline const Aws::Utils::CryptoBuffer& GetPlaintext() const{ return m_plaintext; } /** *

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline void SetPlaintext(const Aws::Utils::CryptoBuffer& value) { m_plaintext = value; } /** *

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline void SetPlaintext(Aws::Utils::CryptoBuffer&& value) { m_plaintext = std::move(value); } /** *

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline DecryptResult& WithPlaintext(const Aws::Utils::CryptoBuffer& value) { SetPlaintext(value); return *this;} /** *

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value * is Base64-encoded. Otherwise, it is not Base64-encoded.

*/ inline DecryptResult& WithPlaintext(Aws::Utils::CryptoBuffer&& value) { SetPlaintext(std::move(value)); return *this;} /** *

The encryption algorithm that was used to decrypt the ciphertext.

*/ inline const EncryptionAlgorithmSpec& GetEncryptionAlgorithm() const{ return m_encryptionAlgorithm; } /** *

The encryption algorithm that was used to decrypt the ciphertext.

*/ inline void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_encryptionAlgorithm = value; } /** *

The encryption algorithm that was used to decrypt the ciphertext.

*/ inline void SetEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_encryptionAlgorithm = std::move(value); } /** *

The encryption algorithm that was used to decrypt the ciphertext.

*/ inline DecryptResult& WithEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { SetEncryptionAlgorithm(value); return *this;} /** *

The encryption algorithm that was used to decrypt the ciphertext.

*/ inline DecryptResult& WithEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetEncryptionAlgorithm(std::move(value)); return *this;} private: Aws::String m_keyId; Aws::Utils::CryptoBuffer m_plaintext; EncryptionAlgorithmSpec m_encryptionAlgorithm; }; } // namespace Model } // namespace KMS } // namespace Aws