AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dataexchange/DataExchange_EXPORTS.h>
11#include <aws/dataexchange/model/JobError.h>
12#include <aws/dataexchange/model/ResponseDetails.h>
13#include <aws/dataexchange/model/State.h>
14#include <aws/dataexchange/model/Type.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataExchange {
28namespace Model {
30 public:
31 AWS_DATAEXCHANGE_API GetJobResult() = default;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
46 GetJobResult& WithArn(ArnT&& value) {
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
57 template <typename CreatedAtT = Aws::Utils::DateTime>
58 void SetCreatedAt(CreatedAtT&& value) {
59 m_createdAtHasBeenSet = true;
60 m_createdAt = std::forward<CreatedAtT>(value);
61 }
62 template <typename CreatedAtT = Aws::Utils::DateTime>
63 GetJobResult& WithCreatedAt(CreatedAtT&& value) {
64 SetCreatedAt(std::forward<CreatedAtT>(value));
65 return *this;
66 }
68
70
73 inline const ResponseDetails& GetDetails() const { return m_details; }
74 template <typename DetailsT = ResponseDetails>
75 void SetDetails(DetailsT&& value) {
76 m_detailsHasBeenSet = true;
77 m_details = std::forward<DetailsT>(value);
78 }
79 template <typename DetailsT = ResponseDetails>
80 GetJobResult& WithDetails(DetailsT&& value) {
81 SetDetails(std::forward<DetailsT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<JobError>& GetErrors() const { return m_errors; }
91 template <typename ErrorsT = Aws::Vector<JobError>>
92 void SetErrors(ErrorsT&& value) {
93 m_errorsHasBeenSet = true;
94 m_errors = std::forward<ErrorsT>(value);
95 }
96 template <typename ErrorsT = Aws::Vector<JobError>>
97 GetJobResult& WithErrors(ErrorsT&& value) {
98 SetErrors(std::forward<ErrorsT>(value));
99 return *this;
100 }
101 template <typename ErrorsT = JobError>
102 GetJobResult& AddErrors(ErrorsT&& value) {
103 m_errorsHasBeenSet = true;
104 m_errors.emplace_back(std::forward<ErrorsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetId() const { return m_id; }
114 template <typename IdT = Aws::String>
115 void SetId(IdT&& value) {
116 m_idHasBeenSet = true;
117 m_id = std::forward<IdT>(value);
118 }
119 template <typename IdT = Aws::String>
120 GetJobResult& WithId(IdT&& value) {
121 SetId(std::forward<IdT>(value));
122 return *this;
123 }
125
127
130 inline State GetState() const { return m_state; }
131 inline void SetState(State value) {
132 m_stateHasBeenSet = true;
133 m_state = value;
134 }
135 inline GetJobResult& WithState(State value) {
136 SetState(value);
137 return *this;
138 }
140
142
145 inline Type GetType() const { return m_type; }
146 inline void SetType(Type value) {
147 m_typeHasBeenSet = true;
148 m_type = value;
149 }
150 inline GetJobResult& WithType(Type value) {
151 SetType(value);
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 void SetUpdatedAt(UpdatedAtT&& value) {
163 m_updatedAtHasBeenSet = true;
164 m_updatedAt = std::forward<UpdatedAtT>(value);
165 }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
167 GetJobResult& WithUpdatedAt(UpdatedAtT&& value) {
168 SetUpdatedAt(std::forward<UpdatedAtT>(value));
169 return *this;
170 }
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template <typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) {
178 m_requestIdHasBeenSet = true;
179 m_requestId = std::forward<RequestIdT>(value);
180 }
181 template <typename RequestIdT = Aws::String>
182 GetJobResult& WithRequestId(RequestIdT&& value) {
183 SetRequestId(std::forward<RequestIdT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_arn;
189
190 Aws::Utils::DateTime m_createdAt{};
191
192 ResponseDetails m_details;
193
194 Aws::Vector<JobError> m_errors;
195
196 Aws::String m_id;
197
198 State m_state{State::NOT_SET};
199
200 Type m_type{Type::NOT_SET};
201
202 Aws::Utils::DateTime m_updatedAt{};
203
204 Aws::String m_requestId;
205 bool m_arnHasBeenSet = false;
206 bool m_createdAtHasBeenSet = false;
207 bool m_detailsHasBeenSet = false;
208 bool m_errorsHasBeenSet = false;
209 bool m_idHasBeenSet = false;
210 bool m_stateHasBeenSet = false;
211 bool m_typeHasBeenSet = false;
212 bool m_updatedAtHasBeenSet = false;
213 bool m_requestIdHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace DataExchange
218} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
GetJobResult & AddErrors(ErrorsT &&value)
AWS_DATAEXCHANGE_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithType(Type value)
GetJobResult & WithArn(ArnT &&value)
const ResponseDetails & GetDetails() const
AWS_DATAEXCHANGE_API GetJobResult()=default
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DATAEXCHANGE_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetId() const
const Aws::Vector< JobError > & GetErrors() const
GetJobResult & WithDetails(DetailsT &&value)
GetJobResult & WithState(State value)
GetJobResult & WithId(IdT &&value)
GetJobResult & WithRequestId(RequestIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
GetJobResult & WithCreatedAt(CreatedAtT &&value)
GetJobResult & WithUpdatedAt(UpdatedAtT &&value)
GetJobResult & WithErrors(ErrorsT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue