7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/kms/model/EncryptionAlgorithmSpec.h>
15template<
typename RESULT_TYPE>
16class AmazonWebServiceResult;
44 template<
typename KeyIdT = Aws::String>
45 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
46 template<
typename KeyIdT = Aws::String>
59 template<
typename Pla
intextT = Aws::Utils::CryptoBuffer>
60 void SetPlaintext(PlaintextT&& value) { m_plaintextHasBeenSet =
true; m_plaintext = std::forward<PlaintextT>(value); }
61 template<
typename Pla
intextT = Aws::Utils::CryptoBuffer>
86 template<
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
87 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) { m_ciphertextForRecipientHasBeenSet =
true; m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value); }
88 template<
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
100 template<
typename KeyMaterialIdT = Aws::String>
101 void SetKeyMaterialId(KeyMaterialIdT&& value) { m_keyMaterialIdHasBeenSet =
true; m_keyMaterialId = std::forward<KeyMaterialIdT>(value); }
102 template<
typename KeyMaterialIdT = Aws::String>
109 template<
typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
111 template<
typename RequestIdT = Aws::String>
117 bool m_keyIdHasBeenSet =
false;
120 bool m_plaintextHasBeenSet =
false;
123 bool m_encryptionAlgorithmHasBeenSet =
false;
126 bool m_ciphertextForRecipientHasBeenSet =
false;
129 bool m_keyMaterialIdHasBeenSet =
false;
132 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