AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
GetJobResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/location/LocationService_EXPORTS.h>
12#include <aws/location/model/JobAction.h>
13#include <aws/location/model/JobActionOptions.h>
14#include <aws/location/model/JobError.h>
15#include <aws/location/model/JobInputOptions.h>
16#include <aws/location/model/JobOutputOptions.h>
17#include <aws/location/model/JobStatus.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace LocationService {
31namespace Model {
33 public:
34 AWS_LOCATIONSERVICE_API GetJobResult() = default;
37
39
42 inline JobAction GetAction() const { return m_action; }
43 inline void SetAction(JobAction value) {
44 m_actionHasBeenSet = true;
45 m_action = value;
46 }
48 SetAction(value);
49 return *this;
50 }
52
54
57 inline const JobActionOptions& GetActionOptions() const { return m_actionOptions; }
58 template <typename ActionOptionsT = JobActionOptions>
59 void SetActionOptions(ActionOptionsT&& value) {
60 m_actionOptionsHasBeenSet = true;
61 m_actionOptions = std::forward<ActionOptionsT>(value);
62 }
63 template <typename ActionOptionsT = JobActionOptions>
64 GetJobResult& WithActionOptions(ActionOptionsT&& value) {
65 SetActionOptions(std::forward<ActionOptionsT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 template <typename CreatedAtT = Aws::Utils::DateTime>
78 void SetCreatedAt(CreatedAtT&& value) {
79 m_createdAtHasBeenSet = true;
80 m_createdAt = std::forward<CreatedAtT>(value);
81 }
82 template <typename CreatedAtT = Aws::Utils::DateTime>
83 GetJobResult& WithCreatedAt(CreatedAtT&& value) {
84 SetCreatedAt(std::forward<CreatedAtT>(value));
85 return *this;
86 }
88
90
97 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
98 template <typename EndedAtT = Aws::Utils::DateTime>
99 void SetEndedAt(EndedAtT&& value) {
100 m_endedAtHasBeenSet = true;
101 m_endedAt = std::forward<EndedAtT>(value);
102 }
103 template <typename EndedAtT = Aws::Utils::DateTime>
104 GetJobResult& WithEndedAt(EndedAtT&& value) {
105 SetEndedAt(std::forward<EndedAtT>(value));
106 return *this;
107 }
109
111
114 inline const JobError& GetError() const { return m_error; }
115 template <typename ErrorT = JobError>
116 void SetError(ErrorT&& value) {
117 m_errorHasBeenSet = true;
118 m_error = std::forward<ErrorT>(value);
119 }
120 template <typename ErrorT = JobError>
121 GetJobResult& WithError(ErrorT&& value) {
122 SetError(std::forward<ErrorT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
132 template <typename ExecutionRoleArnT = Aws::String>
133 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
134 m_executionRoleArnHasBeenSet = true;
135 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
136 }
137 template <typename ExecutionRoleArnT = Aws::String>
138 GetJobResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
139 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
140 return *this;
141 }
143
145
148 inline const JobInputOptions& GetInputOptions() const { return m_inputOptions; }
149 template <typename InputOptionsT = JobInputOptions>
150 void SetInputOptions(InputOptionsT&& value) {
151 m_inputOptionsHasBeenSet = true;
152 m_inputOptions = std::forward<InputOptionsT>(value);
153 }
154 template <typename InputOptionsT = JobInputOptions>
155 GetJobResult& WithInputOptions(InputOptionsT&& value) {
156 SetInputOptions(std::forward<InputOptionsT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetJobArn() const { return m_jobArn; }
166 template <typename JobArnT = Aws::String>
167 void SetJobArn(JobArnT&& value) {
168 m_jobArnHasBeenSet = true;
169 m_jobArn = std::forward<JobArnT>(value);
170 }
171 template <typename JobArnT = Aws::String>
172 GetJobResult& WithJobArn(JobArnT&& value) {
173 SetJobArn(std::forward<JobArnT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetJobId() const { return m_jobId; }
183 template <typename JobIdT = Aws::String>
184 void SetJobId(JobIdT&& value) {
185 m_jobIdHasBeenSet = true;
186 m_jobId = std::forward<JobIdT>(value);
187 }
188 template <typename JobIdT = Aws::String>
189 GetJobResult& WithJobId(JobIdT&& value) {
190 SetJobId(std::forward<JobIdT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::String& GetName() const { return m_name; }
200 template <typename NameT = Aws::String>
201 void SetName(NameT&& value) {
202 m_nameHasBeenSet = true;
203 m_name = std::forward<NameT>(value);
204 }
205 template <typename NameT = Aws::String>
206 GetJobResult& WithName(NameT&& value) {
207 SetName(std::forward<NameT>(value));
208 return *this;
209 }
211
213
216 inline const JobOutputOptions& GetOutputOptions() const { return m_outputOptions; }
217 template <typename OutputOptionsT = JobOutputOptions>
218 void SetOutputOptions(OutputOptionsT&& value) {
219 m_outputOptionsHasBeenSet = true;
220 m_outputOptions = std::forward<OutputOptionsT>(value);
221 }
222 template <typename OutputOptionsT = JobOutputOptions>
223 GetJobResult& WithOutputOptions(OutputOptionsT&& value) {
224 SetOutputOptions(std::forward<OutputOptionsT>(value));
225 return *this;
226 }
228
230
233 inline JobStatus GetStatus() const { return m_status; }
234 inline void SetStatus(JobStatus value) {
235 m_statusHasBeenSet = true;
236 m_status = value;
237 }
239 SetStatus(value);
240 return *this;
241 }
243
245
250 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
251 template <typename UpdatedAtT = Aws::Utils::DateTime>
252 void SetUpdatedAt(UpdatedAtT&& value) {
253 m_updatedAtHasBeenSet = true;
254 m_updatedAt = std::forward<UpdatedAtT>(value);
255 }
256 template <typename UpdatedAtT = Aws::Utils::DateTime>
257 GetJobResult& WithUpdatedAt(UpdatedAtT&& value) {
258 SetUpdatedAt(std::forward<UpdatedAtT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
268 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
269 void SetTags(TagsT&& value) {
270 m_tagsHasBeenSet = true;
271 m_tags = std::forward<TagsT>(value);
272 }
273 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
274 GetJobResult& WithTags(TagsT&& value) {
275 SetTags(std::forward<TagsT>(value));
276 return *this;
277 }
278 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
279 GetJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
280 m_tagsHasBeenSet = true;
281 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
282 return *this;
283 }
285
287
288 inline const Aws::String& GetRequestId() const { return m_requestId; }
289 template <typename RequestIdT = Aws::String>
290 void SetRequestId(RequestIdT&& value) {
291 m_requestIdHasBeenSet = true;
292 m_requestId = std::forward<RequestIdT>(value);
293 }
294 template <typename RequestIdT = Aws::String>
295 GetJobResult& WithRequestId(RequestIdT&& value) {
296 SetRequestId(std::forward<RequestIdT>(value));
297 return *this;
298 }
300 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
301
302 private:
304
305 JobActionOptions m_actionOptions;
306
307 Aws::Utils::DateTime m_createdAt{};
308
309 Aws::Utils::DateTime m_endedAt{};
310
311 JobError m_error;
312
313 Aws::String m_executionRoleArn;
314
315 JobInputOptions m_inputOptions;
316
317 Aws::String m_jobArn;
318
319 Aws::String m_jobId;
320
321 Aws::String m_name;
322
323 JobOutputOptions m_outputOptions;
324
326
327 Aws::Utils::DateTime m_updatedAt{};
328
330
331 Aws::String m_requestId;
332 Aws::Http::HttpResponseCode m_HttpResponseCode;
333 bool m_actionHasBeenSet = false;
334 bool m_actionOptionsHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_endedAtHasBeenSet = false;
337 bool m_errorHasBeenSet = false;
338 bool m_executionRoleArnHasBeenSet = false;
339 bool m_inputOptionsHasBeenSet = false;
340 bool m_jobArnHasBeenSet = false;
341 bool m_jobIdHasBeenSet = false;
342 bool m_nameHasBeenSet = false;
343 bool m_outputOptionsHasBeenSet = false;
344 bool m_statusHasBeenSet = false;
345 bool m_updatedAtHasBeenSet = false;
346 bool m_tagsHasBeenSet = false;
347 bool m_requestIdHasBeenSet = false;
348};
349
350} // namespace Model
351} // namespace LocationService
352} // namespace Aws
GetJobResult & WithOutputOptions(OutputOptionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LOCATIONSERVICE_API GetJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithJobId(JobIdT &&value)
GetJobResult & WithActionOptions(ActionOptionsT &&value)
const JobInputOptions & GetInputOptions() const
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetExecutionRoleArn() const
GetJobResult & WithStatus(JobStatus value)
GetJobResult & WithTags(TagsT &&value)
GetJobResult & WithJobArn(JobArnT &&value)
const Aws::String & GetName() const
void SetActionOptions(ActionOptionsT &&value)
const JobActionOptions & GetActionOptions() const
const Aws::String & GetJobArn() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetJobId() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetJobResult & WithRequestId(RequestIdT &&value)
GetJobResult & WithInputOptions(InputOptionsT &&value)
void SetOutputOptions(OutputOptionsT &&value)
AWS_LOCATIONSERVICE_API GetJobResult()=default
AWS_LOCATIONSERVICE_API GetJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetJobResult & WithUpdatedAt(UpdatedAtT &&value)
GetJobResult & WithAction(JobAction value)
GetJobResult & WithExecutionRoleArn(ExecutionRoleArnT &&value)
GetJobResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const JobOutputOptions & GetOutputOptions() const
const Aws::Utils::DateTime & GetEndedAt() const
GetJobResult & WithName(NameT &&value)
GetJobResult & WithEndedAt(EndedAtT &&value)
GetJobResult & WithError(ErrorT &&value)
GetJobResult & WithCreatedAt(CreatedAtT &&value)
void SetInputOptions(InputOptionsT &&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