AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SignResult.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/SigningAlgorithmSpec.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 SignResult() = default;
31
33
38 inline const Aws::String& GetKeyId() const { return m_keyId; }
39 template <typename KeyIdT = Aws::String>
40 void SetKeyId(KeyIdT&& value) {
41 m_keyIdHasBeenSet = true;
42 m_keyId = std::forward<KeyIdT>(value);
43 }
44 template <typename KeyIdT = Aws::String>
45 SignResult& WithKeyId(KeyIdT&& value) {
46 SetKeyId(std::forward<KeyIdT>(value));
47 return *this;
48 }
50
52
66 inline const Aws::Utils::ByteBuffer& GetSignature() const { return m_signature; }
67 template <typename SignatureT = Aws::Utils::ByteBuffer>
68 void SetSignature(SignatureT&& value) {
69 m_signatureHasBeenSet = true;
70 m_signature = std::forward<SignatureT>(value);
71 }
72 template <typename SignatureT = Aws::Utils::ByteBuffer>
73 SignResult& WithSignature(SignatureT&& value) {
74 SetSignature(std::forward<SignatureT>(value));
75 return *this;
76 }
78
80
83 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
85 m_signingAlgorithmHasBeenSet = true;
86 m_signingAlgorithm = value;
87 }
90 return *this;
91 }
93
95
96 inline const Aws::String& GetRequestId() const { return m_requestId; }
97 template <typename RequestIdT = Aws::String>
98 void SetRequestId(RequestIdT&& value) {
99 m_requestIdHasBeenSet = true;
100 m_requestId = std::forward<RequestIdT>(value);
101 }
102 template <typename RequestIdT = Aws::String>
103 SignResult& WithRequestId(RequestIdT&& value) {
104 SetRequestId(std::forward<RequestIdT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 Aws::String m_keyId;
112
113 Aws::Utils::ByteBuffer m_signature{};
114
116
117 Aws::String m_requestId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_keyIdHasBeenSet = false;
120 bool m_signatureHasBeenSet = false;
121 bool m_signingAlgorithmHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace KMS
127} // namespace Aws
SignResult & WithSignature(SignatureT &&value)
Definition SignResult.h:73
Aws::Http::HttpResponseCode GetHttpResponseCode() const
Definition SignResult.h:108
const Aws::String & GetKeyId() const
Definition SignResult.h:38
AWS_KMS_API SignResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SignResult & WithSigningAlgorithm(SigningAlgorithmSpec value)
Definition SignResult.h:88
const Aws::String & GetRequestId() const
Definition SignResult.h:96
const Aws::Utils::ByteBuffer & GetSignature() const
Definition SignResult.h:66
void SetSigningAlgorithm(SigningAlgorithmSpec value)
Definition SignResult.h:84
SigningAlgorithmSpec GetSigningAlgorithm() const
Definition SignResult.h:83
void SetRequestId(RequestIdT &&value)
Definition SignResult.h:98
void SetSignature(SignatureT &&value)
Definition SignResult.h:68
void SetKeyId(KeyIdT &&value)
Definition SignResult.h:40
SignResult & WithKeyId(KeyIdT &&value)
Definition SignResult.h:45
AWS_KMS_API SignResult()=default
AWS_KMS_API SignResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SignResult & WithRequestId(RequestIdT &&value)
Definition SignResult.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue