AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
VerifyRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kms/KMSRequest.h>
11#include <aws/kms/KMS_EXPORTS.h>
12#include <aws/kms/model/MessageType.h>
13#include <aws/kms/model/SigningAlgorithmSpec.h>
14
15#include <utility>
16
17namespace Aws {
18namespace KMS {
19namespace Model {
20
23class VerifyRequest : public KMSRequest {
24 public:
25 AWS_KMS_API VerifyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "Verify"; }
32
33 AWS_KMS_API Aws::String SerializePayload() const override;
34
36
38
54 inline const Aws::String& GetKeyId() const { return m_keyId; }
55 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
56 template <typename KeyIdT = Aws::String>
57 void SetKeyId(KeyIdT&& value) {
58 m_keyIdHasBeenSet = true;
59 m_keyId = std::forward<KeyIdT>(value);
60 }
61 template <typename KeyIdT = Aws::String>
62 VerifyRequest& WithKeyId(KeyIdT&& value) {
63 SetKeyId(std::forward<KeyIdT>(value));
64 return *this;
65 }
67
69
77 inline const Aws::Utils::CryptoBuffer& GetMessage() const { return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 template <typename MessageT = Aws::Utils::CryptoBuffer>
80 void SetMessage(MessageT&& value) {
81 m_messageHasBeenSet = true;
82 m_message = std::forward<MessageT>(value);
83 }
84 template <typename MessageT = Aws::Utils::CryptoBuffer>
85 VerifyRequest& WithMessage(MessageT&& value) {
86 SetMessage(std::forward<MessageT>(value));
87 return *this;
88 }
90
92
130 inline MessageType GetMessageType() const { return m_messageType; }
131 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
132 inline void SetMessageType(MessageType value) {
133 m_messageTypeHasBeenSet = true;
134 m_messageType = value;
135 }
137 SetMessageType(value);
138 return *this;
139 }
141
143
146 inline const Aws::Utils::ByteBuffer& GetSignature() const { return m_signature; }
147 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
148 template <typename SignatureT = Aws::Utils::ByteBuffer>
149 void SetSignature(SignatureT&& value) {
150 m_signatureHasBeenSet = true;
151 m_signature = std::forward<SignatureT>(value);
152 }
153 template <typename SignatureT = Aws::Utils::ByteBuffer>
154 VerifyRequest& WithSignature(SignatureT&& value) {
155 SetSignature(std::forward<SignatureT>(value));
156 return *this;
157 }
159
161
165 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
166 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
168 m_signingAlgorithmHasBeenSet = true;
169 m_signingAlgorithm = value;
170 }
172 SetSigningAlgorithm(value);
173 return *this;
174 }
176
178
187 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
188 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
189 template <typename GrantTokensT = Aws::Vector<Aws::String>>
190 void SetGrantTokens(GrantTokensT&& value) {
191 m_grantTokensHasBeenSet = true;
192 m_grantTokens = std::forward<GrantTokensT>(value);
193 }
194 template <typename GrantTokensT = Aws::Vector<Aws::String>>
195 VerifyRequest& WithGrantTokens(GrantTokensT&& value) {
196 SetGrantTokens(std::forward<GrantTokensT>(value));
197 return *this;
198 }
199 template <typename GrantTokensT = Aws::String>
200 VerifyRequest& AddGrantTokens(GrantTokensT&& value) {
201 m_grantTokensHasBeenSet = true;
202 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
203 return *this;
204 }
206
208
214 inline bool GetDryRun() const { return m_dryRun; }
215 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
216 inline void SetDryRun(bool value) {
217 m_dryRunHasBeenSet = true;
218 m_dryRun = value;
219 }
220 inline VerifyRequest& WithDryRun(bool value) {
221 SetDryRun(value);
222 return *this;
223 }
225 private:
226 Aws::String m_keyId;
227
228 Aws::Utils::CryptoBuffer m_message{};
229
230 MessageType m_messageType{MessageType::NOT_SET};
231
232 Aws::Utils::ByteBuffer m_signature{};
233
235
236 Aws::Vector<Aws::String> m_grantTokens;
237
238 bool m_dryRun{false};
239 bool m_keyIdHasBeenSet = false;
240 bool m_messageHasBeenSet = false;
241 bool m_messageTypeHasBeenSet = false;
242 bool m_signatureHasBeenSet = false;
243 bool m_signingAlgorithmHasBeenSet = false;
244 bool m_grantTokensHasBeenSet = false;
245 bool m_dryRunHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace KMS
250} // namespace Aws
void SetMessageType(MessageType value)
void SetGrantTokens(GrantTokensT &&value)
VerifyRequest & AddGrantTokens(GrantTokensT &&value)
VerifyRequest & WithSignature(SignatureT &&value)
const Aws::String & GetKeyId() const
VerifyRequest & WithSigningAlgorithm(SigningAlgorithmSpec value)
VerifyRequest & WithMessage(MessageT &&value)
virtual const char * GetServiceRequestName() const override
SigningAlgorithmSpec GetSigningAlgorithm() const
const Aws::Utils::ByteBuffer & GetSignature() const
const Aws::Vector< Aws::String > & GetGrantTokens() const
VerifyRequest & WithMessageType(MessageType value)
AWS_KMS_API Aws::String SerializePayload() const override
AWS_KMS_API VerifyRequest()=default
const Aws::Utils::CryptoBuffer & GetMessage() const
void SetSigningAlgorithm(SigningAlgorithmSpec value)
void SetMessage(MessageT &&value)
MessageType GetMessageType() const
VerifyRequest & WithDryRun(bool value)
void SetSignature(SignatureT &&value)
VerifyRequest & WithGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
VerifyRequest & WithKeyId(KeyIdT &&value)
void SetKeyId(KeyIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector