AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
VerifyResult.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/SigningAlgorithmSpec.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 VerifyResult() = default;
30
32
37 inline const Aws::String& GetKeyId() const { return m_keyId; }
38 template <typename KeyIdT = Aws::String>
39 void SetKeyId(KeyIdT&& value) {
40 m_keyIdHasBeenSet = true;
41 m_keyId = std::forward<KeyIdT>(value);
42 }
43 template <typename KeyIdT = Aws::String>
44 VerifyResult& WithKeyId(KeyIdT&& value) {
45 SetKeyId(std::forward<KeyIdT>(value));
46 return *this;
47 }
49
51
59 inline bool GetSignatureValid() const { return m_signatureValid; }
60 inline void SetSignatureValid(bool value) {
61 m_signatureValidHasBeenSet = true;
62 m_signatureValid = value;
63 }
64 inline VerifyResult& WithSignatureValid(bool value) {
65 SetSignatureValid(value);
66 return *this;
67 }
69
71
74 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
76 m_signingAlgorithmHasBeenSet = true;
77 m_signingAlgorithm = value;
78 }
81 return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
94 VerifyResult& WithRequestId(RequestIdT&& value) {
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
100
101 private:
102 Aws::String m_keyId;
103
104 bool m_signatureValid{false};
105
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_keyIdHasBeenSet = false;
111 bool m_signatureValidHasBeenSet = false;
112 bool m_signingAlgorithmHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace KMS
118} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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