AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GenerateMacResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/MacAlgorithmSpec.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API GenerateMacResult() = default;
30
32
38 inline const Aws::Utils::ByteBuffer& GetMac() const { return m_mac; }
39 template <typename MacT = Aws::Utils::ByteBuffer>
40 void SetMac(MacT&& value) {
41 m_macHasBeenSet = true;
42 m_mac = std::forward<MacT>(value);
43 }
44 template <typename MacT = Aws::Utils::ByteBuffer>
45 GenerateMacResult& WithMac(MacT&& value) {
46 SetMac(std::forward<MacT>(value));
47 return *this;
48 }
50
52
55 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
56 inline void SetMacAlgorithm(MacAlgorithmSpec value) {
57 m_macAlgorithmHasBeenSet = true;
58 m_macAlgorithm = value;
59 }
61 SetMacAlgorithm(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetKeyId() const { return m_keyId; }
71 template <typename KeyIdT = Aws::String>
72 void SetKeyId(KeyIdT&& value) {
73 m_keyIdHasBeenSet = true;
74 m_keyId = std::forward<KeyIdT>(value);
75 }
76 template <typename KeyIdT = Aws::String>
77 GenerateMacResult& WithKeyId(KeyIdT&& value) {
78 SetKeyId(std::forward<KeyIdT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 GenerateMacResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 private:
99
101
102 Aws::String m_keyId;
103
104 Aws::String m_requestId;
105 bool m_macHasBeenSet = false;
106 bool m_macAlgorithmHasBeenSet = false;
107 bool m_keyIdHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace KMS
113} // namespace Aws
AWS_KMS_API GenerateMacResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateMacResult & WithKeyId(KeyIdT &&value)
MacAlgorithmSpec GetMacAlgorithm() const
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
GenerateMacResult & WithMacAlgorithm(MacAlgorithmSpec value)
GenerateMacResult & WithMac(MacT &&value)
AWS_KMS_API GenerateMacResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API GenerateMacResult()=default
const Aws::Utils::ByteBuffer & GetMac() const
GenerateMacResult & WithRequestId(RequestIdT &&value)
void SetMacAlgorithm(MacAlgorithmSpec value)
const Aws::String & GetKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue