AWS SDK for C++

AWS SDK for C++ Version 1.11.939

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/RunOutputUriPrefixMode.h>
17#include <aws/omics/model/RunRetentionMode.h>
18#include <aws/omics/model/ScratchStorageMode.h>
19#include <aws/omics/model/StorageType.h>
20#include <aws/omics/model/WorkflowType.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Omics {
26namespace Model {
27
31 public:
32 AWS_OMICS_API StartRunRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "StartRun"; }
39
40 AWS_OMICS_API Aws::String SerializePayload() const override;
41
43
46 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
47 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
48 template <typename WorkflowIdT = Aws::String>
49 void SetWorkflowId(WorkflowIdT&& value) {
50 m_workflowIdHasBeenSet = true;
51 m_workflowId = std::forward<WorkflowIdT>(value);
52 }
53 template <typename WorkflowIdT = Aws::String>
54 StartRunRequest& WithWorkflowId(WorkflowIdT&& value) {
55 SetWorkflowId(std::forward<WorkflowIdT>(value));
56 return *this;
57 }
59
61
67 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
68 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
69 inline void SetWorkflowType(WorkflowType value) {
70 m_workflowTypeHasBeenSet = true;
71 m_workflowType = value;
72 }
74 SetWorkflowType(value);
75 return *this;
76 }
78
80
83 inline const Aws::String& GetRunId() const { return m_runId; }
84 inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; }
85 template <typename RunIdT = Aws::String>
86 void SetRunId(RunIdT&& value) {
87 m_runIdHasBeenSet = true;
88 m_runId = std::forward<RunIdT>(value);
89 }
90 template <typename RunIdT = Aws::String>
91 StartRunRequest& WithRunId(RunIdT&& value) {
92 SetRunId(std::forward<RunIdT>(value));
93 return *this;
94 }
96
98
107 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
108 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
109 template <typename RoleArnT = Aws::String>
110 void SetRoleArn(RoleArnT&& value) {
111 m_roleArnHasBeenSet = true;
112 m_roleArn = std::forward<RoleArnT>(value);
113 }
114 template <typename RoleArnT = Aws::String>
115 StartRunRequest& WithRoleArn(RoleArnT&& value) {
116 SetRoleArn(std::forward<RoleArnT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetName() const { return m_name; }
127 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 template <typename NameT = Aws::String>
129 void SetName(NameT&& value) {
130 m_nameHasBeenSet = true;
131 m_name = std::forward<NameT>(value);
132 }
133 template <typename NameT = Aws::String>
134 StartRunRequest& WithName(NameT&& value) {
135 SetName(std::forward<NameT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetCacheId() const { return m_cacheId; }
146 inline bool CacheIdHasBeenSet() const { return m_cacheIdHasBeenSet; }
147 template <typename CacheIdT = Aws::String>
148 void SetCacheId(CacheIdT&& value) {
149 m_cacheIdHasBeenSet = true;
150 m_cacheId = std::forward<CacheIdT>(value);
151 }
152 template <typename CacheIdT = Aws::String>
153 StartRunRequest& WithCacheId(CacheIdT&& value) {
154 SetCacheId(std::forward<CacheIdT>(value));
155 return *this;
156 }
158
160
167 inline CacheBehavior GetCacheBehavior() const { return m_cacheBehavior; }
168 inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; }
169 inline void SetCacheBehavior(CacheBehavior value) {
170 m_cacheBehaviorHasBeenSet = true;
171 m_cacheBehavior = value;
172 }
174 SetCacheBehavior(value);
175 return *this;
176 }
178
180
184 inline const Aws::String& GetRunGroupId() const { return m_runGroupId; }
185 inline bool RunGroupIdHasBeenSet() const { return m_runGroupIdHasBeenSet; }
186 template <typename RunGroupIdT = Aws::String>
187 void SetRunGroupId(RunGroupIdT&& value) {
188 m_runGroupIdHasBeenSet = true;
189 m_runGroupId = std::forward<RunGroupIdT>(value);
190 }
191 template <typename RunGroupIdT = Aws::String>
192 StartRunRequest& WithRunGroupId(RunGroupIdT&& value) {
193 SetRunGroupId(std::forward<RunGroupIdT>(value));
194 return *this;
195 }
197
199
209 inline int GetPriority() const { return m_priority; }
210 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
211 inline void SetPriority(int value) {
212 m_priorityHasBeenSet = true;
213 m_priority = value;
214 }
215 inline StartRunRequest& WithPriority(int value) {
216 SetPriority(value);
217 return *this;
218 }
220
222
230 inline Aws::Utils::DocumentView GetParameters() const { return m_parameters; }
231 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
232 template <typename ParametersT = Aws::Utils::Document>
233 void SetParameters(ParametersT&& value) {
234 m_parametersHasBeenSet = true;
235 m_parameters = std::forward<ParametersT>(value);
236 }
237 template <typename ParametersT = Aws::Utils::Document>
238 StartRunRequest& WithParameters(ParametersT&& value) {
239 SetParameters(std::forward<ParametersT>(value));
240 return *this;
241 }
243
245
254 inline int GetStorageCapacity() const { return m_storageCapacity; }
255 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
256 inline void SetStorageCapacity(int value) {
257 m_storageCapacityHasBeenSet = true;
258 m_storageCapacity = value;
259 }
261 SetStorageCapacity(value);
262 return *this;
263 }
265
267
271 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
272 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
273 template <typename OutputUriT = Aws::String>
274 void SetOutputUri(OutputUriT&& value) {
275 m_outputUriHasBeenSet = true;
276 m_outputUri = std::forward<OutputUriT>(value);
277 }
278 template <typename OutputUriT = Aws::String>
279 StartRunRequest& WithOutputUri(OutputUriT&& value) {
280 SetOutputUri(std::forward<OutputUriT>(value));
281 return *this;
282 }
284
286
289 inline RunLogLevel GetLogLevel() const { return m_logLevel; }
290 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
291 inline void SetLogLevel(RunLogLevel value) {
292 m_logLevelHasBeenSet = true;
293 m_logLevel = value;
294 }
296 SetLogLevel(value);
297 return *this;
298 }
300
302
307 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
308 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
309 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
310 void SetTags(TagsT&& value) {
311 m_tagsHasBeenSet = true;
312 m_tags = std::forward<TagsT>(value);
313 }
314 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
315 StartRunRequest& WithTags(TagsT&& value) {
316 SetTags(std::forward<TagsT>(value));
317 return *this;
318 }
319 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
320 StartRunRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
321 m_tagsHasBeenSet = true;
322 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
323 return *this;
324 }
326
328
332 inline const Aws::String& GetRequestId() const { return m_requestId; }
333 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
334 template <typename RequestIdT = Aws::String>
335 void SetRequestId(RequestIdT&& value) {
336 m_requestIdHasBeenSet = true;
337 m_requestId = std::forward<RequestIdT>(value);
338 }
339 template <typename RequestIdT = Aws::String>
340 StartRunRequest& WithRequestId(RequestIdT&& value) {
341 SetRequestId(std::forward<RequestIdT>(value));
342 return *this;
343 }
345
347
361 inline RunRetentionMode GetRetentionMode() const { return m_retentionMode; }
362 inline bool RetentionModeHasBeenSet() const { return m_retentionModeHasBeenSet; }
364 m_retentionModeHasBeenSet = true;
365 m_retentionMode = value;
366 }
368 SetRetentionMode(value);
369 return *this;
370 }
372
374
384 inline StorageType GetStorageType() const { return m_storageType; }
385 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
386 inline void SetStorageType(StorageType value) {
387 m_storageTypeHasBeenSet = true;
388 m_storageType = value;
389 }
391 SetStorageType(value);
392 return *this;
393 }
395
397
403 inline const Aws::String& GetWorkflowOwnerId() const { return m_workflowOwnerId; }
404 inline bool WorkflowOwnerIdHasBeenSet() const { return m_workflowOwnerIdHasBeenSet; }
405 template <typename WorkflowOwnerIdT = Aws::String>
406 void SetWorkflowOwnerId(WorkflowOwnerIdT&& value) {
407 m_workflowOwnerIdHasBeenSet = true;
408 m_workflowOwnerId = std::forward<WorkflowOwnerIdT>(value);
409 }
410 template <typename WorkflowOwnerIdT = Aws::String>
411 StartRunRequest& WithWorkflowOwnerId(WorkflowOwnerIdT&& value) {
412 SetWorkflowOwnerId(std::forward<WorkflowOwnerIdT>(value));
413 return *this;
414 }
416
418
425 inline const Aws::String& GetWorkflowVersionName() const { return m_workflowVersionName; }
426 inline bool WorkflowVersionNameHasBeenSet() const { return m_workflowVersionNameHasBeenSet; }
427 template <typename WorkflowVersionNameT = Aws::String>
428 void SetWorkflowVersionName(WorkflowVersionNameT&& value) {
429 m_workflowVersionNameHasBeenSet = true;
430 m_workflowVersionName = std::forward<WorkflowVersionNameT>(value);
431 }
432 template <typename WorkflowVersionNameT = Aws::String>
433 StartRunRequest& WithWorkflowVersionName(WorkflowVersionNameT&& value) {
434 SetWorkflowVersionName(std::forward<WorkflowVersionNameT>(value));
435 return *this;
436 }
438
440
444 inline NetworkingMode GetNetworkingMode() const { return m_networkingMode; }
445 inline bool NetworkingModeHasBeenSet() const { return m_networkingModeHasBeenSet; }
447 m_networkingModeHasBeenSet = true;
448 m_networkingMode = value;
449 }
451 SetNetworkingMode(value);
452 return *this;
453 }
455
457
463 inline ScratchStorageMode GetScratchStorageMode() const { return m_scratchStorageMode; }
464 inline bool ScratchStorageModeHasBeenSet() const { return m_scratchStorageModeHasBeenSet; }
466 m_scratchStorageModeHasBeenSet = true;
467 m_scratchStorageMode = value;
468 }
471 return *this;
472 }
474
476
479 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
480 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
481 template <typename ConfigurationNameT = Aws::String>
482 void SetConfigurationName(ConfigurationNameT&& value) {
483 m_configurationNameHasBeenSet = true;
484 m_configurationName = std::forward<ConfigurationNameT>(value);
485 }
486 template <typename ConfigurationNameT = Aws::String>
487 StartRunRequest& WithConfigurationName(ConfigurationNameT&& value) {
488 SetConfigurationName(std::forward<ConfigurationNameT>(value));
489 return *this;
490 }
492
494
498 inline const Aws::String& GetSessionPolicy() const { return m_sessionPolicy; }
499 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
500 template <typename SessionPolicyT = Aws::String>
501 void SetSessionPolicy(SessionPolicyT&& value) {
502 m_sessionPolicyHasBeenSet = true;
503 m_sessionPolicy = std::forward<SessionPolicyT>(value);
504 }
505 template <typename SessionPolicyT = Aws::String>
506 StartRunRequest& WithSessionPolicy(SessionPolicyT&& value) {
507 SetSessionPolicy(std::forward<SessionPolicyT>(value));
508 return *this;
509 }
511
513
518 inline Aws::Utils::DocumentView GetEngineSettings() const { return m_engineSettings; }
519 inline bool EngineSettingsHasBeenSet() const { return m_engineSettingsHasBeenSet; }
520 template <typename EngineSettingsT = Aws::Utils::Document>
521 void SetEngineSettings(EngineSettingsT&& value) {
522 m_engineSettingsHasBeenSet = true;
523 m_engineSettings = std::forward<EngineSettingsT>(value);
524 }
525 template <typename EngineSettingsT = Aws::Utils::Document>
526 StartRunRequest& WithEngineSettings(EngineSettingsT&& value) {
527 SetEngineSettings(std::forward<EngineSettingsT>(value));
528 return *this;
529 }
531
533
538 inline RunOutputUriPrefixMode GetOutputUriPrefixMode() const { return m_outputUriPrefixMode; }
539 inline bool OutputUriPrefixModeHasBeenSet() const { return m_outputUriPrefixModeHasBeenSet; }
541 m_outputUriPrefixModeHasBeenSet = true;
542 m_outputUriPrefixMode = value;
543 }
546 return *this;
547 }
549
551
557 inline bool GetRequesterPaysEnabled() const { return m_requesterPaysEnabled; }
558 inline bool RequesterPaysEnabledHasBeenSet() const { return m_requesterPaysEnabledHasBeenSet; }
559 inline void SetRequesterPaysEnabled(bool value) {
560 m_requesterPaysEnabledHasBeenSet = true;
561 m_requesterPaysEnabled = value;
562 }
565 return *this;
566 }
568
570
585 inline const Aws::String& GetParametersUri() const { return m_parametersUri; }
586 inline bool ParametersUriHasBeenSet() const { return m_parametersUriHasBeenSet; }
587 template <typename ParametersUriT = Aws::String>
588 void SetParametersUri(ParametersUriT&& value) {
589 m_parametersUriHasBeenSet = true;
590 m_parametersUri = std::forward<ParametersUriT>(value);
591 }
592 template <typename ParametersUriT = Aws::String>
593 StartRunRequest& WithParametersUri(ParametersUriT&& value) {
594 SetParametersUri(std::forward<ParametersUriT>(value));
595 return *this;
596 }
598 private:
599 Aws::String m_workflowId;
600
601 WorkflowType m_workflowType{WorkflowType::NOT_SET};
602
603 Aws::String m_runId;
604
605 Aws::String m_roleArn;
606
607 Aws::String m_name;
608
609 Aws::String m_cacheId;
610
611 CacheBehavior m_cacheBehavior{CacheBehavior::NOT_SET};
612
613 Aws::String m_runGroupId;
614
615 int m_priority{0};
616
617 Aws::Utils::Document m_parameters;
618
619 int m_storageCapacity{0};
620
621 Aws::String m_outputUri;
622
624
626
628
630
631 StorageType m_storageType{StorageType::NOT_SET};
632
633 Aws::String m_workflowOwnerId;
634
635 Aws::String m_workflowVersionName;
636
637 NetworkingMode m_networkingMode{NetworkingMode::NOT_SET};
638
640
641 Aws::String m_configurationName;
642
643 Aws::String m_sessionPolicy;
644
645 Aws::Utils::Document m_engineSettings;
646
648
649 bool m_requesterPaysEnabled{false};
650
651 Aws::String m_parametersUri;
652 bool m_workflowIdHasBeenSet = false;
653 bool m_workflowTypeHasBeenSet = false;
654 bool m_runIdHasBeenSet = false;
655 bool m_roleArnHasBeenSet = false;
656 bool m_nameHasBeenSet = false;
657 bool m_cacheIdHasBeenSet = false;
658 bool m_cacheBehaviorHasBeenSet = false;
659 bool m_runGroupIdHasBeenSet = false;
660 bool m_priorityHasBeenSet = false;
661 bool m_parametersHasBeenSet = false;
662 bool m_storageCapacityHasBeenSet = false;
663 bool m_outputUriHasBeenSet = false;
664 bool m_logLevelHasBeenSet = false;
665 bool m_tagsHasBeenSet = false;
666 bool m_requestIdHasBeenSet = true;
667 bool m_retentionModeHasBeenSet = false;
668 bool m_storageTypeHasBeenSet = false;
669 bool m_workflowOwnerIdHasBeenSet = false;
670 bool m_workflowVersionNameHasBeenSet = false;
671 bool m_networkingModeHasBeenSet = false;
672 bool m_scratchStorageModeHasBeenSet = false;
673 bool m_configurationNameHasBeenSet = false;
674 bool m_sessionPolicyHasBeenSet = false;
675 bool m_engineSettingsHasBeenSet = false;
676 bool m_outputUriPrefixModeHasBeenSet = false;
677 bool m_requesterPaysEnabledHasBeenSet = false;
678 bool m_parametersUriHasBeenSet = false;
679};
680
681} // namespace Model
682} // namespace Omics
683} // namespace Aws
const Aws::String & GetParametersUri() const
void SetScratchStorageMode(ScratchStorageMode value)
const Aws::String & GetConfigurationName() const
Aws::Utils::DocumentView GetParameters() const
RunOutputUriPrefixMode GetOutputUriPrefixMode() 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)
void SetEngineSettings(EngineSettingsT &&value)
const Aws::String & GetWorkflowVersionName() const
StartRunRequest & WithParametersUri(ParametersUriT &&value)
void SetWorkflowType(WorkflowType value)
StartRunRequest & WithNetworkingMode(NetworkingMode value)
void SetWorkflowOwnerId(WorkflowOwnerIdT &&value)
void SetNetworkingMode(NetworkingMode value)
StartRunRequest & WithSessionPolicy(SessionPolicyT &&value)
StartRunRequest & WithWorkflowId(WorkflowIdT &&value)
const Aws::String & GetRunId() const
void SetRequestId(RequestIdT &&value)
Aws::Utils::DocumentView GetEngineSettings() const
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
ScratchStorageMode GetScratchStorageMode() const
const Aws::String & GetSessionPolicy() const
StartRunRequest & WithRoleArn(RoleArnT &&value)
const Aws::String & GetWorkflowId() const
StartRunRequest & WithRequesterPaysEnabled(bool value)
StartRunRequest & WithRunId(RunIdT &&value)
StartRunRequest & WithOutputUriPrefixMode(RunOutputUriPrefixMode value)
void SetConfigurationName(ConfigurationNameT &&value)
void SetRunGroupId(RunGroupIdT &&value)
void SetSessionPolicy(SessionPolicyT &&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
StartRunRequest & WithEngineSettings(EngineSettingsT &&value)
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)
void SetOutputUriPrefixMode(RunOutputUriPrefixMode value)
void SetParametersUri(ParametersUriT &&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)
StartRunRequest & WithScratchStorageMode(ScratchStorageMode 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