AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CiphertextBlobT = Aws::Utils::ByteBuffer>
48 void SetCiphertextBlob(CiphertextBlobT&& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = std::forward<CiphertextBlobT>(value); }
49 template<typename CiphertextBlobT = Aws::Utils::ByteBuffer>
50 ReEncryptRequest& WithCiphertextBlob(CiphertextBlobT&& value) { SetCiphertextBlob(std::forward<CiphertextBlobT>(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 template<typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
70 void SetSourceEncryptionContext(SourceEncryptionContextT&& value) { m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext = std::forward<SourceEncryptionContextT>(value); }
71 template<typename SourceEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
72 ReEncryptRequest& WithSourceEncryptionContext(SourceEncryptionContextT&& value) { SetSourceEncryptionContext(std::forward<SourceEncryptionContextT>(value)); return *this;}
73 template<typename SourceEncryptionContextKeyT = Aws::String, typename SourceEncryptionContextValueT = Aws::String>
74 ReEncryptRequest& AddSourceEncryptionContext(SourceEncryptionContextKeyT&& key, SourceEncryptionContextValueT&& value) {
75 m_sourceEncryptionContextHasBeenSet = true; m_sourceEncryptionContext.emplace(std::forward<SourceEncryptionContextKeyT>(key), std::forward<SourceEncryptionContextValueT>(value)); return *this;
76 }
78
80
101 inline const Aws::String& GetSourceKeyId() const { return m_sourceKeyId; }
102 inline bool SourceKeyIdHasBeenSet() const { return m_sourceKeyIdHasBeenSet; }
103 template<typename SourceKeyIdT = Aws::String>
104 void SetSourceKeyId(SourceKeyIdT&& value) { m_sourceKeyIdHasBeenSet = true; m_sourceKeyId = std::forward<SourceKeyIdT>(value); }
105 template<typename SourceKeyIdT = Aws::String>
106 ReEncryptRequest& WithSourceKeyId(SourceKeyIdT&& value) { SetSourceKeyId(std::forward<SourceKeyIdT>(value)); return *this;}
108
110
127 inline const Aws::String& GetDestinationKeyId() const { return m_destinationKeyId; }
128 inline bool DestinationKeyIdHasBeenSet() const { return m_destinationKeyIdHasBeenSet; }
129 template<typename DestinationKeyIdT = Aws::String>
130 void SetDestinationKeyId(DestinationKeyIdT&& value) { m_destinationKeyIdHasBeenSet = true; m_destinationKeyId = std::forward<DestinationKeyIdT>(value); }
131 template<typename DestinationKeyIdT = Aws::String>
132 ReEncryptRequest& WithDestinationKeyId(DestinationKeyIdT&& value) { SetDestinationKeyId(std::forward<DestinationKeyIdT>(value)); return *this;}
134
136
153 inline const Aws::Map<Aws::String, Aws::String>& GetDestinationEncryptionContext() const { return m_destinationEncryptionContext; }
154 inline bool DestinationEncryptionContextHasBeenSet() const { return m_destinationEncryptionContextHasBeenSet; }
155 template<typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
156 void SetDestinationEncryptionContext(DestinationEncryptionContextT&& value) { m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext = std::forward<DestinationEncryptionContextT>(value); }
157 template<typename DestinationEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
158 ReEncryptRequest& WithDestinationEncryptionContext(DestinationEncryptionContextT&& value) { SetDestinationEncryptionContext(std::forward<DestinationEncryptionContextT>(value)); return *this;}
159 template<typename DestinationEncryptionContextKeyT = Aws::String, typename DestinationEncryptionContextValueT = Aws::String>
160 ReEncryptRequest& AddDestinationEncryptionContext(DestinationEncryptionContextKeyT&& key, DestinationEncryptionContextValueT&& value) {
161 m_destinationEncryptionContextHasBeenSet = true; m_destinationEncryptionContext.emplace(std::forward<DestinationEncryptionContextKeyT>(key), std::forward<DestinationEncryptionContextValueT>(value)); return *this;
162 }
164
166
175 inline EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const { return m_sourceEncryptionAlgorithm; }
176 inline bool SourceEncryptionAlgorithmHasBeenSet() const { return m_sourceEncryptionAlgorithmHasBeenSet; }
177 inline void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value) { m_sourceEncryptionAlgorithmHasBeenSet = true; m_sourceEncryptionAlgorithm = value; }
180
182
189 inline EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const { return m_destinationEncryptionAlgorithm; }
190 inline bool DestinationEncryptionAlgorithmHasBeenSet() const { return m_destinationEncryptionAlgorithmHasBeenSet; }
191 inline void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value) { m_destinationEncryptionAlgorithmHasBeenSet = true; m_destinationEncryptionAlgorithm = value; }
194
196
205 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
206 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
207 template<typename GrantTokensT = Aws::Vector<Aws::String>>
208 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
209 template<typename GrantTokensT = Aws::Vector<Aws::String>>
210 ReEncryptRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
211 template<typename GrantTokensT = Aws::String>
212 ReEncryptRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
214
216
222 inline bool GetDryRun() const { return m_dryRun; }
223 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
224 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
225 inline ReEncryptRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
227 private:
228
229 Aws::Utils::ByteBuffer m_ciphertextBlob{};
230 bool m_ciphertextBlobHasBeenSet = false;
231
232 Aws::Map<Aws::String, Aws::String> m_sourceEncryptionContext;
233 bool m_sourceEncryptionContextHasBeenSet = false;
234
235 Aws::String m_sourceKeyId;
236 bool m_sourceKeyIdHasBeenSet = false;
237
238 Aws::String m_destinationKeyId;
239 bool m_destinationKeyIdHasBeenSet = false;
240
241 Aws::Map<Aws::String, Aws::String> m_destinationEncryptionContext;
242 bool m_destinationEncryptionContextHasBeenSet = false;
243
245 bool m_sourceEncryptionAlgorithmHasBeenSet = false;
246
247 EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm{EncryptionAlgorithmSpec::NOT_SET};
248 bool m_destinationEncryptionAlgorithmHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_grantTokens;
251 bool m_grantTokensHasBeenSet = false;
252
253 bool m_dryRun{false};
254 bool m_dryRunHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace KMS
259} // namespace Aws
void SetSourceKeyId(SourceKeyIdT &&value)
ReEncryptRequest & WithGrantTokens(GrantTokensT &&value)
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptRequest & AddGrantTokens(GrantTokensT &&value)
AWS_KMS_API ReEncryptRequest()=default
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptRequest & WithDestinationEncryptionContext(DestinationEncryptionContextT &&value)
virtual const char * GetServiceRequestName() const override
EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const
void SetSourceEncryptionContext(SourceEncryptionContextT &&value)
ReEncryptRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
const Aws::String & GetSourceKeyId() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ReEncryptRequest & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptRequest & AddSourceEncryptionContext(SourceEncryptionContextKeyT &&key, SourceEncryptionContextValueT &&value)
ReEncryptRequest & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
const Aws::String & GetDestinationKeyId() const
ReEncryptRequest & AddDestinationEncryptionContext(DestinationEncryptionContextKeyT &&key, DestinationEncryptionContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDestinationEncryptionContext() const
const Aws::Map< Aws::String, Aws::String > & GetSourceEncryptionContext() const
void SetCiphertextBlob(CiphertextBlobT &&value)
void SetDestinationEncryptionContext(DestinationEncryptionContextT &&value)
EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const
AWS_KMS_API Aws::String SerializePayload() const override
ReEncryptRequest & WithSourceEncryptionContext(SourceEncryptionContextT &&value)
void SetDestinationKeyId(DestinationKeyIdT &&value)
void SetGrantTokens(GrantTokensT &&value)
ReEncryptRequest & WithDestinationKeyId(DestinationKeyIdT &&value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
ReEncryptRequest & WithCiphertextBlob(CiphertextBlobT &&value)
ReEncryptRequest & WithSourceKeyId(SourceKeyIdT &&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