AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
VerifyMacResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 VerifyMacResult() = default;
30
32
35 inline const Aws::String& GetKeyId() const { return m_keyId; }
36 template <typename KeyIdT = Aws::String>
37 void SetKeyId(KeyIdT&& value) {
38 m_keyIdHasBeenSet = true;
39 m_keyId = std::forward<KeyIdT>(value);
40 }
41 template <typename KeyIdT = Aws::String>
42 VerifyMacResult& WithKeyId(KeyIdT&& value) {
43 SetKeyId(std::forward<KeyIdT>(value));
44 return *this;
45 }
47
49
58 inline bool GetMacValid() const { return m_macValid; }
59 inline void SetMacValid(bool value) {
60 m_macValidHasBeenSet = true;
61 m_macValid = value;
62 }
63 inline VerifyMacResult& WithMacValid(bool value) {
64 SetMacValid(value);
65 return *this;
66 }
68
70
73 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
74 inline void SetMacAlgorithm(MacAlgorithmSpec value) {
75 m_macAlgorithmHasBeenSet = true;
76 m_macAlgorithm = value;
77 }
79 SetMacAlgorithm(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 VerifyMacResult& 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:
101 Aws::String m_keyId;
102
103 bool m_macValid{false};
104
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_keyIdHasBeenSet = false;
110 bool m_macValidHasBeenSet = false;
111 bool m_macAlgorithmHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace KMS
117} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_KMS_API VerifyMacResult()=default
void SetRequestId(RequestIdT &&value)
MacAlgorithmSpec GetMacAlgorithm() const
AWS_KMS_API VerifyMacResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
VerifyMacResult & WithKeyId(KeyIdT &&value)
const Aws::String & GetKeyId() const
VerifyMacResult & WithMacValid(bool value)
VerifyMacResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
VerifyMacResult & WithMacAlgorithm(MacAlgorithmSpec value)
AWS_KMS_API VerifyMacResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMacAlgorithm(MacAlgorithmSpec value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue