AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReEncryptRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/kms/model/EncryptionAlgorithmSpec.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace KMS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_KMS_API ReEncryptRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ReEncrypt"; }
35
36 AWS_KMS_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; }
46 inline bool CiphertextBlobHasBeenSet() const { return m_ciphertextBlobHasBeenSet; }
47 inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = value; }
48 inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = std::move(value); }
49 inline ReEncryptRequest& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
50 inline ReEncryptRequest& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;}
52
54
67 inline const Aws::Map<Aws::String, Aws::String>& GetSourceEncryptionContext() const{ return m_sourceEncryptionContext; }
68 inline bool SourceEncryptionContextHasBeenSet() const { return m_sourceEncryptionContextHasBeenSet; }
69 inline void SetSourceEncryptionContext(const Aws::Map<Aws::String, Aws::String>& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext = value; }
70 inline void SetSourceEncryptionContext(Aws::Map<Aws::String, Aws::String>&& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext = std::move(value); }
73 inline ReEncryptRequest& AddSourceEncryptionContext(const Aws::String& key, const Aws::String& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(key, value); return *this; }
74 inline ReEncryptRequest& AddSourceEncryptionContext(Aws::String&& key, const Aws::String& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(std::move(key), value); return *this; }
75 inline ReEncryptRequest& AddSourceEncryptionContext(const Aws::String& key, Aws::String&& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(key, std::move(value)); return *this; }
76 inline ReEncryptRequest& AddSourceEncryptionContext(Aws::String&& key, Aws::String&& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(std::move(key), std::move(value)); return *this; }
77 inline ReEncryptRequest& AddSourceEncryptionContext(const char* key, Aws::String&& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(key, std::move(value)); return *this; }
78 inline ReEncryptRequest& AddSourceEncryptionContext(Aws::String&& key, const char* value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(std::move(key), value); return *this; }
79 inline ReEncryptRequest& AddSourceEncryptionContext(const char* key, const char* value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(key, value); return *this; }
81
83
104 inline const Aws::String& GetSourceKeyId() const{ return m_sourceKeyId; }
105 inline bool SourceKeyIdHasBeenSet() const { return m_sourceKeyIdHasBeenSet; }
106 inline void SetSourceKeyId(const Aws::String& value) { m_sourceKeyIdHasBeenSet = true; m_sourceKeyId = value; }
107 inline void SetSourceKeyId(Aws::String&& value) { m_sourceKeyIdHasBeenSet = true; m_sourceKeyId = std::move(value); }
108 inline void SetSourceKeyId(const char* value) { m_sourceKeyIdHasBeenSet = true; m_sourceKeyId.assign(value); }
109 inline ReEncryptRequest& WithSourceKeyId(const Aws::String& value) { SetSourceKeyId(value); return *this;}
110 inline ReEncryptRequest& WithSourceKeyId(Aws::String&& value) { SetSourceKeyId(std::move(value)); return *this;}
111 inline ReEncryptRequest& WithSourceKeyId(const char* value) { SetSourceKeyId(value); return *this;}
113
115
132 inline const Aws::String& GetDestinationKeyId() const{ return m_destinationKeyId; }
133 inline bool DestinationKeyIdHasBeenSet() const { return m_destinationKeyIdHasBeenSet; }
134 inline void SetDestinationKeyId(const Aws::String& value) { m_destinationKeyIdHasBeenSet = true; m_destinationKeyId = value; }
135 inline void SetDestinationKeyId(Aws::String&& value) { m_destinationKeyIdHasBeenSet = true; m_destinationKeyId = std::move(value); }
136 inline void SetDestinationKeyId(const char* value) { m_destinationKeyIdHasBeenSet = true; m_destinationKeyId.assign(value); }
137 inline ReEncryptRequest& WithDestinationKeyId(const Aws::String& value) { SetDestinationKeyId(value); return *this;}
138 inline ReEncryptRequest& WithDestinationKeyId(Aws::String&& value) { SetDestinationKeyId(std::move(value)); return *this;}
139 inline ReEncryptRequest& WithDestinationKeyId(const char* value) { SetDestinationKeyId(value); return *this;}
141
143
160 inline const Aws::Map<Aws::String, Aws::String>& GetDestinationEncryptionContext() const{ return m_destinationEncryptionContext; }
161 inline bool DestinationEncryptionContextHasBeenSet() const { return m_destinationEncryptionContextHasBeenSet; }
162 inline void SetDestinationEncryptionContext(const Aws::Map<Aws::String, Aws::String>& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext = value; }
163 inline void SetDestinationEncryptionContext(Aws::Map<Aws::String, Aws::String>&& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext = std::move(value); }
166 inline ReEncryptRequest& AddDestinationEncryptionContext(const Aws::String& key, const Aws::String& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(key, value); return *this; }
167 inline ReEncryptRequest& AddDestinationEncryptionContext(Aws::String&& key, const Aws::String& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(std::move(key), value); return *this; }
168 inline ReEncryptRequest& AddDestinationEncryptionContext(const Aws::String& key, Aws::String&& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(key, std::move(value)); return *this; }
169 inline ReEncryptRequest& AddDestinationEncryptionContext(Aws::String&& key, Aws::String&& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(std::move(key), std::move(value)); return *this; }
170 inline ReEncryptRequest& AddDestinationEncryptionContext(const char* key, Aws::String&& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(key, std::move(value)); return *this; }
171 inline ReEncryptRequest& AddDestinationEncryptionContext(Aws::String&& key, const char* value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(std::move(key), value); return *this; }
172 inline ReEncryptRequest& AddDestinationEncryptionContext(const char* key, const char* value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(key, value); return *this; }
174
176
185 inline const EncryptionAlgorithmSpec& GetSourceEncryptionAlgorithm() const{ return m_sourceEncryptionAlgorithm; }
186 inline bool SourceEncryptionAlgorithmHasBeenSet() const { return m_sourceEncryptionAlgorithmHasBeenSet; }
187 inline void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_sourceEncryptionAlgorithmHasBeenSet = true; m_sourceEncryptionAlgorithm = value; }
188 inline void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_sourceEncryptionAlgorithmHasBeenSet = true; m_sourceEncryptionAlgorithm = std::move(value); }
192
194
201 inline const EncryptionAlgorithmSpec& GetDestinationEncryptionAlgorithm() const{ return m_destinationEncryptionAlgorithm; }
202 inline bool DestinationEncryptionAlgorithmHasBeenSet() const { return m_destinationEncryptionAlgorithmHasBeenSet; }
203 inline void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_destinationEncryptionAlgorithmHasBeenSet = true; m_destinationEncryptionAlgorithm = value; }
204 inline void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_destinationEncryptionAlgorithmHasBeenSet = true; m_destinationEncryptionAlgorithm = std::move(value); }
208
210
219 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
220 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
221 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
222 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
223 inline ReEncryptRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
224 inline ReEncryptRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
225 inline ReEncryptRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
226 inline ReEncryptRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
227 inline ReEncryptRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
229
231
237 inline bool GetDryRun() const{ return m_dryRun; }
238 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
239 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
240 inline ReEncryptRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
242 private:
243
244 Aws::Utils::ByteBuffer m_ciphertextBlob;
245 bool m_ciphertextBlobHasBeenSet = false;
246
247 Aws::Map<Aws::String, Aws::String> m_sourceEncryptionContext;
248 bool m_sourceEncryptionContextHasBeenSet = false;
249
250 Aws::String m_sourceKeyId;
251 bool m_sourceKeyIdHasBeenSet = false;
252
253 Aws::String m_destinationKeyId;
254 bool m_destinationKeyIdHasBeenSet = false;
255
256 Aws::Map<Aws::String, Aws::String> m_destinationEncryptionContext;
257 bool m_destinationEncryptionContextHasBeenSet = false;
258
259 EncryptionAlgorithmSpec m_sourceEncryptionAlgorithm;
260 bool m_sourceEncryptionAlgorithmHasBeenSet = false;
261
262 EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm;
263 bool m_destinationEncryptionAlgorithmHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_grantTokens;
266 bool m_grantTokensHasBeenSet = false;
267
268 bool m_dryRun;
269 bool m_dryRunHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace KMS
274} // namespace Aws
ReEncryptRequest & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
ReEncryptRequest & AddSourceEncryptionContext(Aws::String &&key, const Aws::String &value)
ReEncryptRequest & WithSourceEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
const EncryptionAlgorithmSpec & GetDestinationEncryptionAlgorithm() const
ReEncryptRequest & AddGrantTokens(const Aws::String &value)
ReEncryptRequest & WithSourceKeyId(Aws::String &&value)
ReEncryptRequest & WithSourceEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetDestinationKeyId(Aws::String &&value)
void SetDestinationKeyId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ReEncryptRequest & AddDestinationEncryptionContext(Aws::String &&key, Aws::String &&value)
void SetSourceKeyId(Aws::String &&value)
ReEncryptRequest & AddSourceEncryptionContext(const char *key, const char *value)
ReEncryptRequest & AddGrantTokens(const char *value)
ReEncryptRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
const EncryptionAlgorithmSpec & GetSourceEncryptionAlgorithm() const
void SetDestinationEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
ReEncryptRequest & AddSourceEncryptionContext(const char *key, Aws::String &&value)
ReEncryptRequest & WithDestinationKeyId(Aws::String &&value)
ReEncryptRequest & AddSourceEncryptionContext(const Aws::String &key, Aws::String &&value)
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
const Aws::String & GetSourceKeyId() const
ReEncryptRequest & WithDestinationKeyId(const Aws::String &value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ReEncryptRequest & WithDestinationKeyId(const char *value)
ReEncryptRequest & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
ReEncryptRequest & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
const Aws::String & GetDestinationKeyId() const
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
ReEncryptRequest & AddDestinationEncryptionContext(Aws::String &&key, const char *value)
ReEncryptRequest & WithSourceKeyId(const char *value)
ReEncryptRequest & AddDestinationEncryptionContext(const Aws::String &key, Aws::String &&value)
ReEncryptRequest & AddDestinationEncryptionContext(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetDestinationEncryptionContext() const
const Aws::Map< Aws::String, Aws::String > & GetSourceEncryptionContext() const
ReEncryptRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
ReEncryptRequest & AddSourceEncryptionContext(Aws::String &&key, const char *value)
void SetSourceKeyId(const Aws::String &value)
void SetSourceEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
void SetDestinationEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
ReEncryptRequest & AddDestinationEncryptionContext(const char *key, Aws::String &&value)
ReEncryptRequest & WithSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
ReEncryptRequest & WithDestinationEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
ReEncryptRequest & AddSourceEncryptionContext(const Aws::String &key, const Aws::String &value)
AWS_KMS_API Aws::String SerializePayload() const override
void SetSourceKeyId(const char *value)
ReEncryptRequest & WithDestinationEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
ReEncryptRequest & AddSourceEncryptionContext(Aws::String &&key, Aws::String &&value)
ReEncryptRequest & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
void SetDestinationKeyId(const char *value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
void SetSourceEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
ReEncryptRequest & AddDestinationEncryptionContext(Aws::String &&key, const Aws::String &value)
ReEncryptRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
ReEncryptRequest & AddDestinationEncryptionContext(const Aws::String &key, const Aws::String &value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
ReEncryptRequest & WithSourceKeyId(const Aws::String &value)
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
ReEncryptRequest & WithDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
ReEncryptRequest & AddGrantTokens(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector