AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
SignPayloadResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/signer/Signer_EXPORTS.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 signer {
25namespace Model {
27 public:
28 AWS_SIGNER_API SignPayloadResult() = default;
31
33
36 inline const Aws::String& GetJobId() const { return m_jobId; }
37 template <typename JobIdT = Aws::String>
38 void SetJobId(JobIdT&& value) {
39 m_jobIdHasBeenSet = true;
40 m_jobId = std::forward<JobIdT>(value);
41 }
42 template <typename JobIdT = Aws::String>
43 SignPayloadResult& WithJobId(JobIdT&& value) {
44 SetJobId(std::forward<JobIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetJobOwner() const { return m_jobOwner; }
54 template <typename JobOwnerT = Aws::String>
55 void SetJobOwner(JobOwnerT&& value) {
56 m_jobOwnerHasBeenSet = true;
57 m_jobOwner = std::forward<JobOwnerT>(value);
58 }
59 template <typename JobOwnerT = Aws::String>
60 SignPayloadResult& WithJobOwner(JobOwnerT&& value) {
61 SetJobOwner(std::forward<JobOwnerT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
71 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
72 void SetMetadata(MetadataT&& value) {
73 m_metadataHasBeenSet = true;
74 m_metadata = std::forward<MetadataT>(value);
75 }
76 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
77 SignPayloadResult& WithMetadata(MetadataT&& value) {
78 SetMetadata(std::forward<MetadataT>(value));
79 return *this;
80 }
81 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
82 SignPayloadResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
83 m_metadataHasBeenSet = true;
84 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::ByteBuffer& GetSignature() const { return m_signature; }
94 template <typename SignatureT = Aws::Utils::ByteBuffer>
95 void SetSignature(SignatureT&& value) {
96 m_signatureHasBeenSet = true;
97 m_signature = std::forward<SignatureT>(value);
98 }
99 template <typename SignatureT = Aws::Utils::ByteBuffer>
100 SignPayloadResult& WithSignature(SignatureT&& value) {
101 SetSignature(std::forward<SignatureT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 SignPayloadResult& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_jobId;
124
125 Aws::String m_jobOwner;
126
128
129 Aws::Utils::ByteBuffer m_signature{};
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_jobIdHasBeenSet = false;
134 bool m_jobOwnerHasBeenSet = false;
135 bool m_metadataHasBeenSet = false;
136 bool m_signatureHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace signer
142} // namespace Aws
AWS_SIGNER_API SignPayloadResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SignPayloadResult & WithJobOwner(JobOwnerT &&value)
SignPayloadResult & WithJobId(JobIdT &&value)
AWS_SIGNER_API SignPayloadResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
SignPayloadResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetJobId() const
SignPayloadResult & WithSignature(SignatureT &&value)
const Aws::String & GetJobOwner() const
const Aws::Utils::ByteBuffer & GetSignature() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SIGNER_API SignPayloadResult()=default
SignPayloadResult & WithMetadata(MetadataT &&value)
SignPayloadResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue