AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = 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 "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 template<typename MessageT = Aws::Utils::CryptoBuffer>
50 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
51 template<typename MessageT = Aws::Utils::CryptoBuffer>
52 GenerateMacRequest& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
54
56
63 inline const Aws::String& GetKeyId() const { return m_keyId; }
64 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
65 template<typename KeyIdT = Aws::String>
66 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
67 template<typename KeyIdT = Aws::String>
68 GenerateMacRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
70
72
79 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
80 inline bool MacAlgorithmHasBeenSet() const { return m_macAlgorithmHasBeenSet; }
81 inline void SetMacAlgorithm(MacAlgorithmSpec value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = value; }
84
86
95 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
96 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
97 template<typename GrantTokensT = Aws::Vector<Aws::String>>
98 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::forward<GrantTokensT>(value); }
99 template<typename GrantTokensT = Aws::Vector<Aws::String>>
100 GenerateMacRequest& WithGrantTokens(GrantTokensT&& value) { SetGrantTokens(std::forward<GrantTokensT>(value)); return *this;}
101 template<typename GrantTokensT = Aws::String>
102 GenerateMacRequest& AddGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.emplace_back(std::forward<GrantTokensT>(value)); return *this; }
104
106
112 inline bool GetDryRun() const { return m_dryRun; }
113 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
114 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
115 inline GenerateMacRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
117 private:
118
119 Aws::Utils::CryptoBuffer m_message{};
120 bool m_messageHasBeenSet = false;
121
122 Aws::String m_keyId;
123 bool m_keyIdHasBeenSet = false;
124
126 bool m_macAlgorithmHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_grantTokens;
129 bool m_grantTokensHasBeenSet = false;
130
131 bool m_dryRun{false};
132 bool m_dryRunHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace KMS
137} // namespace Aws
GenerateMacRequest & AddGrantTokens(GrantTokensT &&value)
GenerateMacRequest & WithDryRun(bool value)
const Aws::String & GetKeyId() const
const Aws::Utils::CryptoBuffer & GetMessage() const
void SetMacAlgorithm(MacAlgorithmSpec value)
MacAlgorithmSpec GetMacAlgorithm() const
GenerateMacRequest & WithKeyId(KeyIdT &&value)
GenerateMacRequest & WithMacAlgorithm(MacAlgorithmSpec 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 & WithMessage(MessageT &&value)
void SetGrantTokens(GrantTokensT &&value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API GenerateMacRequest()=default
GenerateMacRequest & WithGrantTokens(GrantTokensT &&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