AWS SDK for C++

AWS SDK for C++ Version 1.11.775

Loading...
Searching...
No Matches
GenerateDataKeyResult.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
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 GenerateDataKeyResult() = default;
30
32
37 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
38 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
39 void SetCiphertextBlob(CiphertextBlobT&& value) {
40 m_ciphertextBlobHasBeenSet = true;
41 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
42 }
43 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
44 GenerateDataKeyResult& WithCiphertextBlob(CiphertextBlobT&& value) {
45 SetCiphertextBlob(std::forward<CiphertextBlobT>(value));
46 return *this;
47 }
49
51
59 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const { return m_plaintext; }
60 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
61 void SetPlaintext(PlaintextT&& value) {
62 m_plaintextHasBeenSet = true;
63 m_plaintext = std::forward<PlaintextT>(value);
64 }
65 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
66 GenerateDataKeyResult& WithPlaintext(PlaintextT&& value) {
67 SetPlaintext(std::forward<PlaintextT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetKeyId() const { return m_keyId; }
79 template <typename KeyIdT = Aws::String>
80 void SetKeyId(KeyIdT&& value) {
81 m_keyIdHasBeenSet = true;
82 m_keyId = std::forward<KeyIdT>(value);
83 }
84 template <typename KeyIdT = Aws::String>
86 SetKeyId(std::forward<KeyIdT>(value));
87 return *this;
88 }
90
92
104 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
105 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
106 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
107 m_ciphertextForRecipientHasBeenSet = true;
108 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
109 }
110 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
111 GenerateDataKeyResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
112 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
123 template <typename KeyMaterialIdT = Aws::String>
124 void SetKeyMaterialId(KeyMaterialIdT&& value) {
125 m_keyMaterialIdHasBeenSet = true;
126 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
127 }
128 template <typename KeyMaterialIdT = Aws::String>
129 GenerateDataKeyResult& WithKeyMaterialId(KeyMaterialIdT&& value) {
130 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
131 return *this;
132 }
134
136
137 inline const Aws::String& GetRequestId() const { return m_requestId; }
138 template <typename RequestIdT = Aws::String>
139 void SetRequestId(RequestIdT&& value) {
140 m_requestIdHasBeenSet = true;
141 m_requestId = std::forward<RequestIdT>(value);
142 }
143 template <typename RequestIdT = Aws::String>
145 SetRequestId(std::forward<RequestIdT>(value));
146 return *this;
147 }
149 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
150
151 private:
152 Aws::Utils::ByteBuffer m_ciphertextBlob{};
153
154 Aws::Utils::CryptoBuffer m_plaintext{};
155
156 Aws::String m_keyId;
157
158 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
159
160 Aws::String m_keyMaterialId;
161
162 Aws::String m_requestId;
163 Aws::Http::HttpResponseCode m_HttpResponseCode;
164 bool m_ciphertextBlobHasBeenSet = false;
165 bool m_plaintextHasBeenSet = false;
166 bool m_keyIdHasBeenSet = false;
167 bool m_ciphertextForRecipientHasBeenSet = false;
168 bool m_keyMaterialIdHasBeenSet = false;
169 bool m_requestIdHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace KMS
174} // namespace Aws
GenerateDataKeyResult & WithKeyId(KeyIdT &&value)
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
AWS_KMS_API GenerateDataKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API GenerateDataKeyResult()=default
void SetKeyMaterialId(KeyMaterialIdT &&value)
GenerateDataKeyResult & WithPlaintext(PlaintextT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetCiphertextBlob(CiphertextBlobT &&value)
GenerateDataKeyResult & WithCiphertextBlob(CiphertextBlobT &&value)
AWS_KMS_API GenerateDataKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
GenerateDataKeyResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
GenerateDataKeyResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
GenerateDataKeyResult & WithKeyMaterialId(KeyMaterialIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue