AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GenerateDataKeyResult.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
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace KMS {
23namespace Model {
25 public:
26 AWS_KMS_API GenerateDataKeyResult() = default;
29
31
36 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
37 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
38 void SetCiphertextBlob(CiphertextBlobT&& value) {
39 m_ciphertextBlobHasBeenSet = true;
40 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
41 }
42 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
43 GenerateDataKeyResult& WithCiphertextBlob(CiphertextBlobT&& value) {
44 SetCiphertextBlob(std::forward<CiphertextBlobT>(value));
45 return *this;
46 }
48
50
58 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const { return m_plaintext; }
59 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
60 void SetPlaintext(PlaintextT&& value) {
61 m_plaintextHasBeenSet = true;
62 m_plaintext = std::forward<PlaintextT>(value);
63 }
64 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
65 GenerateDataKeyResult& WithPlaintext(PlaintextT&& value) {
66 SetPlaintext(std::forward<PlaintextT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetKeyId() const { return m_keyId; }
78 template <typename KeyIdT = Aws::String>
79 void SetKeyId(KeyIdT&& value) {
80 m_keyIdHasBeenSet = true;
81 m_keyId = std::forward<KeyIdT>(value);
82 }
83 template <typename KeyIdT = Aws::String>
85 SetKeyId(std::forward<KeyIdT>(value));
86 return *this;
87 }
89
91
103 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
104 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
105 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
106 m_ciphertextForRecipientHasBeenSet = true;
107 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
108 }
109 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
110 GenerateDataKeyResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
111 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
122 template <typename KeyMaterialIdT = Aws::String>
123 void SetKeyMaterialId(KeyMaterialIdT&& value) {
124 m_keyMaterialIdHasBeenSet = true;
125 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
126 }
127 template <typename KeyMaterialIdT = Aws::String>
128 GenerateDataKeyResult& WithKeyMaterialId(KeyMaterialIdT&& value) {
129 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
130 return *this;
131 }
133
135
136 inline const Aws::String& GetRequestId() const { return m_requestId; }
137 template <typename RequestIdT = Aws::String>
138 void SetRequestId(RequestIdT&& value) {
139 m_requestIdHasBeenSet = true;
140 m_requestId = std::forward<RequestIdT>(value);
141 }
142 template <typename RequestIdT = Aws::String>
144 SetRequestId(std::forward<RequestIdT>(value));
145 return *this;
146 }
148 private:
149 Aws::Utils::ByteBuffer m_ciphertextBlob{};
150
151 Aws::Utils::CryptoBuffer m_plaintext{};
152
153 Aws::String m_keyId;
154
155 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
156
157 Aws::String m_keyMaterialId;
158
159 Aws::String m_requestId;
160 bool m_ciphertextBlobHasBeenSet = false;
161 bool m_plaintextHasBeenSet = false;
162 bool m_keyIdHasBeenSet = false;
163 bool m_ciphertextForRecipientHasBeenSet = false;
164 bool m_keyMaterialIdHasBeenSet = false;
165 bool m_requestIdHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace KMS
170} // 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)
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