AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
StartRunRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/omics/OmicsRequest.h>
12#include <aws/omics/Omics_EXPORTS.h>
13#include <aws/omics/model/CacheBehavior.h>
14#include <aws/omics/model/NetworkingMode.h>
15#include <aws/omics/model/RunLogLevel.h>
16#include <aws/omics/model/RunRetentionMode.h>
17#include <aws/omics/model/StorageType.h>
18#include <aws/omics/model/WorkflowType.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Omics {
24namespace Model {
25
29 public:
30 AWS_OMICS_API StartRunRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartRun"; }
37
38 AWS_OMICS_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
45 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
46 template <typename WorkflowIdT = Aws::String>
47 void SetWorkflowId(WorkflowIdT&& value) {
48 m_workflowIdHasBeenSet = true;
49 m_workflowId = std::forward<WorkflowIdT>(value);
50 }
51 template <typename WorkflowIdT = Aws::String>
52 StartRunRequest& WithWorkflowId(WorkflowIdT&& value) {
53 SetWorkflowId(std::forward<WorkflowIdT>(value));
54 return *this;
55 }
57
59
65 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
66 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
67 inline void SetWorkflowType(WorkflowType value) {
68 m_workflowTypeHasBeenSet = true;
69 m_workflowType = value;
70 }
72 SetWorkflowType(value);
73 return *this;
74 }
76
78
81 inline const Aws::String& GetRunId() const { return m_runId; }
82 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
83 template <typename RunIdT = Aws::String>
84 void SetRunId(RunIdT&& value) {
85 m_runIdHasBeenSet = true;
86 m_runId = std::forward<RunIdT>(value);
87 }
88 template <typename RunIdT = Aws::String>
89 StartRunRequest& WithRunId(RunIdT&& value) {
90 SetRunId(std::forward<RunIdT>(value));
91 return *this;
92 }
94
96
104 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
105 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
106 template <typename RoleArnT = Aws::String>
107 void SetRoleArn(RoleArnT&& value) {
108 m_roleArnHasBeenSet = true;
109 m_roleArn = std::forward<RoleArnT>(value);
110 }
111 template <typename RoleArnT = Aws::String>
112 StartRunRequest& WithRoleArn(RoleArnT&& value) {
113 SetRoleArn(std::forward<RoleArnT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::String& GetName() const { return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 template <typename NameT = Aws::String>
126 void SetName(NameT&& value) {
127 m_nameHasBeenSet = true;
128 m_name = std::forward<NameT>(value);
129 }
130 template <typename NameT = Aws::String>
131 StartRunRequest& WithName(NameT&& value) {
132 SetName(std::forward<NameT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetCacheId() const { return m_cacheId; }
143 inline bool CacheIdHasBeenSet() const { return m_cacheIdHasBeenSet; }
144 template <typename CacheIdT = Aws::String>
145 void SetCacheId(CacheIdT&& value) {
146 m_cacheIdHasBeenSet = true;
147 m_cacheId = std::forward<CacheIdT>(value);
148 }
149 template <typename CacheIdT = Aws::String>
150 StartRunRequest& WithCacheId(CacheIdT&& value) {
151 SetCacheId(std::forward<CacheIdT>(value));
152 return *this;
153 }
155
157
164 inline CacheBehavior GetCacheBehavior() const { return m_cacheBehavior; }
165 inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; }
166 inline void SetCacheBehavior(CacheBehavior value) {
167 m_cacheBehaviorHasBeenSet = true;
168 m_cacheBehavior = value;
169 }
171 SetCacheBehavior(value);
172 return *this;
173 }
175
177
181 inline const Aws::String& GetRunGroupId() const { return m_runGroupId; }
182 inline bool RunGroupIdHasBeenSet() const { return m_runGroupIdHasBeenSet; }
183 template <typename RunGroupIdT = Aws::String>
184 void SetRunGroupId(RunGroupIdT&& value) {
185 m_runGroupIdHasBeenSet = true;
186 m_runGroupId = std::forward<RunGroupIdT>(value);
187 }
188 template <typename RunGroupIdT = Aws::String>
189 StartRunRequest& WithRunGroupId(RunGroupIdT&& value) {
190 SetRunGroupId(std::forward<RunGroupIdT>(value));
191 return *this;
192 }
194
196
206 inline int GetPriority() const { return m_priority; }
207 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
208 inline void SetPriority(int value) {
209 m_priorityHasBeenSet = true;
210 m_priority = value;
211 }
212 inline StartRunRequest& WithPriority(int value) {
213 SetPriority(value);
214 return *this;
215 }
217
219
225 inline Aws::Utils::DocumentView GetParameters() const { return m_parameters; }
226 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
227 template <typename ParametersT = Aws::Utils::Document>
228 void SetParameters(ParametersT&& value) {
229 m_parametersHasBeenSet = true;
230 m_parameters = std::forward<ParametersT>(value);
231 }
232 template <typename ParametersT = Aws::Utils::Document>
233 StartRunRequest& WithParameters(ParametersT&& value) {
234 SetParameters(std::forward<ParametersT>(value));
235 return *this;
236 }
238
240
249 inline int GetStorageCapacity() const { return m_storageCapacity; }
250 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
251 inline void SetStorageCapacity(int value) {
252 m_storageCapacityHasBeenSet = true;
253 m_storageCapacity = value;
254 }
256 SetStorageCapacity(value);
257 return *this;
258 }
260
262
266 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
267 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
268 template <typename OutputUriT = Aws::String>
269 void SetOutputUri(OutputUriT&& value) {
270 m_outputUriHasBeenSet = true;
271 m_outputUri = std::forward<OutputUriT>(value);
272 }
273 template <typename OutputUriT = Aws::String>
274 StartRunRequest& WithOutputUri(OutputUriT&& value) {
275 SetOutputUri(std::forward<OutputUriT>(value));
276 return *this;
277 }
279
281
284 inline RunLogLevel GetLogLevel() const { return m_logLevel; }
285 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
286 inline void SetLogLevel(RunLogLevel value) {
287 m_logLevelHasBeenSet = true;
288 m_logLevel = value;
289 }
291 SetLogLevel(value);
292 return *this;
293 }
295
297
302 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
303 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
305 void SetTags(TagsT&& value) {
306 m_tagsHasBeenSet = true;
307 m_tags = std::forward<TagsT>(value);
308 }
309 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
310 StartRunRequest& WithTags(TagsT&& value) {
311 SetTags(std::forward<TagsT>(value));
312 return *this;
313 }
314 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
315 StartRunRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
316 m_tagsHasBeenSet = true;
317 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
318 return *this;
319 }
321
323
327 inline const Aws::String& GetRequestId() const { return m_requestId; }
328 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
329 template <typename RequestIdT = Aws::String>
330 void SetRequestId(RequestIdT&& value) {
331 m_requestIdHasBeenSet = true;
332 m_requestId = std::forward<RequestIdT>(value);
333 }
334 template <typename RequestIdT = Aws::String>
335 StartRunRequest& WithRequestId(RequestIdT&& value) {
336 SetRequestId(std::forward<RequestIdT>(value));
337 return *this;
338 }
340
342
356 inline RunRetentionMode GetRetentionMode() const { return m_retentionMode; }
357 inline bool RetentionModeHasBeenSet() const { return m_retentionModeHasBeenSet; }
359 m_retentionModeHasBeenSet = true;
360 m_retentionMode = value;
361 }
363 SetRetentionMode(value);
364 return *this;
365 }
367
369
379 inline StorageType GetStorageType() const { return m_storageType; }
380 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
381 inline void SetStorageType(StorageType value) {
382 m_storageTypeHasBeenSet = true;
383 m_storageType = value;
384 }
386 SetStorageType(value);
387 return *this;
388 }
390
392
398 inline const Aws::String& GetWorkflowOwnerId() const { return m_workflowOwnerId; }
399 inline bool WorkflowOwnerIdHasBeenSet() const { return m_workflowOwnerIdHasBeenSet; }
400 template <typename WorkflowOwnerIdT = Aws::String>
401 void SetWorkflowOwnerId(WorkflowOwnerIdT&& value) {
402 m_workflowOwnerIdHasBeenSet = true;
403 m_workflowOwnerId = std::forward<WorkflowOwnerIdT>(value);
404 }
405 template <typename WorkflowOwnerIdT = Aws::String>
406 StartRunRequest& WithWorkflowOwnerId(WorkflowOwnerIdT&& value) {
407 SetWorkflowOwnerId(std::forward<WorkflowOwnerIdT>(value));
408 return *this;
409 }
411
413
420 inline const Aws::String& GetWorkflowVersionName() const { return m_workflowVersionName; }
421 inline bool WorkflowVersionNameHasBeenSet() const { return m_workflowVersionNameHasBeenSet; }
422 template <typename WorkflowVersionNameT = Aws::String>
423 void SetWorkflowVersionName(WorkflowVersionNameT&& value) {
424 m_workflowVersionNameHasBeenSet = true;
425 m_workflowVersionName = std::forward<WorkflowVersionNameT>(value);
426 }
427 template <typename WorkflowVersionNameT = Aws::String>
428 StartRunRequest& WithWorkflowVersionName(WorkflowVersionNameT&& value) {
429 SetWorkflowVersionName(std::forward<WorkflowVersionNameT>(value));
430 return *this;
431 }
433
435
439 inline NetworkingMode GetNetworkingMode() const { return m_networkingMode; }
440 inline bool NetworkingModeHasBeenSet() const { return m_networkingModeHasBeenSet; }
442 m_networkingModeHasBeenSet = true;
443 m_networkingMode = value;
444 }
446 SetNetworkingMode(value);
447 return *this;
448 }
450
452
455 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
456 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
457 template <typename ConfigurationNameT = Aws::String>
458 void SetConfigurationName(ConfigurationNameT&& value) {
459 m_configurationNameHasBeenSet = true;
460 m_configurationName = std::forward<ConfigurationNameT>(value);
461 }
462 template <typename ConfigurationNameT = Aws::String>
463 StartRunRequest& WithConfigurationName(ConfigurationNameT&& value) {
464 SetConfigurationName(std::forward<ConfigurationNameT>(value));
465 return *this;
466 }
468 private:
469 Aws::String m_workflowId;
470
471 WorkflowType m_workflowType{WorkflowType::NOT_SET};
472
473 Aws::String m_runId;
474
475 Aws::String m_roleArn;
476
477 Aws::String m_name;
478
479 Aws::String m_cacheId;
480
481 CacheBehavior m_cacheBehavior{CacheBehavior::NOT_SET};
482
483 Aws::String m_runGroupId;
484
485 int m_priority{0};
486
487 Aws::Utils::Document m_parameters;
488
489 int m_storageCapacity{0};
490
491 Aws::String m_outputUri;
492
494
496
498
500
501 StorageType m_storageType{StorageType::NOT_SET};
502
503 Aws::String m_workflowOwnerId;
504
505 Aws::String m_workflowVersionName;
506
507 NetworkingMode m_networkingMode{NetworkingMode::NOT_SET};
508
509 Aws::String m_configurationName;
510 bool m_workflowIdHasBeenSet = false;
511 bool m_workflowTypeHasBeenSet = false;
512 bool m_runIdHasBeenSet = false;
513 bool m_roleArnHasBeenSet = false;
514 bool m_nameHasBeenSet = false;
515 bool m_cacheIdHasBeenSet = false;
516 bool m_cacheBehaviorHasBeenSet = false;
517 bool m_runGroupIdHasBeenSet = false;
518 bool m_priorityHasBeenSet = false;
519 bool m_parametersHasBeenSet = false;
520 bool m_storageCapacityHasBeenSet = false;
521 bool m_outputUriHasBeenSet = false;
522 bool m_logLevelHasBeenSet = false;
523 bool m_tagsHasBeenSet = false;
524 bool m_requestIdHasBeenSet = true;
525 bool m_retentionModeHasBeenSet = false;
526 bool m_storageTypeHasBeenSet = false;
527 bool m_workflowOwnerIdHasBeenSet = false;
528 bool m_workflowVersionNameHasBeenSet = false;
529 bool m_networkingModeHasBeenSet = false;
530 bool m_configurationNameHasBeenSet = false;
531};
532
533} // namespace Model
534} // namespace Omics
535} // namespace Aws
const Aws::String & GetConfigurationName() const
Aws::Utils::DocumentView GetParameters() const
StartRunRequest & WithConfigurationName(ConfigurationNameT &&value)
AWS_OMICS_API Aws::String SerializePayload() const override
StartRunRequest & WithTags(TagsT &&value)
const Aws::String & GetWorkflowOwnerId() const
StartRunRequest & WithRetentionMode(RunRetentionMode value)
void SetOutputUri(OutputUriT &&value)
StartRunRequest & WithCacheId(CacheIdT &&value)
const Aws::String & GetWorkflowVersionName() const
void SetWorkflowType(WorkflowType value)
StartRunRequest & WithNetworkingMode(NetworkingMode value)
void SetWorkflowOwnerId(WorkflowOwnerIdT &&value)
void SetNetworkingMode(NetworkingMode value)
StartRunRequest & WithWorkflowId(WorkflowIdT &&value)
const Aws::String & GetRunId() const
void SetRequestId(RequestIdT &&value)
void SetCacheBehavior(CacheBehavior value)
StartRunRequest & WithRunGroupId(RunGroupIdT &&value)
const Aws::String & GetRunGroupId() const
StartRunRequest & WithWorkflowOwnerId(WorkflowOwnerIdT &&value)
void SetWorkflowVersionName(WorkflowVersionNameT &&value)
const Aws::String & GetRoleArn() const
CacheBehavior GetCacheBehavior() const
StartRunRequest & WithRoleArn(RoleArnT &&value)
const Aws::String & GetWorkflowId() const
StartRunRequest & WithRunId(RunIdT &&value)
void SetConfigurationName(ConfigurationNameT &&value)
void SetRunGroupId(RunGroupIdT &&value)
StartRunRequest & WithParameters(ParametersT &&value)
StartRunRequest & WithLogLevel(RunLogLevel value)
const Aws::String & GetCacheId() const
StartRunRequest & WithWorkflowType(WorkflowType value)
StartRunRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetRequestId() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RunRetentionMode GetRetentionMode() const
const Aws::String & GetOutputUri() const
void SetRetentionMode(RunRetentionMode value)
void SetWorkflowId(WorkflowIdT &&value)
const Aws::String & GetName() const
StartRunRequest & WithName(NameT &&value)
StartRunRequest & WithWorkflowVersionName(WorkflowVersionNameT &&value)
StartRunRequest & WithStorageCapacity(int value)
NetworkingMode GetNetworkingMode() const
StartRunRequest & WithPriority(int value)
StartRunRequest & WithStorageType(StorageType value)
void SetParameters(ParametersT &&value)
StartRunRequest & WithCacheBehavior(CacheBehavior value)
void SetStorageType(StorageType value)
StartRunRequest & WithRequestId(RequestIdT &&value)
virtual const char * GetServiceRequestName() const override
StartRunRequest & WithOutputUri(OutputUriT &&value)
AWS_OMICS_API StartRunRequest()=default
void SetLogLevel(RunLogLevel value)
static Aws::Utils::UUID PseudoRandomUUID()
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