AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateDataKeyPairRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kms/model/DataKeyPairSpec.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kms/model/RecipientInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace KMS
19{
20namespace Model
21{
22
26 {
27 public:
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 "GenerateDataKeyPair"; }
35
36 AWS_KMS_API Aws::String SerializePayload() const override;
37
39
40
42
57 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const{ return m_encryptionContext; }
58 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
59 inline void SetEncryptionContext(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = value; }
60 inline void SetEncryptionContext(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = std::move(value); }
63 inline GenerateDataKeyPairRequest& AddEncryptionContext(const Aws::String& key, const Aws::String& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, value); return *this; }
64 inline GenerateDataKeyPairRequest& AddEncryptionContext(Aws::String&& key, const Aws::String& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), value); return *this; }
65 inline GenerateDataKeyPairRequest& AddEncryptionContext(const Aws::String& key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, std::move(value)); return *this; }
66 inline GenerateDataKeyPairRequest& AddEncryptionContext(Aws::String&& key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), std::move(value)); return *this; }
67 inline GenerateDataKeyPairRequest& AddEncryptionContext(const char* key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, std::move(value)); return *this; }
68 inline GenerateDataKeyPairRequest& AddEncryptionContext(Aws::String&& key, const char* value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), value); return *this; }
69 inline GenerateDataKeyPairRequest& AddEncryptionContext(const char* key, const char* value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, value); return *this; }
71
73
90 inline const Aws::String& GetKeyId() const{ return m_keyId; }
91 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
92 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
93 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
94 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
95 inline GenerateDataKeyPairRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
96 inline GenerateDataKeyPairRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
97 inline GenerateDataKeyPairRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
99
101
108 inline const DataKeyPairSpec& GetKeyPairSpec() const{ return m_keyPairSpec; }
109 inline bool KeyPairSpecHasBeenSet() const { return m_keyPairSpecHasBeenSet; }
110 inline void SetKeyPairSpec(const DataKeyPairSpec& value) { m_keyPairSpecHasBeenSet = true; m_keyPairSpec = value; }
111 inline void SetKeyPairSpec(DataKeyPairSpec&& value) { m_keyPairSpecHasBeenSet = true; m_keyPairSpec = std::move(value); }
112 inline GenerateDataKeyPairRequest& WithKeyPairSpec(const DataKeyPairSpec& value) { SetKeyPairSpec(value); return *this;}
113 inline GenerateDataKeyPairRequest& WithKeyPairSpec(DataKeyPairSpec&& value) { SetKeyPairSpec(std::move(value)); return *this;}
115
117
126 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
127 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
128 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
129 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
131 inline GenerateDataKeyPairRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
132 inline GenerateDataKeyPairRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
133 inline GenerateDataKeyPairRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
134 inline GenerateDataKeyPairRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
136
138
163 inline const RecipientInfo& GetRecipient() const{ return m_recipient; }
164 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
165 inline void SetRecipient(const RecipientInfo& value) { m_recipientHasBeenSet = true; m_recipient = value; }
166 inline void SetRecipient(RecipientInfo&& value) { m_recipientHasBeenSet = true; m_recipient = std::move(value); }
167 inline GenerateDataKeyPairRequest& WithRecipient(const RecipientInfo& value) { SetRecipient(value); return *this;}
168 inline GenerateDataKeyPairRequest& WithRecipient(RecipientInfo&& value) { SetRecipient(std::move(value)); return *this;}
170
172
178 inline bool GetDryRun() const{ return m_dryRun; }
179 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
180 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
181 inline GenerateDataKeyPairRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
183 private:
184
185 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
186 bool m_encryptionContextHasBeenSet = false;
187
188 Aws::String m_keyId;
189 bool m_keyIdHasBeenSet = false;
190
191 DataKeyPairSpec m_keyPairSpec;
192 bool m_keyPairSpecHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_grantTokens;
195 bool m_grantTokensHasBeenSet = false;
196
197 RecipientInfo m_recipient;
198 bool m_recipientHasBeenSet = false;
199
200 bool m_dryRun;
201 bool m_dryRunHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace KMS
206} // namespace Aws
GenerateDataKeyPairRequest & AddEncryptionContext(Aws::String &&key, const Aws::String &value)
GenerateDataKeyPairRequest & AddGrantTokens(const char *value)
GenerateDataKeyPairRequest & WithRecipient(const RecipientInfo &value)
GenerateDataKeyPairRequest & WithKeyPairSpec(const DataKeyPairSpec &value)
GenerateDataKeyPairRequest & WithEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
GenerateDataKeyPairRequest & WithDryRun(bool value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
GenerateDataKeyPairRequest & WithKeyPairSpec(DataKeyPairSpec &&value)
AWS_KMS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
void SetEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
GenerateDataKeyPairRequest & WithKeyId(Aws::String &&value)
GenerateDataKeyPairRequest & AddEncryptionContext(const char *key, Aws::String &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
GenerateDataKeyPairRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
GenerateDataKeyPairRequest & AddGrantTokens(Aws::String &&value)
void SetEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
GenerateDataKeyPairRequest & AddEncryptionContext(const char *key, const char *value)
GenerateDataKeyPairRequest & WithRecipient(RecipientInfo &&value)
GenerateDataKeyPairRequest & WithKeyId(const char *value)
GenerateDataKeyPairRequest & AddGrantTokens(const Aws::String &value)
GenerateDataKeyPairRequest & AddEncryptionContext(Aws::String &&key, const char *value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
GenerateDataKeyPairRequest & AddEncryptionContext(Aws::String &&key, Aws::String &&value)
GenerateDataKeyPairRequest & WithEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
GenerateDataKeyPairRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
GenerateDataKeyPairRequest & WithKeyId(const Aws::String &value)
GenerateDataKeyPairRequest & AddEncryptionContext(const Aws::String &key, const Aws::String &value)
GenerateDataKeyPairRequest & AddEncryptionContext(const Aws::String &key, 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