AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
VerifyResult.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/SigningAlgorithmSpec.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 VerifyResult() = default;
29
31
36 inline const Aws::String& GetKeyId() const { return m_keyId; }
37 template <typename KeyIdT = Aws::String>
38 void SetKeyId(KeyIdT&& value) {
39 m_keyIdHasBeenSet = true;
40 m_keyId = std::forward<KeyIdT>(value);
41 }
42 template <typename KeyIdT = Aws::String>
43 VerifyResult& WithKeyId(KeyIdT&& value) {
44 SetKeyId(std::forward<KeyIdT>(value));
45 return *this;
46 }
48
50
58 inline bool GetSignatureValid() const { return m_signatureValid; }
59 inline void SetSignatureValid(bool value) {
60 m_signatureValidHasBeenSet = true;
61 m_signatureValid = value;
62 }
63 inline VerifyResult& WithSignatureValid(bool value) {
64 SetSignatureValid(value);
65 return *this;
66 }
68
70
73 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
75 m_signingAlgorithmHasBeenSet = true;
76 m_signingAlgorithm = value;
77 }
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 VerifyResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_keyId;
100
101 bool m_signatureValid{false};
102
104
105 Aws::String m_requestId;
106 bool m_keyIdHasBeenSet = false;
107 bool m_signatureValidHasBeenSet = false;
108 bool m_signingAlgorithmHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace KMS
114} // namespace Aws
AWS_KMS_API VerifyResult()=default
void SetKeyId(KeyIdT &&value)
VerifyResult & WithRequestId(RequestIdT &&value)
void SetSigningAlgorithm(SigningAlgorithmSpec value)
VerifyResult & WithKeyId(KeyIdT &&value)
VerifyResult & WithSigningAlgorithm(SigningAlgorithmSpec value)
const Aws::String & GetKeyId() const
VerifyResult & WithSignatureValid(bool value)
AWS_KMS_API VerifyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSignatureValid(bool value)
AWS_KMS_API VerifyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
SigningAlgorithmSpec GetSigningAlgorithm() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue