AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DecryptRequest.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/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/kms/model/EncryptionAlgorithmSpec.h>
14#include <aws/kms/model/RecipientInfo.h>
15#include <utility>
16
17namespace Aws
18{
19namespace KMS
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_KMS_API DecryptRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "Decrypt"; }
36
37 AWS_KMS_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; }
47 inline bool CiphertextBlobHasBeenSet() const { return m_ciphertextBlobHasBeenSet; }
48 inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = value; }
49 inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = std::move(value); }
50 inline DecryptRequest& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
51 inline DecryptRequest& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;}
53
55
71 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const{ return m_encryptionContext; }
72 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
73 inline void SetEncryptionContext(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = value; }
74 inline void SetEncryptionContext(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = std::move(value); }
77 inline DecryptRequest& AddEncryptionContext(const Aws::String& key, const Aws::String& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, value); return *this; }
78 inline DecryptRequest& AddEncryptionContext(Aws::String&& key, const Aws::String& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), value); return *this; }
79 inline DecryptRequest& AddEncryptionContext(const Aws::String& key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, std::move(value)); return *this; }
80 inline DecryptRequest& AddEncryptionContext(Aws::String&& key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), std::move(value)); return *this; }
81 inline DecryptRequest& AddEncryptionContext(const char* key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, std::move(value)); return *this; }
82 inline DecryptRequest& AddEncryptionContext(Aws::String&& key, const char* value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), value); return *this; }
83 inline DecryptRequest& AddEncryptionContext(const char* key, const char* value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, value); return *this; }
85
87
96 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
97 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
98 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
99 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
100 inline DecryptRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
101 inline DecryptRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
102 inline DecryptRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
103 inline DecryptRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
104 inline DecryptRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
106
108
129 inline const Aws::String& GetKeyId() const{ return m_keyId; }
130 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
131 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
132 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
133 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
134 inline DecryptRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
135 inline DecryptRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
136 inline DecryptRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
138
140
149 inline const EncryptionAlgorithmSpec& GetEncryptionAlgorithm() const{ return m_encryptionAlgorithm; }
150 inline bool EncryptionAlgorithmHasBeenSet() const { return m_encryptionAlgorithmHasBeenSet; }
151 inline void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_encryptionAlgorithmHasBeenSet = true; m_encryptionAlgorithm = value; }
152 inline void SetEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_encryptionAlgorithmHasBeenSet = true; m_encryptionAlgorithm = std::move(value); }
156
158
179 inline const RecipientInfo& GetRecipient() const{ return m_recipient; }
180 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
181 inline void SetRecipient(const RecipientInfo& value) { m_recipientHasBeenSet = true; m_recipient = value; }
182 inline void SetRecipient(RecipientInfo&& value) { m_recipientHasBeenSet = true; m_recipient = std::move(value); }
183 inline DecryptRequest& WithRecipient(const RecipientInfo& value) { SetRecipient(value); return *this;}
184 inline DecryptRequest& WithRecipient(RecipientInfo&& value) { SetRecipient(std::move(value)); return *this;}
186
188
194 inline bool GetDryRun() const{ return m_dryRun; }
195 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
196 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
197 inline DecryptRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
199 private:
200
201 Aws::Utils::ByteBuffer m_ciphertextBlob;
202 bool m_ciphertextBlobHasBeenSet = false;
203
204 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
205 bool m_encryptionContextHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_grantTokens;
208 bool m_grantTokensHasBeenSet = false;
209
210 Aws::String m_keyId;
211 bool m_keyIdHasBeenSet = false;
212
213 EncryptionAlgorithmSpec m_encryptionAlgorithm;
214 bool m_encryptionAlgorithmHasBeenSet = false;
215
216 RecipientInfo m_recipient;
217 bool m_recipientHasBeenSet = false;
218
219 bool m_dryRun;
220 bool m_dryRunHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace KMS
225} // namespace Aws
DecryptRequest & AddEncryptionContext(const char *key, Aws::String &&value)
DecryptRequest & AddEncryptionContext(const Aws::String &key, const Aws::String &value)
void SetEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
DecryptRequest & WithDryRun(bool value)
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
const EncryptionAlgorithmSpec & GetEncryptionAlgorithm() const
DecryptRequest & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetKeyId(const char *value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
DecryptRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
DecryptRequest & AddGrantTokens(const Aws::String &value)
DecryptRequest & WithRecipient(const RecipientInfo &value)
void SetKeyId(const Aws::String &value)
DecryptRequest & AddEncryptionContext(Aws::String &&key, const Aws::String &value)
DecryptRequest & WithEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
DecryptRequest & WithEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetRecipient(RecipientInfo &&value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
DecryptRequest & AddEncryptionContext(const Aws::String &key, Aws::String &&value)
DecryptRequest & WithKeyId(const char *value)
DecryptRequest & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
DecryptRequest & AddEncryptionContext(Aws::String &&key, const char *value)
void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
DecryptRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DecryptRequest & WithRecipient(RecipientInfo &&value)
DecryptRequest & AddEncryptionContext(const char *key, const char *value)
void SetRecipient(const RecipientInfo &value)
const Aws::String & GetKeyId() const
void SetKeyId(Aws::String &&value)
DecryptRequest & WithEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
DecryptRequest & AddGrantTokens(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
AWS_KMS_API Aws::String SerializePayload() const override
DecryptRequest & WithKeyId(Aws::String &&value)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
DecryptRequest & AddEncryptionContext(Aws::String &&key, Aws::String &&value)
DecryptRequest & AddGrantTokens(Aws::String &&value)
DecryptRequest & WithEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
const RecipientInfo & GetRecipient() const
const Aws::Vector< Aws::String > & GetGrantTokens() const
virtual const char * GetServiceRequestName() const override
DecryptRequest & WithKeyId(const 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