AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GenerateDataKeyPairResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/DataKeyPairSpec.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API GenerateDataKeyPairResult() = default;
30
32
37 inline const Aws::Utils::ByteBuffer& GetPrivateKeyCiphertextBlob() const { return m_privateKeyCiphertextBlob; }
38 template <typename PrivateKeyCiphertextBlobT = Aws::Utils::ByteBuffer>
39 void SetPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT&& value) {
40 m_privateKeyCiphertextBlobHasBeenSet = true;
41 m_privateKeyCiphertextBlob = std::forward<PrivateKeyCiphertextBlobT>(value);
42 }
43 template <typename PrivateKeyCiphertextBlobT = Aws::Utils::ByteBuffer>
44 GenerateDataKeyPairResult& WithPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT&& value) {
45 SetPrivateKeyCiphertextBlob(std::forward<PrivateKeyCiphertextBlobT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::Utils::CryptoBuffer& GetPrivateKeyPlaintext() const { return m_privateKeyPlaintext; }
59 template <typename PrivateKeyPlaintextT = Aws::Utils::CryptoBuffer>
60 void SetPrivateKeyPlaintext(PrivateKeyPlaintextT&& value) {
61 m_privateKeyPlaintextHasBeenSet = true;
62 m_privateKeyPlaintext = std::forward<PrivateKeyPlaintextT>(value);
63 }
64 template <typename PrivateKeyPlaintextT = Aws::Utils::CryptoBuffer>
65 GenerateDataKeyPairResult& WithPrivateKeyPlaintext(PrivateKeyPlaintextT&& value) {
66 SetPrivateKeyPlaintext(std::forward<PrivateKeyPlaintextT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Utils::ByteBuffer& GetPublicKey() const { return m_publicKey; }
78 template <typename PublicKeyT = Aws::Utils::ByteBuffer>
79 void SetPublicKey(PublicKeyT&& value) {
80 m_publicKeyHasBeenSet = true;
81 m_publicKey = std::forward<PublicKeyT>(value);
82 }
83 template <typename PublicKeyT = Aws::Utils::ByteBuffer>
85 SetPublicKey(std::forward<PublicKeyT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetKeyId() const { return m_keyId; }
97 template <typename KeyIdT = Aws::String>
98 void SetKeyId(KeyIdT&& value) {
99 m_keyIdHasBeenSet = true;
100 m_keyId = std::forward<KeyIdT>(value);
101 }
102 template <typename KeyIdT = Aws::String>
104 SetKeyId(std::forward<KeyIdT>(value));
105 return *this;
106 }
108
110
113 inline DataKeyPairSpec GetKeyPairSpec() const { return m_keyPairSpec; }
114 inline void SetKeyPairSpec(DataKeyPairSpec value) {
115 m_keyPairSpecHasBeenSet = true;
116 m_keyPairSpec = value;
117 }
119 SetKeyPairSpec(value);
120 return *this;
121 }
123
125
137 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
138 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
139 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
140 m_ciphertextForRecipientHasBeenSet = true;
141 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
142 }
143 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
144 GenerateDataKeyPairResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
145 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
155 template <typename KeyMaterialIdT = Aws::String>
156 void SetKeyMaterialId(KeyMaterialIdT&& value) {
157 m_keyMaterialIdHasBeenSet = true;
158 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
159 }
160 template <typename KeyMaterialIdT = Aws::String>
162 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 private:
182 Aws::Utils::ByteBuffer m_privateKeyCiphertextBlob{};
183
184 Aws::Utils::CryptoBuffer m_privateKeyPlaintext{};
185
186 Aws::Utils::ByteBuffer m_publicKey{};
187
188 Aws::String m_keyId;
189
191
192 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
193
194 Aws::String m_keyMaterialId;
195
196 Aws::String m_requestId;
197 bool m_privateKeyCiphertextBlobHasBeenSet = false;
198 bool m_privateKeyPlaintextHasBeenSet = false;
199 bool m_publicKeyHasBeenSet = false;
200 bool m_keyIdHasBeenSet = false;
201 bool m_keyPairSpecHasBeenSet = false;
202 bool m_ciphertextForRecipientHasBeenSet = false;
203 bool m_keyMaterialIdHasBeenSet = false;
204 bool m_requestIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace KMS
209} // 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)
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