7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/EncryptionAlgorithmSpec.h>
16template <
typename RESULT_TYPE>
17class AmazonWebServiceResult;
39 template <
typename KeyIdT = Aws::String>
41 m_keyIdHasBeenSet =
true;
42 m_keyId = std::forward<KeyIdT>(value);
44 template <
typename KeyIdT = Aws::String>
46 SetKeyId(std::forward<KeyIdT>(value));
60 template <
typename Pla
intextT = Aws::Utils::CryptoBuffer>
62 m_plaintextHasBeenSet =
true;
63 m_plaintext = std::forward<PlaintextT>(value);
65 template <
typename Pla
intextT = Aws::Utils::CryptoBuffer>
78 m_encryptionAlgorithmHasBeenSet =
true;
79 m_encryptionAlgorithm = value;
101 template <
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
103 m_ciphertextForRecipientHasBeenSet =
true;
104 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
106 template <
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
121 template <
typename KeyMaterialIdT = Aws::String>
123 m_keyMaterialIdHasBeenSet =
true;
124 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
126 template <
typename KeyMaterialIdT = Aws::String>
136 template <
typename RequestIdT = Aws::String>
138 m_requestIdHasBeenSet =
true;
139 m_requestId = std::forward<RequestIdT>(value);
141 template <
typename RequestIdT = Aws::String>
162 bool m_keyIdHasBeenSet =
false;
163 bool m_plaintextHasBeenSet =
false;
164 bool m_encryptionAlgorithmHasBeenSet =
false;
165 bool m_ciphertextForRecipientHasBeenSet =
false;
166 bool m_keyMaterialIdHasBeenSet =
false;
167 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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