AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DeriveSharedSecretResult.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KMS {
26namespace Model {
28 public:
29 AWS_KMS_API DeriveSharedSecretResult() = default;
32
34
37 inline const Aws::String& GetKeyId() const { return m_keyId; }
38 template <typename KeyIdT = Aws::String>
39 void SetKeyId(KeyIdT&& value) {
40 m_keyIdHasBeenSet = true;
41 m_keyId = std::forward<KeyIdT>(value);
42 }
43 template <typename KeyIdT = Aws::String>
45 SetKeyId(std::forward<KeyIdT>(value));
46 return *this;
47 }
49
51
57 inline const Aws::Utils::CryptoBuffer& GetSharedSecret() const { return m_sharedSecret; }
58 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
59 void SetSharedSecret(SharedSecretT&& value) {
60 m_sharedSecretHasBeenSet = true;
61 m_sharedSecret = std::forward<SharedSecretT>(value);
62 }
63 template <typename SharedSecretT = Aws::Utils::CryptoBuffer>
65 SetSharedSecret(std::forward<SharedSecretT>(value));
66 return *this;
67 }
69
71
83 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
84 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
85 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
86 m_ciphertextForRecipientHasBeenSet = true;
87 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
88 }
89 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
90 DeriveSharedSecretResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
91 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
92 return *this;
93 }
95
97
100 inline KeyAgreementAlgorithmSpec GetKeyAgreementAlgorithm() const { return m_keyAgreementAlgorithm; }
102 m_keyAgreementAlgorithmHasBeenSet = true;
103 m_keyAgreementAlgorithm = value;
104 }
107 return *this;
108 }
110
112
121 inline OriginType GetKeyOrigin() const { return m_keyOrigin; }
122 inline void SetKeyOrigin(OriginType value) {
123 m_keyOriginHasBeenSet = true;
124 m_keyOrigin = value;
125 }
127 SetKeyOrigin(value);
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
147
148 private:
149 Aws::String m_keyId;
150
151 Aws::Utils::CryptoBuffer m_sharedSecret{};
152
153 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
154
156
157 OriginType m_keyOrigin{OriginType::NOT_SET};
158
159 Aws::String m_requestId;
160 Aws::Http::HttpResponseCode m_HttpResponseCode;
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;
167};
168
169} // namespace Model
170} // namespace KMS
171} // namespace Aws
AWS_KMS_API DeriveSharedSecretResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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)
const Aws::Utils::CryptoBuffer & GetSharedSecret() const
KeyAgreementAlgorithmSpec GetKeyAgreementAlgorithm() const
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
DeriveSharedSecretResult & WithKeyOrigin(OriginType value)
DeriveSharedSecretResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue