AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
108 inline BatchStatus GetStatus() const { return m_status; }
109 inline void SetStatus(BatchStatus value) {
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 GetBatchResult& WithTags(TagsT&& value) {
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 GetBatchResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
146 inline int GetTotalRuns() const { return m_totalRuns; }
147 inline void SetTotalRuns(int value) {
148 m_totalRunsHasBeenSet = true;
149 m_totalRuns = value;
150 }
151 inline GetBatchResult& WithTotalRuns(int value) {
152 SetTotalRuns(value);
153 return *this;
154 }
156
158
162 inline const DefaultRunSetting& GetDefaultRunSetting() const { return m_defaultRunSetting; }
163 template <typename DefaultRunSettingT = DefaultRunSetting>
164 void SetDefaultRunSetting(DefaultRunSettingT&& value) {
165 m_defaultRunSettingHasBeenSet = true;
166 m_defaultRunSetting = std::forward<DefaultRunSettingT>(value);
167 }
168 template <typename DefaultRunSettingT = DefaultRunSetting>
169 GetBatchResult& WithDefaultRunSetting(DefaultRunSettingT&& value) {
170 SetDefaultRunSetting(std::forward<DefaultRunSettingT>(value));
171 return *this;
172 }
174
176
179 inline const SubmissionSummary& GetSubmissionSummary() const { return m_submissionSummary; }
180 template <typename SubmissionSummaryT = SubmissionSummary>
181 void SetSubmissionSummary(SubmissionSummaryT&& value) {
182 m_submissionSummaryHasBeenSet = true;
183 m_submissionSummary = std::forward<SubmissionSummaryT>(value);
184 }
185 template <typename SubmissionSummaryT = SubmissionSummary>
186 GetBatchResult& WithSubmissionSummary(SubmissionSummaryT&& value) {
187 SetSubmissionSummary(std::forward<SubmissionSummaryT>(value));
188 return *this;
189 }
191
193
199 inline const RunSummary& GetRunSummary() const { return m_runSummary; }
200 template <typename RunSummaryT = RunSummary>
201 void SetRunSummary(RunSummaryT&& value) {
202 m_runSummaryHasBeenSet = true;
203 m_runSummary = std::forward<RunSummaryT>(value);
204 }
205 template <typename RunSummaryT = RunSummary>
206 GetBatchResult& WithRunSummary(RunSummaryT&& value) {
207 SetRunSummary(std::forward<RunSummaryT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
217 template <typename CreationTimeT = Aws::Utils::DateTime>
218 void SetCreationTime(CreationTimeT&& value) {
219 m_creationTimeHasBeenSet = true;
220 m_creationTime = std::forward<CreationTimeT>(value);
221 }
222 template <typename CreationTimeT = Aws::Utils::DateTime>
223 GetBatchResult& WithCreationTime(CreationTimeT&& value) {
224 SetCreationTime(std::forward<CreationTimeT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Utils::DateTime& GetSubmittedTime() const { return m_submittedTime; }
234 template <typename SubmittedTimeT = Aws::Utils::DateTime>
235 void SetSubmittedTime(SubmittedTimeT&& value) {
236 m_submittedTimeHasBeenSet = true;
237 m_submittedTime = std::forward<SubmittedTimeT>(value);
238 }
239 template <typename SubmittedTimeT = Aws::Utils::DateTime>
240 GetBatchResult& WithSubmittedTime(SubmittedTimeT&& value) {
241 SetSubmittedTime(std::forward<SubmittedTimeT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Utils::DateTime& GetProcessedTime() const { return m_processedTime; }
251 template <typename ProcessedTimeT = Aws::Utils::DateTime>
252 void SetProcessedTime(ProcessedTimeT&& value) {
253 m_processedTimeHasBeenSet = true;
254 m_processedTime = std::forward<ProcessedTimeT>(value);
255 }
256 template <typename ProcessedTimeT = Aws::Utils::DateTime>
257 GetBatchResult& WithProcessedTime(ProcessedTimeT&& value) {
258 SetProcessedTime(std::forward<ProcessedTimeT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::Utils::DateTime& GetFailedTime() const { return m_failedTime; }
269 template <typename FailedTimeT = Aws::Utils::DateTime>
270 void SetFailedTime(FailedTimeT&& value) {
271 m_failedTimeHasBeenSet = true;
272 m_failedTime = std::forward<FailedTimeT>(value);
273 }
274 template <typename FailedTimeT = Aws::Utils::DateTime>
275 GetBatchResult& WithFailedTime(FailedTimeT&& value) {
276 SetFailedTime(std::forward<FailedTimeT>(value));
277 return *this;
278 }
280
282
286 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
287 template <typename FailureReasonT = Aws::String>
288 void SetFailureReason(FailureReasonT&& value) {
289 m_failureReasonHasBeenSet = true;
290 m_failureReason = std::forward<FailureReasonT>(value);
291 }
292 template <typename FailureReasonT = Aws::String>
293 GetBatchResult& WithFailureReason(FailureReasonT&& value) {
294 SetFailureReason(std::forward<FailureReasonT>(value));
295 return *this;
296 }
298
300
301 inline const Aws::String& GetRequestId() const { return m_requestId; }
302 template <typename RequestIdT = Aws::String>
303 void SetRequestId(RequestIdT&& value) {
304 m_requestIdHasBeenSet = true;
305 m_requestId = std::forward<RequestIdT>(value);
306 }
307 template <typename RequestIdT = Aws::String>
308 GetBatchResult& WithRequestId(RequestIdT&& value) {
309 SetRequestId(std::forward<RequestIdT>(value));
310 return *this;
311 }
313 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
314
315 private:
316 Aws::String m_id;
317
318 Aws::String m_arn;
319
320 Aws::String m_uuid;
321
322 Aws::String m_name;
323
325
327
328 int m_totalRuns{0};
329
330 DefaultRunSetting m_defaultRunSetting;
331
332 SubmissionSummary m_submissionSummary;
333
334 RunSummary m_runSummary;
335
336 Aws::Utils::DateTime m_creationTime{};
337
338 Aws::Utils::DateTime m_submittedTime{};
339
340 Aws::Utils::DateTime m_processedTime{};
341
342 Aws::Utils::DateTime m_failedTime{};
343
344 Aws::String m_failureReason;
345
346 Aws::String m_requestId;
347 Aws::Http::HttpResponseCode m_HttpResponseCode;
348 bool m_idHasBeenSet = false;
349 bool m_arnHasBeenSet = false;
350 bool m_uuidHasBeenSet = false;
351 bool m_nameHasBeenSet = false;
352 bool m_statusHasBeenSet = false;
353 bool m_tagsHasBeenSet = false;
354 bool m_totalRunsHasBeenSet = false;
355 bool m_defaultRunSettingHasBeenSet = false;
356 bool m_submissionSummaryHasBeenSet = false;
357 bool m_runSummaryHasBeenSet = false;
358 bool m_creationTimeHasBeenSet = false;
359 bool m_submittedTimeHasBeenSet = false;
360 bool m_processedTimeHasBeenSet = false;
361 bool m_failedTimeHasBeenSet = false;
362 bool m_failureReasonHasBeenSet = false;
363 bool m_requestIdHasBeenSet = false;
364};
365
366} // namespace Model
367} // namespace Omics
368} // 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