AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VerifyMacResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kms/KMS_EXPORTS.h>
9#include <aws/kms/model/MacAlgorithmSpec.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace KMS {
23namespace Model {
25 public:
26 AWS_KMS_API VerifyMacResult() = default;
29
31
34 inline const Aws::String& GetKeyId() const { return m_keyId; }
35 template <typename KeyIdT = Aws::String>
36 void SetKeyId(KeyIdT&& value) {
37 m_keyIdHasBeenSet = true;
38 m_keyId = std::forward<KeyIdT>(value);
39 }
40 template <typename KeyIdT = Aws::String>
41 VerifyMacResult& WithKeyId(KeyIdT&& value) {
42 SetKeyId(std::forward<KeyIdT>(value));
43 return *this;
44 }
46
48
57 inline bool GetMacValid() const { return m_macValid; }
58 inline void SetMacValid(bool value) {
59 m_macValidHasBeenSet = true;
60 m_macValid = value;
61 }
62 inline VerifyMacResult& WithMacValid(bool value) {
63 SetMacValid(value);
64 return *this;
65 }
67
69
72 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
73 inline void SetMacAlgorithm(MacAlgorithmSpec value) {
74 m_macAlgorithmHasBeenSet = true;
75 m_macAlgorithm = value;
76 }
78 SetMacAlgorithm(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 VerifyMacResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_keyId;
99
100 bool m_macValid{false};
101
103
104 Aws::String m_requestId;
105 bool m_keyIdHasBeenSet = false;
106 bool m_macValidHasBeenSet = false;
107 bool m_macAlgorithmHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace KMS
113} // namespace Aws
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