AWS SDK for C++

AWS SDK for C++ Version 1.11.891

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
115 inline BatchStatus GetStatus() const { return m_status; }
116 inline void SetStatus(BatchStatus value) {
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 void SetTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags = std::forward<TagsT>(value);
135 }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 GetBatchResult& WithTags(TagsT&& value) {
138 SetTags(std::forward<TagsT>(value));
139 return *this;
140 }
141 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
142 GetBatchResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
145 return *this;
146 }
148
150
153 inline int GetTotalRuns() const { return m_totalRuns; }
154 inline void SetTotalRuns(int value) {
155 m_totalRunsHasBeenSet = true;
156 m_totalRuns = value;
157 }
158 inline GetBatchResult& WithTotalRuns(int value) {
159 SetTotalRuns(value);
160 return *this;
161 }
163
165
169 inline const DefaultRunSetting& GetDefaultRunSetting() const { return m_defaultRunSetting; }
170 template <typename DefaultRunSettingT = DefaultRunSetting>
171 void SetDefaultRunSetting(DefaultRunSettingT&& value) {
172 m_defaultRunSettingHasBeenSet = true;
173 m_defaultRunSetting = std::forward<DefaultRunSettingT>(value);
174 }
175 template <typename DefaultRunSettingT = DefaultRunSetting>
176 GetBatchResult& WithDefaultRunSetting(DefaultRunSettingT&& value) {
177 SetDefaultRunSetting(std::forward<DefaultRunSettingT>(value));
178 return *this;
179 }
181
183
186 inline const SubmissionSummary& GetSubmissionSummary() const { return m_submissionSummary; }
187 template <typename SubmissionSummaryT = SubmissionSummary>
188 void SetSubmissionSummary(SubmissionSummaryT&& value) {
189 m_submissionSummaryHasBeenSet = true;
190 m_submissionSummary = std::forward<SubmissionSummaryT>(value);
191 }
192 template <typename SubmissionSummaryT = SubmissionSummary>
193 GetBatchResult& WithSubmissionSummary(SubmissionSummaryT&& value) {
194 SetSubmissionSummary(std::forward<SubmissionSummaryT>(value));
195 return *this;
196 }
198
200
206 inline const RunSummary& GetRunSummary() const { return m_runSummary; }
207 template <typename RunSummaryT = RunSummary>
208 void SetRunSummary(RunSummaryT&& value) {
209 m_runSummaryHasBeenSet = true;
210 m_runSummary = std::forward<RunSummaryT>(value);
211 }
212 template <typename RunSummaryT = RunSummary>
213 GetBatchResult& WithRunSummary(RunSummaryT&& value) {
214 SetRunSummary(std::forward<RunSummaryT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
224 template <typename CreationTimeT = Aws::Utils::DateTime>
225 void SetCreationTime(CreationTimeT&& value) {
226 m_creationTimeHasBeenSet = true;
227 m_creationTime = std::forward<CreationTimeT>(value);
228 }
229 template <typename CreationTimeT = Aws::Utils::DateTime>
230 GetBatchResult& WithCreationTime(CreationTimeT&& value) {
231 SetCreationTime(std::forward<CreationTimeT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetSubmittedTime() const { return m_submittedTime; }
241 template <typename SubmittedTimeT = Aws::Utils::DateTime>
242 void SetSubmittedTime(SubmittedTimeT&& value) {
243 m_submittedTimeHasBeenSet = true;
244 m_submittedTime = std::forward<SubmittedTimeT>(value);
245 }
246 template <typename SubmittedTimeT = Aws::Utils::DateTime>
247 GetBatchResult& WithSubmittedTime(SubmittedTimeT&& value) {
248 SetSubmittedTime(std::forward<SubmittedTimeT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::Utils::DateTime& GetProcessedTime() const { return m_processedTime; }
258 template <typename ProcessedTimeT = Aws::Utils::DateTime>
259 void SetProcessedTime(ProcessedTimeT&& value) {
260 m_processedTimeHasBeenSet = true;
261 m_processedTime = std::forward<ProcessedTimeT>(value);
262 }
263 template <typename ProcessedTimeT = Aws::Utils::DateTime>
264 GetBatchResult& WithProcessedTime(ProcessedTimeT&& value) {
265 SetProcessedTime(std::forward<ProcessedTimeT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::Utils::DateTime& GetFailedTime() const { return m_failedTime; }
276 template <typename FailedTimeT = Aws::Utils::DateTime>
277 void SetFailedTime(FailedTimeT&& value) {
278 m_failedTimeHasBeenSet = true;
279 m_failedTime = std::forward<FailedTimeT>(value);
280 }
281 template <typename FailedTimeT = Aws::Utils::DateTime>
282 GetBatchResult& WithFailedTime(FailedTimeT&& value) {
283 SetFailedTime(std::forward<FailedTimeT>(value));
284 return *this;
285 }
287
289
293 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
294 template <typename FailureReasonT = Aws::String>
295 void SetFailureReason(FailureReasonT&& value) {
296 m_failureReasonHasBeenSet = true;
297 m_failureReason = std::forward<FailureReasonT>(value);
298 }
299 template <typename FailureReasonT = Aws::String>
300 GetBatchResult& WithFailureReason(FailureReasonT&& value) {
301 SetFailureReason(std::forward<FailureReasonT>(value));
302 return *this;
303 }
305
307
308 inline const Aws::String& GetRequestId() const { return m_requestId; }
309 template <typename RequestIdT = Aws::String>
310 void SetRequestId(RequestIdT&& value) {
311 m_requestIdHasBeenSet = true;
312 m_requestId = std::forward<RequestIdT>(value);
313 }
314 template <typename RequestIdT = Aws::String>
315 GetBatchResult& WithRequestId(RequestIdT&& value) {
316 SetRequestId(std::forward<RequestIdT>(value));
317 return *this;
318 }
320 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
321
322 private:
323 Aws::String m_id;
324
325 Aws::String m_arn;
326
327 Aws::String m_uuid;
328
329 Aws::String m_name;
330
332
334
335 int m_totalRuns{0};
336
337 DefaultRunSetting m_defaultRunSetting;
338
339 SubmissionSummary m_submissionSummary;
340
341 RunSummary m_runSummary;
342
343 Aws::Utils::DateTime m_creationTime{};
344
345 Aws::Utils::DateTime m_submittedTime{};
346
347 Aws::Utils::DateTime m_processedTime{};
348
349 Aws::Utils::DateTime m_failedTime{};
350
351 Aws::String m_failureReason;
352
353 Aws::String m_requestId;
354 Aws::Http::HttpResponseCode m_HttpResponseCode;
355 bool m_idHasBeenSet = false;
356 bool m_arnHasBeenSet = false;
357 bool m_uuidHasBeenSet = false;
358 bool m_nameHasBeenSet = false;
359 bool m_statusHasBeenSet = false;
360 bool m_tagsHasBeenSet = false;
361 bool m_totalRunsHasBeenSet = false;
362 bool m_defaultRunSettingHasBeenSet = false;
363 bool m_submissionSummaryHasBeenSet = false;
364 bool m_runSummaryHasBeenSet = false;
365 bool m_creationTimeHasBeenSet = false;
366 bool m_submittedTimeHasBeenSet = false;
367 bool m_processedTimeHasBeenSet = false;
368 bool m_failedTimeHasBeenSet = false;
369 bool m_failureReasonHasBeenSet = false;
370 bool m_requestIdHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace Omics
375} // 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