AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ReEncryptResult.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/EncryptionAlgorithmSpec.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 ReEncryptResult() = default;
31
33
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 ReEncryptResult& WithCiphertextBlob(CiphertextBlobT&& value) {
45 SetCiphertextBlob(std::forward<CiphertextBlobT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSourceKeyId() const { return m_sourceKeyId; }
55 template <typename SourceKeyIdT = Aws::String>
56 void SetSourceKeyId(SourceKeyIdT&& value) {
57 m_sourceKeyIdHasBeenSet = true;
58 m_sourceKeyId = std::forward<SourceKeyIdT>(value);
59 }
60 template <typename SourceKeyIdT = Aws::String>
61 ReEncryptResult& WithSourceKeyId(SourceKeyIdT&& value) {
62 SetSourceKeyId(std::forward<SourceKeyIdT>(value));
63 return *this;
64 }
66
68
73 inline const Aws::String& GetKeyId() const { return m_keyId; }
74 template <typename KeyIdT = Aws::String>
75 void SetKeyId(KeyIdT&& value) {
76 m_keyIdHasBeenSet = true;
77 m_keyId = std::forward<KeyIdT>(value);
78 }
79 template <typename KeyIdT = Aws::String>
80 ReEncryptResult& WithKeyId(KeyIdT&& value) {
81 SetKeyId(std::forward<KeyIdT>(value));
82 return *this;
83 }
85
87
91 inline EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const { return m_sourceEncryptionAlgorithm; }
93 m_sourceEncryptionAlgorithmHasBeenSet = true;
94 m_sourceEncryptionAlgorithm = value;
95 }
98 return *this;
99 }
101
103
106 inline EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const { return m_destinationEncryptionAlgorithm; }
108 m_destinationEncryptionAlgorithmHasBeenSet = true;
109 m_destinationEncryptionAlgorithm = value;
110 }
113 return *this;
114 }
116
118
123 inline const Aws::String& GetSourceKeyMaterialId() const { return m_sourceKeyMaterialId; }
124 template <typename SourceKeyMaterialIdT = Aws::String>
125 void SetSourceKeyMaterialId(SourceKeyMaterialIdT&& value) {
126 m_sourceKeyMaterialIdHasBeenSet = true;
127 m_sourceKeyMaterialId = std::forward<SourceKeyMaterialIdT>(value);
128 }
129 template <typename SourceKeyMaterialIdT = Aws::String>
130 ReEncryptResult& WithSourceKeyMaterialId(SourceKeyMaterialIdT&& value) {
131 SetSourceKeyMaterialId(std::forward<SourceKeyMaterialIdT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetDestinationKeyMaterialId() const { return m_destinationKeyMaterialId; }
142 template <typename DestinationKeyMaterialIdT = Aws::String>
143 void SetDestinationKeyMaterialId(DestinationKeyMaterialIdT&& value) {
144 m_destinationKeyMaterialIdHasBeenSet = true;
145 m_destinationKeyMaterialId = std::forward<DestinationKeyMaterialIdT>(value);
146 }
147 template <typename DestinationKeyMaterialIdT = Aws::String>
148 ReEncryptResult& WithDestinationKeyMaterialId(DestinationKeyMaterialIdT&& value) {
149 SetDestinationKeyMaterialId(std::forward<DestinationKeyMaterialIdT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template <typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) {
159 m_requestIdHasBeenSet = true;
160 m_requestId = std::forward<RequestIdT>(value);
161 }
162 template <typename RequestIdT = Aws::String>
163 ReEncryptResult& WithRequestId(RequestIdT&& value) {
164 SetRequestId(std::forward<RequestIdT>(value));
165 return *this;
166 }
168 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
169
170 private:
171 Aws::Utils::ByteBuffer m_ciphertextBlob{};
172
173 Aws::String m_sourceKeyId;
174
175 Aws::String m_keyId;
176
178
179 EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm{EncryptionAlgorithmSpec::NOT_SET};
180
181 Aws::String m_sourceKeyMaterialId;
182
183 Aws::String m_destinationKeyMaterialId;
184
185 Aws::String m_requestId;
186 Aws::Http::HttpResponseCode m_HttpResponseCode;
187 bool m_ciphertextBlobHasBeenSet = false;
188 bool m_sourceKeyIdHasBeenSet = false;
189 bool m_keyIdHasBeenSet = false;
190 bool m_sourceEncryptionAlgorithmHasBeenSet = false;
191 bool m_destinationEncryptionAlgorithmHasBeenSet = false;
192 bool m_sourceKeyMaterialIdHasBeenSet = false;
193 bool m_destinationKeyMaterialIdHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace KMS
199} // namespace Aws
EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
const Aws::String & GetDestinationKeyMaterialId() const
void SetSourceKeyId(SourceKeyIdT &&value)
void SetDestinationKeyMaterialId(DestinationKeyMaterialIdT &&value)
ReEncryptResult & WithRequestId(RequestIdT &&value)
void SetCiphertextBlob(CiphertextBlobT &&value)
AWS_KMS_API ReEncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API ReEncryptResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ReEncryptResult & WithDestinationKeyMaterialId(DestinationKeyMaterialIdT &&value)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetSourceKeyMaterialId() const
ReEncryptResult & WithSourceKeyId(SourceKeyIdT &&value)
AWS_KMS_API ReEncryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ReEncryptResult & WithCiphertextBlob(CiphertextBlobT &&value)
const Aws::String & GetSourceKeyId() const
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptResult & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptResult & WithKeyId(KeyIdT &&value)
EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const
ReEncryptResult & WithSourceKeyMaterialId(SourceKeyMaterialIdT &&value)
ReEncryptResult & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
void SetSourceKeyMaterialId(SourceKeyMaterialIdT &&value)
const Aws::String & GetKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue