AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessage(const Aws::Utils::CryptoBuffer& value) { m_messageHasBeenSet = true; m_message = value; }
51 inline void SetMessage(Aws::Utils::CryptoBuffer&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 inline VerifyMacRequest& WithMessage(const Aws::Utils::CryptoBuffer& value) { SetMessage(value); return *this;}
53 inline VerifyMacRequest& WithMessage(Aws::Utils::CryptoBuffer&& value) { SetMessage(std::move(value)); return *this;}
55
57
62 inline const Aws::String& GetKeyId() const{ return m_keyId; }
63 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
64 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
65 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
66 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
67 inline VerifyMacRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
68 inline VerifyMacRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
69 inline VerifyMacRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
71
73
78 inline const MacAlgorithmSpec& GetMacAlgorithm() const{ return m_macAlgorithm; }
79 inline bool MacAlgorithmHasBeenSet() const { return m_macAlgorithmHasBeenSet; }
80 inline void SetMacAlgorithm(const MacAlgorithmSpec& value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = value; }
81 inline void SetMacAlgorithm(MacAlgorithmSpec&& value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = std::move(value); }
82 inline VerifyMacRequest& WithMacAlgorithm(const MacAlgorithmSpec& value) { SetMacAlgorithm(value); return *this;}
83 inline VerifyMacRequest& WithMacAlgorithm(MacAlgorithmSpec&& value) { SetMacAlgorithm(std::move(value)); return *this;}
85
87
92 inline const Aws::Utils::ByteBuffer& GetMac() const{ return m_mac; }
93 inline bool MacHasBeenSet() const { return m_macHasBeenSet; }
94 inline void SetMac(const Aws::Utils::ByteBuffer& value) { m_macHasBeenSet = true; m_mac = value; }
95 inline void SetMac(Aws::Utils::ByteBuffer&& value) { m_macHasBeenSet = true; m_mac = std::move(value); }
96 inline VerifyMacRequest& WithMac(const Aws::Utils::ByteBuffer& value) { SetMac(value); return *this;}
97 inline VerifyMacRequest& WithMac(Aws::Utils::ByteBuffer&& value) { SetMac(std::move(value)); return *this;}
99
101
110 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
111 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
112 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
113 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
114 inline VerifyMacRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
115 inline VerifyMacRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
116 inline VerifyMacRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
117 inline VerifyMacRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
118 inline VerifyMacRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
120
122
128 inline bool GetDryRun() const{ return m_dryRun; }
129 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
130 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
131 inline VerifyMacRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
133 private:
134
135 Aws::Utils::CryptoBuffer m_message;
136 bool m_messageHasBeenSet = false;
137
138 Aws::String m_keyId;
139 bool m_keyIdHasBeenSet = false;
140
141 MacAlgorithmSpec m_macAlgorithm;
142 bool m_macAlgorithmHasBeenSet = false;
143
145 bool m_macHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_grantTokens;
148 bool m_grantTokensHasBeenSet = false;
149
150 bool m_dryRun;
151 bool m_dryRunHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace KMS
156} // namespace Aws
const Aws::Vector< Aws::String > & GetGrantTokens() const
const Aws::String & GetKeyId() const
VerifyMacRequest & WithKeyId(const Aws::String &value)
AWS_KMS_API Aws::String SerializePayload() const override
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
VerifyMacRequest & WithMessage(Aws::Utils::CryptoBuffer &&value)
VerifyMacRequest & WithKeyId(const char *value)
const Aws::Utils::ByteBuffer & GetMac() const
VerifyMacRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
VerifyMacRequest & WithMac(const Aws::Utils::ByteBuffer &value)
void SetKeyId(const Aws::String &value)
VerifyMacRequest & AddGrantTokens(Aws::String &&value)
void SetMacAlgorithm(const MacAlgorithmSpec &value)
void SetMac(const Aws::Utils::ByteBuffer &value)
virtual const char * GetServiceRequestName() const override
VerifyMacRequest & WithMac(Aws::Utils::ByteBuffer &&value)
void SetKeyId(Aws::String &&value)
void SetMac(Aws::Utils::ByteBuffer &&value)
const MacAlgorithmSpec & GetMacAlgorithm() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetMacAlgorithm(MacAlgorithmSpec &&value)
void SetKeyId(const char *value)
const Aws::Utils::CryptoBuffer & GetMessage() const
VerifyMacRequest & AddGrantTokens(const Aws::String &value)
VerifyMacRequest & WithKeyId(Aws::String &&value)
VerifyMacRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
VerifyMacRequest & WithMacAlgorithm(const MacAlgorithmSpec &value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
VerifyMacRequest & WithMacAlgorithm(MacAlgorithmSpec &&value)
VerifyMacRequest & WithDryRun(bool value)
void SetMessage(Aws::Utils::CryptoBuffer &&value)
void SetMessage(const Aws::Utils::CryptoBuffer &value)
VerifyMacRequest & AddGrantTokens(const char *value)
VerifyMacRequest & WithMessage(const Aws::Utils::CryptoBuffer &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