AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GenerateDataKeyPairResult.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/DataKeyPairSpec.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS {
25namespace Model {
27 public:
28 AWS_KMS_API GenerateDataKeyPairResult() = default;
31
33
38 inline const Aws::Utils::ByteBuffer& GetPrivateKeyCiphertextBlob() const { return m_privateKeyCiphertextBlob; }
39 template <typename PrivateKeyCiphertextBlobT = Aws::Utils::ByteBuffer>
40 void SetPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT&& value) {
41 m_privateKeyCiphertextBlobHasBeenSet = true;
42 m_privateKeyCiphertextBlob = std::forward<PrivateKeyCiphertextBlobT>(value);
43 }
44 template <typename PrivateKeyCiphertextBlobT = Aws::Utils::ByteBuffer>
45 GenerateDataKeyPairResult& WithPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT&& value) {
46 SetPrivateKeyCiphertextBlob(std::forward<PrivateKeyCiphertextBlobT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::Utils::CryptoBuffer& GetPrivateKeyPlaintext() const { return m_privateKeyPlaintext; }
60 template <typename PrivateKeyPlaintextT = Aws::Utils::CryptoBuffer>
61 void SetPrivateKeyPlaintext(PrivateKeyPlaintextT&& value) {
62 m_privateKeyPlaintextHasBeenSet = true;
63 m_privateKeyPlaintext = std::forward<PrivateKeyPlaintextT>(value);
64 }
65 template <typename PrivateKeyPlaintextT = Aws::Utils::CryptoBuffer>
66 GenerateDataKeyPairResult& WithPrivateKeyPlaintext(PrivateKeyPlaintextT&& value) {
67 SetPrivateKeyPlaintext(std::forward<PrivateKeyPlaintextT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Utils::ByteBuffer& GetPublicKey() const { return m_publicKey; }
79 template <typename PublicKeyT = Aws::Utils::ByteBuffer>
80 void SetPublicKey(PublicKeyT&& value) {
81 m_publicKeyHasBeenSet = true;
82 m_publicKey = std::forward<PublicKeyT>(value);
83 }
84 template <typename PublicKeyT = Aws::Utils::ByteBuffer>
86 SetPublicKey(std::forward<PublicKeyT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetKeyId() const { return m_keyId; }
98 template <typename KeyIdT = Aws::String>
99 void SetKeyId(KeyIdT&& value) {
100 m_keyIdHasBeenSet = true;
101 m_keyId = std::forward<KeyIdT>(value);
102 }
103 template <typename KeyIdT = Aws::String>
105 SetKeyId(std::forward<KeyIdT>(value));
106 return *this;
107 }
109
111
114 inline DataKeyPairSpec GetKeyPairSpec() const { return m_keyPairSpec; }
115 inline void SetKeyPairSpec(DataKeyPairSpec value) {
116 m_keyPairSpecHasBeenSet = true;
117 m_keyPairSpec = value;
118 }
120 SetKeyPairSpec(value);
121 return *this;
122 }
124
126
138 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
139 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
140 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
141 m_ciphertextForRecipientHasBeenSet = true;
142 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
143 }
144 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
145 GenerateDataKeyPairResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
146 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
156 template <typename KeyMaterialIdT = Aws::String>
157 void SetKeyMaterialId(KeyMaterialIdT&& value) {
158 m_keyMaterialIdHasBeenSet = true;
159 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
160 }
161 template <typename KeyMaterialIdT = Aws::String>
163 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
164 return *this;
165 }
167
169
170 inline const Aws::String& GetRequestId() const { return m_requestId; }
171 template <typename RequestIdT = Aws::String>
172 void SetRequestId(RequestIdT&& value) {
173 m_requestIdHasBeenSet = true;
174 m_requestId = std::forward<RequestIdT>(value);
175 }
176 template <typename RequestIdT = Aws::String>
178 SetRequestId(std::forward<RequestIdT>(value));
179 return *this;
180 }
182 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
183
184 private:
185 Aws::Utils::ByteBuffer m_privateKeyCiphertextBlob{};
186
187 Aws::Utils::CryptoBuffer m_privateKeyPlaintext{};
188
189 Aws::Utils::ByteBuffer m_publicKey{};
190
191 Aws::String m_keyId;
192
194
195 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
196
197 Aws::String m_keyMaterialId;
198
199 Aws::String m_requestId;
200 Aws::Http::HttpResponseCode m_HttpResponseCode;
201 bool m_privateKeyCiphertextBlobHasBeenSet = false;
202 bool m_privateKeyPlaintextHasBeenSet = false;
203 bool m_publicKeyHasBeenSet = false;
204 bool m_keyIdHasBeenSet = false;
205 bool m_keyPairSpecHasBeenSet = false;
206 bool m_ciphertextForRecipientHasBeenSet = false;
207 bool m_keyMaterialIdHasBeenSet = false;
208 bool m_requestIdHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace KMS
213} // namespace Aws
const Aws::Utils::ByteBuffer & GetPublicKey() const
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
GenerateDataKeyPairResult & WithKeyMaterialId(KeyMaterialIdT &&value)
GenerateDataKeyPairResult & WithPublicKey(PublicKeyT &&value)
GenerateDataKeyPairResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
GenerateDataKeyPairResult & WithPrivateKeyPlaintext(PrivateKeyPlaintextT &&value)
GenerateDataKeyPairResult & WithKeyPairSpec(DataKeyPairSpec value)
AWS_KMS_API GenerateDataKeyPairResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT &&value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetPrivateKeyPlaintext(PrivateKeyPlaintextT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::CryptoBuffer & GetPrivateKeyPlaintext() const
GenerateDataKeyPairResult & WithPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT &&value)
AWS_KMS_API GenerateDataKeyPairResult()=default
AWS_KMS_API GenerateDataKeyPairResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateDataKeyPairResult & WithRequestId(RequestIdT &&value)
GenerateDataKeyPairResult & WithKeyId(KeyIdT &&value)
const Aws::Utils::ByteBuffer & GetPrivateKeyCiphertextBlob() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue