AWS SDK for C++

AWS SDK for C++ Version 1.11.797

Loading...
Searching...
No Matches
GetBatchResult.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/omics/Omics_EXPORTS.h>
12#include <aws/omics/model/BatchStatus.h>
13#include <aws/omics/model/DefaultRunSetting.h>
14#include <aws/omics/model/RunSummary.h>
15#include <aws/omics/model/SubmissionSummary.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Omics {
29namespace Model {
31 public:
32 AWS_OMICS_API GetBatchResult() = default;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 GetBatchResult& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
64 GetBatchResult& WithArn(ArnT&& value) {
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetUuid() const { return m_uuid; }
75 template <typename UuidT = Aws::String>
76 void SetUuid(UuidT&& value) {
77 m_uuidHasBeenSet = true;
78 m_uuid = std::forward<UuidT>(value);
79 }
80 template <typename UuidT = Aws::String>
81 GetBatchResult& WithUuid(UuidT&& value) {
82 SetUuid(std::forward<UuidT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 template <typename NameT = Aws::String>
93 void SetName(NameT&& value) {
94 m_nameHasBeenSet = true;
95 m_name = std::forward<NameT>(value);
96 }
97 template <typename NameT = Aws::String>
98 GetBatchResult& WithName(NameT&& value) {
99 SetName(std::forward<NameT>(value));
100 return *this;
101 }
103
105
114 inline BatchStatus GetStatus() const { return m_status; }
115 inline void SetStatus(BatchStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
130 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 void SetTags(TagsT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags = std::forward<TagsT>(value);
134 }
135 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 GetBatchResult& WithTags(TagsT&& value) {
137 SetTags(std::forward<TagsT>(value));
138 return *this;
139 }
140 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
141 GetBatchResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
144 return *this;
145 }
147
149
152 inline int GetTotalRuns() const { return m_totalRuns; }
153 inline void SetTotalRuns(int value) {
154 m_totalRunsHasBeenSet = true;
155 m_totalRuns = value;
156 }
157 inline GetBatchResult& WithTotalRuns(int value) {
158 SetTotalRuns(value);
159 return *this;
160 }
162
164
168 inline const DefaultRunSetting& GetDefaultRunSetting() const { return m_defaultRunSetting; }
169 template <typename DefaultRunSettingT = DefaultRunSetting>
170 void SetDefaultRunSetting(DefaultRunSettingT&& value) {
171 m_defaultRunSettingHasBeenSet = true;
172 m_defaultRunSetting = std::forward<DefaultRunSettingT>(value);
173 }
174 template <typename DefaultRunSettingT = DefaultRunSetting>
175 GetBatchResult& WithDefaultRunSetting(DefaultRunSettingT&& value) {
176 SetDefaultRunSetting(std::forward<DefaultRunSettingT>(value));
177 return *this;
178 }
180
182
185 inline const SubmissionSummary& GetSubmissionSummary() const { return m_submissionSummary; }
186 template <typename SubmissionSummaryT = SubmissionSummary>
187 void SetSubmissionSummary(SubmissionSummaryT&& value) {
188 m_submissionSummaryHasBeenSet = true;
189 m_submissionSummary = std::forward<SubmissionSummaryT>(value);
190 }
191 template <typename SubmissionSummaryT = SubmissionSummary>
192 GetBatchResult& WithSubmissionSummary(SubmissionSummaryT&& value) {
193 SetSubmissionSummary(std::forward<SubmissionSummaryT>(value));
194 return *this;
195 }
197
199
205 inline const RunSummary& GetRunSummary() const { return m_runSummary; }
206 template <typename RunSummaryT = RunSummary>
207 void SetRunSummary(RunSummaryT&& value) {
208 m_runSummaryHasBeenSet = true;
209 m_runSummary = std::forward<RunSummaryT>(value);
210 }
211 template <typename RunSummaryT = RunSummary>
212 GetBatchResult& WithRunSummary(RunSummaryT&& value) {
213 SetRunSummary(std::forward<RunSummaryT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
223 template <typename CreationTimeT = Aws::Utils::DateTime>
224 void SetCreationTime(CreationTimeT&& value) {
225 m_creationTimeHasBeenSet = true;
226 m_creationTime = std::forward<CreationTimeT>(value);
227 }
228 template <typename CreationTimeT = Aws::Utils::DateTime>
229 GetBatchResult& WithCreationTime(CreationTimeT&& value) {
230 SetCreationTime(std::forward<CreationTimeT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Utils::DateTime& GetSubmittedTime() const { return m_submittedTime; }
240 template <typename SubmittedTimeT = Aws::Utils::DateTime>
241 void SetSubmittedTime(SubmittedTimeT&& value) {
242 m_submittedTimeHasBeenSet = true;
243 m_submittedTime = std::forward<SubmittedTimeT>(value);
244 }
245 template <typename SubmittedTimeT = Aws::Utils::DateTime>
246 GetBatchResult& WithSubmittedTime(SubmittedTimeT&& value) {
247 SetSubmittedTime(std::forward<SubmittedTimeT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Utils::DateTime& GetProcessedTime() const { return m_processedTime; }
257 template <typename ProcessedTimeT = Aws::Utils::DateTime>
258 void SetProcessedTime(ProcessedTimeT&& value) {
259 m_processedTimeHasBeenSet = true;
260 m_processedTime = std::forward<ProcessedTimeT>(value);
261 }
262 template <typename ProcessedTimeT = Aws::Utils::DateTime>
263 GetBatchResult& WithProcessedTime(ProcessedTimeT&& value) {
264 SetProcessedTime(std::forward<ProcessedTimeT>(value));
265 return *this;
266 }
268
270
274 inline const Aws::Utils::DateTime& GetFailedTime() const { return m_failedTime; }
275 template <typename FailedTimeT = Aws::Utils::DateTime>
276 void SetFailedTime(FailedTimeT&& value) {
277 m_failedTimeHasBeenSet = true;
278 m_failedTime = std::forward<FailedTimeT>(value);
279 }
280 template <typename FailedTimeT = Aws::Utils::DateTime>
281 GetBatchResult& WithFailedTime(FailedTimeT&& value) {
282 SetFailedTime(std::forward<FailedTimeT>(value));
283 return *this;
284 }
286
288
292 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
293 template <typename FailureReasonT = Aws::String>
294 void SetFailureReason(FailureReasonT&& value) {
295 m_failureReasonHasBeenSet = true;
296 m_failureReason = std::forward<FailureReasonT>(value);
297 }
298 template <typename FailureReasonT = Aws::String>
299 GetBatchResult& WithFailureReason(FailureReasonT&& value) {
300 SetFailureReason(std::forward<FailureReasonT>(value));
301 return *this;
302 }
304
306
307 inline const Aws::String& GetRequestId() const { return m_requestId; }
308 template <typename RequestIdT = Aws::String>
309 void SetRequestId(RequestIdT&& value) {
310 m_requestIdHasBeenSet = true;
311 m_requestId = std::forward<RequestIdT>(value);
312 }
313 template <typename RequestIdT = Aws::String>
314 GetBatchResult& WithRequestId(RequestIdT&& value) {
315 SetRequestId(std::forward<RequestIdT>(value));
316 return *this;
317 }
319 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
320
321 private:
322 Aws::String m_id;
323
324 Aws::String m_arn;
325
326 Aws::String m_uuid;
327
328 Aws::String m_name;
329
331
333
334 int m_totalRuns{0};
335
336 DefaultRunSetting m_defaultRunSetting;
337
338 SubmissionSummary m_submissionSummary;
339
340 RunSummary m_runSummary;
341
342 Aws::Utils::DateTime m_creationTime{};
343
344 Aws::Utils::DateTime m_submittedTime{};
345
346 Aws::Utils::DateTime m_processedTime{};
347
348 Aws::Utils::DateTime m_failedTime{};
349
350 Aws::String m_failureReason;
351
352 Aws::String m_requestId;
353 Aws::Http::HttpResponseCode m_HttpResponseCode;
354 bool m_idHasBeenSet = false;
355 bool m_arnHasBeenSet = false;
356 bool m_uuidHasBeenSet = false;
357 bool m_nameHasBeenSet = false;
358 bool m_statusHasBeenSet = false;
359 bool m_tagsHasBeenSet = false;
360 bool m_totalRunsHasBeenSet = false;
361 bool m_defaultRunSettingHasBeenSet = false;
362 bool m_submissionSummaryHasBeenSet = false;
363 bool m_runSummaryHasBeenSet = false;
364 bool m_creationTimeHasBeenSet = false;
365 bool m_submittedTimeHasBeenSet = false;
366 bool m_processedTimeHasBeenSet = false;
367 bool m_failedTimeHasBeenSet = false;
368 bool m_failureReasonHasBeenSet = false;
369 bool m_requestIdHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace Omics
374} // namespace Aws
GetBatchResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_OMICS_API GetBatchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const DefaultRunSetting & GetDefaultRunSetting() const
void SetFailureReason(FailureReasonT &&value)
void SetStatus(BatchStatus value)
GetBatchResult & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
GetBatchResult & WithProcessedTime(ProcessedTimeT &&value)
const Aws::Utils::DateTime & GetFailedTime() const
void SetSubmittedTime(SubmittedTimeT &&value)
GetBatchResult & WithSubmittedTime(SubmittedTimeT &&value)
GetBatchResult & WithTags(TagsT &&value)
GetBatchResult & WithFailedTime(FailedTimeT &&value)
GetBatchResult & WithTotalRuns(int value)
AWS_OMICS_API GetBatchResult()=default
AWS_OMICS_API GetBatchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBatchResult & WithUuid(UuidT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
void SetSubmissionSummary(SubmissionSummaryT &&value)
void SetDefaultRunSetting(DefaultRunSettingT &&value)
const Aws::String & GetId() const
GetBatchResult & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetSubmittedTime() const
const Aws::String & GetUuid() const
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetName() const
GetBatchResult & WithSubmissionSummary(SubmissionSummaryT &&value)
const Aws::String & GetArn() const
GetBatchResult & WithRequestId(RequestIdT &&value)
void SetRunSummary(RunSummaryT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetBatchResult & WithFailureReason(FailureReasonT &&value)
const Aws::Utils::DateTime & GetProcessedTime() const
GetBatchResult & WithStatus(BatchStatus value)
void SetFailedTime(FailedTimeT &&value)
void SetRequestId(RequestIdT &&value)
GetBatchResult & WithArn(ArnT &&value)
const RunSummary & GetRunSummary() const
GetBatchResult & WithDefaultRunSetting(DefaultRunSettingT &&value)
GetBatchResult & WithRunSummary(RunSummaryT &&value)
void SetProcessedTime(ProcessedTimeT &&value)
const Aws::String & GetFailureReason() const
const SubmissionSummary & GetSubmissionSummary() const
GetBatchResult & WithName(NameT &&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