AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 template<typename KeyIdT = Aws::String>
60 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
61 template<typename KeyIdT = Aws::String>
62 GenerateDataKeyWithoutPlaintextRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
64
66
80 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const { return m_encryptionContext; }
81 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
82 template<typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
83 void SetEncryptionContext(EncryptionContextT&& value) { m_encryptionContextHasBeenSet = true; m_encryptionContext = std::forward<EncryptionContextT>(value); }
84 template<typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
85 GenerateDataKeyWithoutPlaintextRequest& WithEncryptionContext(EncryptionContextT&& value) { SetEncryptionContext(std::forward<EncryptionContextT>(value)); return *this;}
86 template<typename EncryptionContextKeyT = Aws::String, typename EncryptionContextValueT = Aws::String>
87 GenerateDataKeyWithoutPlaintextRequest& AddEncryptionContext(EncryptionContextKeyT&& key, EncryptionContextValueT&& value) {
88 m_encryptionContextHasBeenSet = true; m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value)); return *this;
89 }
91
93
97 inline DataKeySpec GetKeySpec() const { return m_keySpec; }
98 inline bool KeySpecHasBeenSet() const { return m_keySpecHasBeenSet; }
99 inline void SetKeySpec(DataKeySpec value) { m_keySpecHasBeenSet = true; m_keySpec = value; }
102
104
110 inline int GetNumberOfBytes() const { return m_numberOfBytes; }
111 inline bool NumberOfBytesHasBeenSet() const { return m_numberOfBytesHasBeenSet; }
112 inline void SetNumberOfBytes(int value) { m_numberOfBytesHasBeenSet = true; m_numberOfBytes = value; }
115
117
126 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
127 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
128 template<typename GrantTokensT = Aws::Vector<Aws::String>>
129 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
130 template<typename GrantTokensT = Aws::Vector<Aws::String>>
131 GenerateDataKeyWithoutPlaintextRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
132 template<typename GrantTokensT = Aws::String>
133 GenerateDataKeyWithoutPlaintextRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
135
137
143 inline bool GetDryRun() const { return m_dryRun; }
144 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
145 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
146 inline GenerateDataKeyWithoutPlaintextRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
148 private:
149
150 Aws::String m_keyId;
151 bool m_keyIdHasBeenSet = false;
152
153 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
154 bool m_encryptionContextHasBeenSet = false;
155
157 bool m_keySpecHasBeenSet = false;
158
159 int m_numberOfBytes{0};
160 bool m_numberOfBytesHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_grantTokens;
163 bool m_grantTokensHasBeenSet = false;
164
165 bool m_dryRun{false};
166 bool m_dryRunHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace KMS
171} // namespace Aws
GenerateDataKeyWithoutPlaintextRequest & WithEncryptionContext(EncryptionContextT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
GenerateDataKeyWithoutPlaintextRequest & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
GenerateDataKeyWithoutPlaintextRequest & AddGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GenerateDataKeyWithoutPlaintextRequest & WithDryRun(bool value)
GenerateDataKeyWithoutPlaintextRequest & WithKeySpec(DataKeySpec value)
GenerateDataKeyWithoutPlaintextRequest & WithGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
GenerateDataKeyWithoutPlaintextRequest & WithKeyId(KeyIdT &&value)
GenerateDataKeyWithoutPlaintextRequest & WithNumberOfBytes(int 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