AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VerifyMacRequest.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/MacAlgorithmSpec.h>
13
14#include <utility>
15
16namespace Aws {
17namespace KMS {
18namespace Model {
19
23 public:
24 AWS_KMS_API VerifyMacRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "VerifyMac"; }
31
32 AWS_KMS_API Aws::String SerializePayload() const override;
33
35
37
44 inline const Aws::Utils::CryptoBuffer& GetMessage() const { return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 template <typename MessageT = Aws::Utils::CryptoBuffer>
47 void SetMessage(MessageT&& value) {
48 m_messageHasBeenSet = true;
49 m_message = std::forward<MessageT>(value);
50 }
51 template <typename MessageT = Aws::Utils::CryptoBuffer>
52 VerifyMacRequest& WithMessage(MessageT&& value) {
53 SetMessage(std::forward<MessageT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetKeyId() const { return m_keyId; }
65 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
66 template <typename KeyIdT = Aws::String>
67 void SetKeyId(KeyIdT&& value) {
68 m_keyIdHasBeenSet = true;
69 m_keyId = std::forward<KeyIdT>(value);
70 }
71 template <typename KeyIdT = Aws::String>
72 VerifyMacRequest& WithKeyId(KeyIdT&& value) {
73 SetKeyId(std::forward<KeyIdT>(value));
74 return *this;
75 }
77
79
84 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
85 inline bool MacAlgorithmHasBeenSet() const { return m_macAlgorithmHasBeenSet; }
86 inline void SetMacAlgorithm(MacAlgorithmSpec value) {
87 m_macAlgorithmHasBeenSet = true;
88 m_macAlgorithm = value;
89 }
91 SetMacAlgorithm(value);
92 return *this;
93 }
95
97
102 inline const Aws::Utils::ByteBuffer& GetMac() const { return m_mac; }
103 inline bool MacHasBeenSet() const { return m_macHasBeenSet; }
104 template <typename MacT = Aws::Utils::ByteBuffer>
105 void SetMac(MacT&& value) {
106 m_macHasBeenSet = true;
107 m_mac = std::forward<MacT>(value);
108 }
109 template <typename MacT = Aws::Utils::ByteBuffer>
110 VerifyMacRequest& WithMac(MacT&& value) {
111 SetMac(std::forward<MacT>(value));
112 return *this;
113 }
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) {
130 m_grantTokensHasBeenSet = true;
131 m_grantTokens = std::forward<GrantTokensT>(value);
132 }
133 template <typename GrantTokensT = Aws::Vector<Aws::String>>
134 VerifyMacRequest& WithGrantTokens(GrantTokensT&& value) {
135 SetGrantTokens(std::forward<GrantTokensT>(value));
136 return *this;
137 }
138 template <typename GrantTokensT = Aws::String>
139 VerifyMacRequest& AddGrantTokens(GrantTokensT&& value) {
140 m_grantTokensHasBeenSet = true;
141 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
142 return *this;
143 }
145
147
153 inline bool GetDryRun() const { return m_dryRun; }
154 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
155 inline void SetDryRun(bool value) {
156 m_dryRunHasBeenSet = true;
157 m_dryRun = value;
158 }
159 inline VerifyMacRequest& WithDryRun(bool value) {
160 SetDryRun(value);
161 return *this;
162 }
164 private:
165 Aws::Utils::CryptoBuffer m_message{};
166
167 Aws::String m_keyId;
168
170
172
173 Aws::Vector<Aws::String> m_grantTokens;
174
175 bool m_dryRun{false};
176 bool m_messageHasBeenSet = false;
177 bool m_keyIdHasBeenSet = false;
178 bool m_macAlgorithmHasBeenSet = false;
179 bool m_macHasBeenSet = false;
180 bool m_grantTokensHasBeenSet = false;
181 bool m_dryRunHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace KMS
186} // namespace Aws
const Aws::Vector< Aws::String > & GetGrantTokens() const
const Aws::String & GetKeyId() const
AWS_KMS_API Aws::String SerializePayload() const override
VerifyMacRequest & WithMacAlgorithm(MacAlgorithmSpec value)
const Aws::Utils::ByteBuffer & GetMac() const
VerifyMacRequest & WithKeyId(KeyIdT &&value)
AWS_KMS_API VerifyMacRequest()=default
void SetGrantTokens(GrantTokensT &&value)
MacAlgorithmSpec GetMacAlgorithm() const
virtual const char * GetServiceRequestName() const override
void SetMessage(MessageT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
VerifyMacRequest & AddGrantTokens(GrantTokensT &&value)
const Aws::Utils::CryptoBuffer & GetMessage() const
VerifyMacRequest & WithGrantTokens(GrantTokensT &&value)
VerifyMacRequest & WithMac(MacT &&value)
void SetMacAlgorithm(MacAlgorithmSpec value)
VerifyMacRequest & WithMessage(MessageT &&value)
VerifyMacRequest & WithDryRun(bool 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