7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/EncryptionAlgorithmSpec.h>
15template <
typename RESULT_TYPE>
16class AmazonWebServiceResult;
38 template <
typename KeyIdT = Aws::String>
40 m_keyIdHasBeenSet =
true;
41 m_keyId = std::forward<KeyIdT>(value);
43 template <
typename KeyIdT = Aws::String>
45 SetKeyId(std::forward<KeyIdT>(value));
59 template <
typename Pla
intextT = Aws::Utils::CryptoBuffer>
61 m_plaintextHasBeenSet =
true;
62 m_plaintext = std::forward<PlaintextT>(value);
64 template <
typename Pla
intextT = Aws::Utils::CryptoBuffer>
77 m_encryptionAlgorithmHasBeenSet =
true;
78 m_encryptionAlgorithm = value;
100 template <
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
102 m_ciphertextForRecipientHasBeenSet =
true;
103 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
105 template <
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
120 template <
typename KeyMaterialIdT = Aws::String>
122 m_keyMaterialIdHasBeenSet =
true;
123 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
125 template <
typename KeyMaterialIdT = Aws::String>
135 template <
typename RequestIdT = Aws::String>
137 m_requestIdHasBeenSet =
true;
138 m_requestId = std::forward<RequestIdT>(value);
140 template <
typename RequestIdT = Aws::String>
158 bool m_keyIdHasBeenSet =
false;
159 bool m_plaintextHasBeenSet =
false;
160 bool m_encryptionAlgorithmHasBeenSet =
false;
161 bool m_ciphertextForRecipientHasBeenSet =
false;
162 bool m_keyMaterialIdHasBeenSet =
false;
163 bool m_requestIdHasBeenSet =
false;
DecryptResult & WithPlaintext(PlaintextT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetKeyMaterialId() const
void SetKeyMaterialId(KeyMaterialIdT &&value)
const Aws::String & GetRequestId() const
EncryptionAlgorithmSpec GetEncryptionAlgorithm() const
AWS_KMS_API DecryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetKeyId() const
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
DecryptResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
DecryptResult & WithKeyMaterialId(KeyMaterialIdT &&value)
DecryptResult & WithKeyId(KeyIdT &&value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
AWS_KMS_API DecryptResult()=default
DecryptResult & WithEncryptionAlgorithm(EncryptionAlgorithmSpec value)
void SetKeyId(KeyIdT &&value)
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value)
DecryptResult & WithRequestId(RequestIdT &&value)
void SetPlaintext(PlaintextT &&value)
AWS_KMS_API DecryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue