AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
VerifyMacRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/kms/model/MacAlgorithmSpec.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:
27 AWS_KMS_API VerifyMacRequest() = default;
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 "VerifyMac"; }
34
35 AWS_KMS_API Aws::String SerializePayload() const override;
36
38
39
41
48 inline const Aws::Utils::CryptoBuffer& GetMessage() const { return m_message; }
49 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 template<typename MessageT = Aws::Utils::CryptoBuffer>
51 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
52 template<typename MessageT = Aws::Utils::CryptoBuffer>
53 VerifyMacRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
55
57
62 inline const Aws::String& GetKeyId() const { return m_keyId; }
63 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
64 template<typename KeyIdT = Aws::String>
65 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
66 template<typename KeyIdT = Aws::String>
67 VerifyMacRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
69
71
76 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
77 inline bool MacAlgorithmHasBeenSet() const { return m_macAlgorithmHasBeenSet; }
78 inline void SetMacAlgorithm(MacAlgorithmSpec value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = value; }
79 inline VerifyMacRequest& WithMacAlgorithm(MacAlgorithmSpec value) { SetMacAlgorithm(value); return *this;}
81
83
88 inline const Aws::Utils::ByteBuffer& GetMac() const { return m_mac; }
89 inline bool MacHasBeenSet() const { return m_macHasBeenSet; }
90 template<typename MacT = Aws::Utils::ByteBuffer>
91 void SetMac(MacT&& value) { m_macHasBeenSet = true; m_mac = std::forward<MacT>(value); }
92 template<typename MacT = Aws::Utils::ByteBuffer>
93 VerifyMacRequest& WithMac(MacT&& value) { SetMac(std::forward<MacT>(value)); return *this;}
95
97
106 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
107 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
108 template<typename GrantTokensT = Aws::Vector<Aws::String>>
109 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
110 template<typename GrantTokensT = Aws::Vector<Aws::String>>
111 VerifyMacRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
112 template<typename GrantTokensT = Aws::String>
113 VerifyMacRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
115
117
123 inline bool GetDryRun() const { return m_dryRun; }
124 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
125 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
126 inline VerifyMacRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
128 private:
129
130 Aws::Utils::CryptoBuffer m_message{};
131 bool m_messageHasBeenSet = false;
132
133 Aws::String m_keyId;
134 bool m_keyIdHasBeenSet = false;
135
137 bool m_macAlgorithmHasBeenSet = false;
138
140 bool m_macHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_grantTokens;
143 bool m_grantTokensHasBeenSet = false;
144
145 bool m_dryRun{false};
146 bool m_dryRunHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace KMS
151} // 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