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/KeyAgreementAlgorithmSpec.h>
12#include <aws/kms/model/OriginType.h>
17template <
typename RESULT_TYPE>
18class 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));
58 template <
typename SharedSecretT = Aws::Utils::CryptoBuffer>
60 m_sharedSecretHasBeenSet =
true;
61 m_sharedSecret = std::forward<SharedSecretT>(value);
63 template <
typename SharedSecretT = Aws::Utils::CryptoBuffer>
84 template <
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
86 m_ciphertextForRecipientHasBeenSet =
true;
87 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
89 template <
typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
102 m_keyAgreementAlgorithmHasBeenSet =
true;
103 m_keyAgreementAlgorithm = value;
123 m_keyOriginHasBeenSet =
true;
135 template <
typename RequestIdT = Aws::String>
137 m_requestIdHasBeenSet =
true;
138 m_requestId = std::forward<RequestIdT>(value);
140 template <
typename RequestIdT = Aws::String>
161 bool m_keyIdHasBeenSet =
false;
162 bool m_sharedSecretHasBeenSet =
false;
163 bool m_ciphertextForRecipientHasBeenSet =
false;
164 bool m_keyAgreementAlgorithmHasBeenSet =
false;
165 bool m_keyOriginHasBeenSet =
false;
166 bool m_requestIdHasBeenSet =
false;
AWS_KMS_API DeriveSharedSecretResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
OriginType GetKeyOrigin() const
void SetSharedSecret(SharedSecretT &&value)
const Aws::String & GetRequestId() const
DeriveSharedSecretResult & WithKeyId(KeyIdT &&value)
void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_KMS_API DeriveSharedSecretResult()=default
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
DeriveSharedSecretResult & WithKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec value)
AWS_KMS_API DeriveSharedSecretResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeriveSharedSecretResult & WithRequestId(RequestIdT &&value)
DeriveSharedSecretResult & WithSharedSecret(SharedSecretT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Utils::CryptoBuffer & GetSharedSecret() const
KeyAgreementAlgorithmSpec GetKeyAgreementAlgorithm() const
void SetKeyId(KeyIdT &&value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetKeyOrigin(OriginType value)
DeriveSharedSecretResult & WithKeyOrigin(OriginType value)
const Aws::String & GetKeyId() const
DeriveSharedSecretResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
KeyAgreementAlgorithmSpec
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue