AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GenerateMacResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/MacAlgorithmSpec.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS {
25namespace Model {
27 public:
28 AWS_KMS_API GenerateMacResult() = default;
31
33
39 inline const Aws::Utils::ByteBuffer& GetMac() const { return m_mac; }
40 template <typename MacT = Aws::Utils::ByteBuffer>
41 void SetMac(MacT&& value) {
42 m_macHasBeenSet = true;
43 m_mac = std::forward<MacT>(value);
44 }
45 template <typename MacT = Aws::Utils::ByteBuffer>
46 GenerateMacResult& WithMac(MacT&& value) {
47 SetMac(std::forward<MacT>(value));
48 return *this;
49 }
51
53
56 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
57 inline void SetMacAlgorithm(MacAlgorithmSpec value) {
58 m_macAlgorithmHasBeenSet = true;
59 m_macAlgorithm = value;
60 }
62 SetMacAlgorithm(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetKeyId() const { return m_keyId; }
72 template <typename KeyIdT = Aws::String>
73 void SetKeyId(KeyIdT&& value) {
74 m_keyIdHasBeenSet = true;
75 m_keyId = std::forward<KeyIdT>(value);
76 }
77 template <typename KeyIdT = Aws::String>
78 GenerateMacResult& WithKeyId(KeyIdT&& value) {
79 SetKeyId(std::forward<KeyIdT>(value));
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 GenerateMacResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
102
104
105 Aws::String m_keyId;
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_macHasBeenSet = false;
110 bool m_macAlgorithmHasBeenSet = false;
111 bool m_keyIdHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace KMS
117} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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