AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SignResult.h
1
6#pragma once
7#include <aws/core/utils/Array.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 SignResult() = 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 SignResult& WithKeyId(KeyIdT&& value) {
45 SetKeyId(std::forward<KeyIdT>(value));
46 return *this;
47 }
49
51
65 inline const Aws::Utils::ByteBuffer& GetSignature() const { return m_signature; }
66 template <typename SignatureT = Aws::Utils::ByteBuffer>
67 void SetSignature(SignatureT&& value) {
68 m_signatureHasBeenSet = true;
69 m_signature = std::forward<SignatureT>(value);
70 }
71 template <typename SignatureT = Aws::Utils::ByteBuffer>
72 SignResult& WithSignature(SignatureT&& value) {
73 SetSignature(std::forward<SignatureT>(value));
74 return *this;
75 }
77
79
82 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
84 m_signingAlgorithmHasBeenSet = true;
85 m_signingAlgorithm = value;
86 }
89 return *this;
90 }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template <typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) {
98 m_requestIdHasBeenSet = true;
99 m_requestId = std::forward<RequestIdT>(value);
100 }
101 template <typename RequestIdT = Aws::String>
102 SignResult& WithRequestId(RequestIdT&& value) {
103 SetRequestId(std::forward<RequestIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_keyId;
109
110 Aws::Utils::ByteBuffer m_signature{};
111
113
114 Aws::String m_requestId;
115 bool m_keyIdHasBeenSet = false;
116 bool m_signatureHasBeenSet = false;
117 bool m_signingAlgorithmHasBeenSet = false;
118 bool m_requestIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace KMS
123} // namespace Aws
SignResult & WithSignature(SignatureT &&value)
Definition SignResult.h:72
const Aws::String & GetKeyId() const
Definition SignResult.h:37
AWS_KMS_API SignResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SignResult & WithSigningAlgorithm(SigningAlgorithmSpec value)
Definition SignResult.h:87
const Aws::String & GetRequestId() const
Definition SignResult.h:95
const Aws::Utils::ByteBuffer & GetSignature() const
Definition SignResult.h:65
void SetSigningAlgorithm(SigningAlgorithmSpec value)
Definition SignResult.h:83
SigningAlgorithmSpec GetSigningAlgorithm() const
Definition SignResult.h:82
void SetRequestId(RequestIdT &&value)
Definition SignResult.h:97
void SetSignature(SignatureT &&value)
Definition SignResult.h:67
void SetKeyId(KeyIdT &&value)
Definition SignResult.h:39
SignResult & WithKeyId(KeyIdT &&value)
Definition SignResult.h:44
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:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue