AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SignResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/kms/model/SigningAlgorithmSpec.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KMS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KMS_API SignResult() = default;
35
36
38
43 inline const Aws::String& GetKeyId() const { return m_keyId; }
44 template<typename KeyIdT = Aws::String>
45 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
46 template<typename KeyIdT = Aws::String>
47 SignResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
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) { m_signatureHasBeenSet = true; m_signature = std::forward<SignatureT>(value); }
68 template<typename SignatureT = Aws::Utils::ByteBuffer>
69 SignResult& WithSignature(SignatureT&& value) { SetSignature(std::forward<SignatureT>(value)); return *this;}
71
73
76 inline SigningAlgorithmSpec GetSigningAlgorithm() const { return m_signingAlgorithm; }
77 inline void SetSigningAlgorithm(SigningAlgorithmSpec value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = value; }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template<typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
86 template<typename RequestIdT = Aws::String>
87 SignResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
89 private:
90
91 Aws::String m_keyId;
92 bool m_keyIdHasBeenSet = false;
93
94 Aws::Utils::ByteBuffer m_signature{};
95 bool m_signatureHasBeenSet = false;
96
98 bool m_signingAlgorithmHasBeenSet = false;
99
100 Aws::String m_requestId;
101 bool m_requestIdHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace KMS
106} // namespace Aws
SignResult & WithSignature(SignatureT &&value)
Definition SignResult.h:69
const Aws::String & GetKeyId() const
Definition SignResult.h:43
AWS_KMS_API SignResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SignResult & WithSigningAlgorithm(SigningAlgorithmSpec value)
Definition SignResult.h:78
const Aws::String & GetRequestId() const
Definition SignResult.h:83
const Aws::Utils::ByteBuffer & GetSignature() const
Definition SignResult.h:65
void SetSigningAlgorithm(SigningAlgorithmSpec value)
Definition SignResult.h:77
SigningAlgorithmSpec GetSigningAlgorithm() const
Definition SignResult.h:76
void SetRequestId(RequestIdT &&value)
Definition SignResult.h:85
void SetSignature(SignatureT &&value)
Definition SignResult.h:67
void SetKeyId(KeyIdT &&value)
Definition SignResult.h:45
SignResult & WithKeyId(KeyIdT &&value)
Definition SignResult.h:47
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:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue