AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VerifyRequest.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/Array.h>
11#include <aws/kms/model/MessageType.h>
12#include <aws/kms/model/SigningAlgorithmSpec.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <utility>
15
16namespace Aws
17{
18namespace KMS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_KMS_API VerifyRequest() = default;
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 "Verify"; }
35
36 AWS_KMS_API Aws::String SerializePayload() const override;
37
39
40
42
58 inline const Aws::String& GetKeyId() const { return m_keyId; }
59 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
60 template<typename KeyIdT = Aws::String>
61 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
62 template<typename KeyIdT = Aws::String>
63 VerifyRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
65
67
75 inline const Aws::Utils::CryptoBuffer& GetMessage() const { return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 template<typename MessageT = Aws::Utils::CryptoBuffer>
78 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
79 template<typename MessageT = Aws::Utils::CryptoBuffer>
80 VerifyRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
82
84
118 inline MessageType GetMessageType() const { return m_messageType; }
119 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
120 inline void SetMessageType(MessageType value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
121 inline VerifyRequest& WithMessageType(MessageType value) { SetMessageType(value); return *this;}
123
125
128 inline const Aws::Utils::ByteBuffer& GetSignature() const { return m_signature; }
129 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
130 template<typename SignatureT = Aws::Utils::ByteBuffer>
131 void SetSignature(SignatureT&& value) { m_signatureHasBeenSet = true; m_signature = std::forward<SignatureT>(value); }
132 template<typename SignatureT = Aws::Utils::ByteBuffer>
133 VerifyRequest& WithSignature(SignatureT&& value) { SetSignature(std::forward<SignatureT>(value)); return *this;}
135
137
141 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
142 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
143 inline void SetSigningAlgorithm(SigningAlgorithmSpec value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = value; }
146
148
157 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
158 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
159 template<typename GrantTokensT = Aws::Vector<Aws::String>>
160 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
161 template<typename GrantTokensT = Aws::Vector<Aws::String>>
162 VerifyRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
163 template<typename GrantTokensT = Aws::String>
164 VerifyRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
166
168
174 inline bool GetDryRun() const { return m_dryRun; }
175 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
176 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
177 inline VerifyRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
179 private:
180
181 Aws::String m_keyId;
182 bool m_keyIdHasBeenSet = false;
183
184 Aws::Utils::CryptoBuffer m_message{};
185 bool m_messageHasBeenSet = false;
186
187 MessageType m_messageType{MessageType::NOT_SET};
188 bool m_messageTypeHasBeenSet = false;
189
190 Aws::Utils::ByteBuffer m_signature{};
191 bool m_signatureHasBeenSet = false;
192
194 bool m_signingAlgorithmHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_grantTokens;
197 bool m_grantTokensHasBeenSet = false;
198
199 bool m_dryRun{false};
200 bool m_dryRunHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace KMS
205} // 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