AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateDataKeyWithoutPlaintextRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/kms/model/DataKeySpec.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace KMS
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GenerateDataKeyWithoutPlaintext"; }
34
35 AWS_KMS_API Aws::String SerializePayload() const override;
36
38
39
41
57 inline const Aws::String& GetKeyId() const{ return m_keyId; }
58 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
59 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
60 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
61 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
62 inline GenerateDataKeyWithoutPlaintextRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
63 inline GenerateDataKeyWithoutPlaintextRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
64 inline GenerateDataKeyWithoutPlaintextRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
66
68
82 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const{ return m_encryptionContext; }
83 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
84 inline void SetEncryptionContext(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = value; }
85 inline void SetEncryptionContext(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = std::move(value); }
88 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(const Aws::String& key, const Aws::String& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, value); return *this; }
89 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(Aws::String&& key, const Aws::String& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), value); return *this; }
90 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(const Aws::String& key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, std::move(value)); return *this; }
91 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(Aws::String&& key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), std::move(value)); return *this; }
92 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(const char* key, Aws::String&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, std::move(value)); return *this; }
93 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(Aws::String&& key, const char* value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::move(key), value); return *this; }
94 inline GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(const char* key, const char* value) { m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(key, value); return *this; }
96
98
102 inline const DataKeySpec& GetKeySpec() const{ return m_keySpec; }
103 inline bool KeySpecHasBeenSet() const { return m_keySpecHasBeenSet; }
104 inline void SetKeySpec(const DataKeySpec& value) { m_keySpecHasBeenSet = true; m_keySpec = value; }
105 inline void SetKeySpec(DataKeySpec&& value) { m_keySpecHasBeenSet = true; m_keySpec = std::move(value); }
106 inline GenerateDataKeyWithoutPlaintextRequest& WithKeySpec(const DataKeySpec& value) { SetKeySpec(value); return *this;}
107 inline GenerateDataKeyWithoutPlaintextRequest& WithKeySpec(DataKeySpec&& value) { SetKeySpec(std::move(value)); return *this;}
109
111
117 inline int GetNumberOfBytes() const{ return m_numberOfBytes; }
118 inline bool NumberOfBytesHasBeenSet() const { return m_numberOfBytesHasBeenSet; }
119 inline void SetNumberOfBytes(int value) { m_numberOfBytesHasBeenSet = true; m_numberOfBytes = value; }
122
124
133 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
134 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
135 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
136 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
139 inline GenerateDataKeyWithoutPlaintextRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
140 inline GenerateDataKeyWithoutPlaintextRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
141 inline GenerateDataKeyWithoutPlaintextRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
143
145
151 inline bool GetDryRun() const{ return m_dryRun; }
152 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
153 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
154 inline GenerateDataKeyWithoutPlaintextRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
156 private:
157
158 Aws::String m_keyId;
159 bool m_keyIdHasBeenSet = false;
160
161 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
162 bool m_encryptionContextHasBeenSet = false;
163
164 DataKeySpec m_keySpec;
165 bool m_keySpecHasBeenSet = false;
166
167 int m_numberOfBytes;
168 bool m_numberOfBytesHasBeenSet = false;
169
170 Aws::Vector<Aws::String> m_grantTokens;
171 bool m_grantTokensHasBeenSet = false;
172
173 bool m_dryRun;
174 bool m_dryRunHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace KMS
179} // namespace Aws
GenerateDataKeyWithoutPlaintextRequest & WithEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetEncryptionContext(Aws::Map< Aws::String, Aws::String > &&value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(const char *key, Aws::String &&value)
GenerateDataKeyWithoutPlaintextRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
GenerateDataKeyWithoutPlaintextRequest & WithKeySpec(DataKeySpec &&value)
GenerateDataKeyWithoutPlaintextRequest & AddGrantTokens(Aws::String &&value)
GenerateDataKeyWithoutPlaintextRequest & WithKeySpec(const DataKeySpec &value)
GenerateDataKeyWithoutPlaintextRequest & WithKeyId(const Aws::String &value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(const char *key, const char *value)
GenerateDataKeyWithoutPlaintextRequest & AddGrantTokens(const char *value)
GenerateDataKeyWithoutPlaintextRequest & WithKeyId(const char *value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(const Aws::String &key, Aws::String &&value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(const Aws::String &key, const Aws::String &value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GenerateDataKeyWithoutPlaintextRequest & WithDryRun(bool value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(Aws::String &&key, Aws::String &&value)
GenerateDataKeyWithoutPlaintextRequest & AddGrantTokens(const Aws::String &value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(Aws::String &&key, const Aws::String &value)
AWS_KMS_API Aws::String SerializePayload() const override
GenerateDataKeyWithoutPlaintextRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(Aws::String &&key, const char *value)
void SetEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
GenerateDataKeyWithoutPlaintextRequest & WithNumberOfBytes(int value)
GenerateDataKeyWithoutPlaintextRequest & WithEncryptionContext(const Aws::Map< Aws::String, Aws::String > &value)
GenerateDataKeyWithoutPlaintextRequest & WithKeyId(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