AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateMacRequest.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 GenerateMacRequest();
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 "GenerateMac"; }
34
35 AWS_KMS_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::Utils::CryptoBuffer& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::Utils::CryptoBuffer& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::Utils::CryptoBuffer&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline GenerateMacRequest& WithMessage(const Aws::Utils::CryptoBuffer& value) { SetMessage(value); return *this;}
52 inline GenerateMacRequest& WithMessage(Aws::Utils::CryptoBuffer&& value) { SetMessage(std::move(value)); return *this;}
54
56
63 inline const Aws::String& GetKeyId() const{ return m_keyId; }
64 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
65 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
66 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
67 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
68 inline GenerateMacRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
69 inline GenerateMacRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
70 inline GenerateMacRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
72
74
81 inline const MacAlgorithmSpec& GetMacAlgorithm() const{ return m_macAlgorithm; }
82 inline bool MacAlgorithmHasBeenSet() const { return m_macAlgorithmHasBeenSet; }
83 inline void SetMacAlgorithm(const MacAlgorithmSpec& value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = value; }
84 inline void SetMacAlgorithm(MacAlgorithmSpec&& value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = std::move(value); }
85 inline GenerateMacRequest& WithMacAlgorithm(const MacAlgorithmSpec& value) { SetMacAlgorithm(value); return *this;}
86 inline GenerateMacRequest& WithMacAlgorithm(MacAlgorithmSpec&& value) { SetMacAlgorithm(std::move(value)); return *this;}
88
90
99 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
100 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
101 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
102 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
103 inline GenerateMacRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
104 inline GenerateMacRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
105 inline GenerateMacRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
106 inline GenerateMacRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
107 inline GenerateMacRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
109
111
117 inline bool GetDryRun() const{ return m_dryRun; }
118 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
119 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
120 inline GenerateMacRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
122 private:
123
124 Aws::Utils::CryptoBuffer m_message;
125 bool m_messageHasBeenSet = false;
126
127 Aws::String m_keyId;
128 bool m_keyIdHasBeenSet = false;
129
130 MacAlgorithmSpec m_macAlgorithm;
131 bool m_macAlgorithmHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_grantTokens;
134 bool m_grantTokensHasBeenSet = false;
135
136 bool m_dryRun;
137 bool m_dryRunHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace KMS
142} // namespace Aws
void SetKeyId(const Aws::String &value)
GenerateMacRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
void SetMacAlgorithm(const MacAlgorithmSpec &value)
GenerateMacRequest & WithDryRun(bool value)
const Aws::String & GetKeyId() const
const Aws::Utils::CryptoBuffer & GetMessage() const
GenerateMacRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
GenerateMacRequest & WithMessage(Aws::Utils::CryptoBuffer &&value)
void SetMessage(Aws::Utils::CryptoBuffer &&value)
GenerateMacRequest & AddGrantTokens(Aws::String &&value)
GenerateMacRequest & WithKeyId(const char *value)
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GenerateMacRequest & WithMacAlgorithm(const MacAlgorithmSpec &value)
GenerateMacRequest & AddGrantTokens(const Aws::String &value)
GenerateMacRequest & WithKeyId(Aws::String &&value)
const MacAlgorithmSpec & GetMacAlgorithm() const
void SetMacAlgorithm(MacAlgorithmSpec &&value)
GenerateMacRequest & AddGrantTokens(const char *value)
GenerateMacRequest & WithMessage(const Aws::Utils::CryptoBuffer &value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
GenerateMacRequest & WithKeyId(const Aws::String &value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
void SetMessage(const Aws::Utils::CryptoBuffer &value)
GenerateMacRequest & WithMacAlgorithm(MacAlgorithmSpec &&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