AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
61 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
62 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
63 inline VerifyRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
64 inline VerifyRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
65 inline VerifyRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
67
69
77 inline const Aws::Utils::CryptoBuffer& GetMessage() const{ return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 inline void SetMessage(const Aws::Utils::CryptoBuffer& value) { m_messageHasBeenSet = true; m_message = value; }
80 inline void SetMessage(Aws::Utils::CryptoBuffer&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
81 inline VerifyRequest& WithMessage(const Aws::Utils::CryptoBuffer& value) { SetMessage(value); return *this;}
82 inline VerifyRequest& WithMessage(Aws::Utils::CryptoBuffer&& value) { SetMessage(std::move(value)); return *this;}
84
86
113 inline const MessageType& GetMessageType() const{ return m_messageType; }
114 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
115 inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
116 inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
117 inline VerifyRequest& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
118 inline VerifyRequest& WithMessageType(MessageType&& value) { SetMessageType(std::move(value)); return *this;}
120
122
125 inline const Aws::Utils::ByteBuffer& GetSignature() const{ return m_signature; }
126 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
127 inline void SetSignature(const Aws::Utils::ByteBuffer& value) { m_signatureHasBeenSet = true; m_signature = value; }
128 inline void SetSignature(Aws::Utils::ByteBuffer&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); }
129 inline VerifyRequest& WithSignature(const Aws::Utils::ByteBuffer& value) { SetSignature(value); return *this;}
130 inline VerifyRequest& WithSignature(Aws::Utils::ByteBuffer&& value) { SetSignature(std::move(value)); return *this;}
132
134
138 inline const SigningAlgorithmSpec& GetSigningAlgorithm() const{ return m_signingAlgorithm; }
139 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
140 inline void SetSigningAlgorithm(const SigningAlgorithmSpec& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = value; }
141 inline void SetSigningAlgorithm(SigningAlgorithmSpec&& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = std::move(value); }
142 inline VerifyRequest& WithSigningAlgorithm(const SigningAlgorithmSpec& value) { SetSigningAlgorithm(value); return *this;}
143 inline VerifyRequest& WithSigningAlgorithm(SigningAlgorithmSpec&& value) { SetSigningAlgorithm(std::move(value)); return *this;}
145
147
156 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
157 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
158 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
159 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
160 inline VerifyRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
161 inline VerifyRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
162 inline VerifyRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
163 inline VerifyRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
164 inline VerifyRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(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;
188 bool m_messageTypeHasBeenSet = false;
189
190 Aws::Utils::ByteBuffer m_signature;
191 bool m_signatureHasBeenSet = false;
192
193 SigningAlgorithmSpec m_signingAlgorithm;
194 bool m_signingAlgorithmHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_grantTokens;
197 bool m_grantTokensHasBeenSet = false;
198
199 bool m_dryRun;
200 bool m_dryRunHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace KMS
205} // namespace Aws
VerifyRequest & WithKeyId(const char *value)
VerifyRequest & WithMessageType(const MessageType &value)
const Aws::String & GetKeyId() const
VerifyRequest & WithMessageType(MessageType &&value)
void SetKeyId(const char *value)
virtual const char * GetServiceRequestName() const override
VerifyRequest & AddGrantTokens(const char *value)
void SetSignature(const Aws::Utils::ByteBuffer &value)
void SetKeyId(Aws::String &&value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
const Aws::Utils::ByteBuffer & GetSignature() const
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API Aws::String SerializePayload() const override
const MessageType & GetMessageType() const
void SetKeyId(const Aws::String &value)
VerifyRequest & WithSignature(const Aws::Utils::ByteBuffer &value)
void SetMessageType(const MessageType &value)
VerifyRequest & WithMessage(const Aws::Utils::CryptoBuffer &value)
VerifyRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
void SetSignature(Aws::Utils::ByteBuffer &&value)
const Aws::Utils::CryptoBuffer & GetMessage() const
void SetMessageType(MessageType &&value)
VerifyRequest & WithSigningAlgorithm(const SigningAlgorithmSpec &value)
VerifyRequest & WithKeyId(const Aws::String &value)
VerifyRequest & AddGrantTokens(Aws::String &&value)
void SetMessage(Aws::Utils::CryptoBuffer &&value)
void SetMessage(const Aws::Utils::CryptoBuffer &value)
VerifyRequest & WithDryRun(bool value)
const SigningAlgorithmSpec & GetSigningAlgorithm() const
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
VerifyRequest & WithSignature(Aws::Utils::ByteBuffer &&value)
VerifyRequest & AddGrantTokens(const Aws::String &value)
VerifyRequest & WithKeyId(Aws::String &&value)
VerifyRequest & WithMessage(Aws::Utils::CryptoBuffer &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
VerifyRequest & WithSigningAlgorithm(SigningAlgorithmSpec &&value)
void SetSigningAlgorithm(const SigningAlgorithmSpec &value)
VerifyRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
void SetSigningAlgorithm(SigningAlgorithmSpec &&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