AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateWorkflowVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.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/Accelerators.h>
14#include <aws/omics/model/ContainerRegistryMap.h>
15#include <aws/omics/model/DefinitionRepository.h>
16#include <aws/omics/model/StorageType.h>
17#include <aws/omics/model/WorkflowEngine.h>
18#include <aws/omics/model/WorkflowParameter.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Omics {
24namespace Model {
25
29 public:
30 AWS_OMICS_API CreateWorkflowVersionRequest() = 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 "CreateWorkflowVersion"; }
37
38 AWS_OMICS_API Aws::String SerializePayload() const override;
39
41
45 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
46 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
47 template <typename WorkflowIdT = Aws::String>
48 void SetWorkflowId(WorkflowIdT&& value) {
49 m_workflowIdHasBeenSet = true;
50 m_workflowId = std::forward<WorkflowIdT>(value);
51 }
52 template <typename WorkflowIdT = Aws::String>
54 SetWorkflowId(std::forward<WorkflowIdT>(value));
55 return *this;
56 }
58
60
69 inline const Aws::String& GetVersionName() const { return m_versionName; }
70 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
71 template <typename VersionNameT = Aws::String>
72 void SetVersionName(VersionNameT&& value) {
73 m_versionNameHasBeenSet = true;
74 m_versionName = std::forward<VersionNameT>(value);
75 }
76 template <typename VersionNameT = Aws::String>
78 SetVersionName(std::forward<VersionNameT>(value));
79 return *this;
80 }
82
84
91 inline const Aws::Utils::ByteBuffer& GetDefinitionZip() const { return m_definitionZip; }
92 inline bool DefinitionZipHasBeenSet() const { return m_definitionZipHasBeenSet; }
93 template <typename DefinitionZipT = Aws::Utils::ByteBuffer>
94 void SetDefinitionZip(DefinitionZipT&& value) {
95 m_definitionZipHasBeenSet = true;
96 m_definitionZip = std::forward<DefinitionZipT>(value);
97 }
98 template <typename DefinitionZipT = Aws::Utils::ByteBuffer>
100 SetDefinitionZip(std::forward<DefinitionZipT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetDefinitionUri() const { return m_definitionUri; }
111 inline bool DefinitionUriHasBeenSet() const { return m_definitionUriHasBeenSet; }
112 template <typename DefinitionUriT = Aws::String>
113 void SetDefinitionUri(DefinitionUriT&& value) {
114 m_definitionUriHasBeenSet = true;
115 m_definitionUri = std::forward<DefinitionUriT>(value);
116 }
117 template <typename DefinitionUriT = Aws::String>
119 SetDefinitionUri(std::forward<DefinitionUriT>(value));
120 return *this;
121 }
123
125
128 inline Accelerators GetAccelerators() const { return m_accelerators; }
129 inline bool AcceleratorsHasBeenSet() const { return m_acceleratorsHasBeenSet; }
130 inline void SetAccelerators(Accelerators value) {
131 m_acceleratorsHasBeenSet = true;
132 m_accelerators = value;
133 }
135 SetAccelerators(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetDescription() const { return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 template <typename DescriptionT = Aws::String>
147 void SetDescription(DescriptionT&& value) {
148 m_descriptionHasBeenSet = true;
149 m_description = std::forward<DescriptionT>(value);
150 }
151 template <typename DescriptionT = Aws::String>
153 SetDescription(std::forward<DescriptionT>(value));
154 return *this;
155 }
157
159
165 inline WorkflowEngine GetEngine() const { return m_engine; }
166 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
167 inline void SetEngine(WorkflowEngine value) {
168 m_engineHasBeenSet = true;
169 m_engine = value;
170 }
172 SetEngine(value);
173 return *this;
174 }
176
178
184 inline const Aws::String& GetMain() const { return m_main; }
185 inline bool MainHasBeenSet() const { return m_mainHasBeenSet; }
186 template <typename MainT = Aws::String>
187 void SetMain(MainT&& value) {
188 m_mainHasBeenSet = true;
189 m_main = std::forward<MainT>(value);
190 }
191 template <typename MainT = Aws::String>
193 SetMain(std::forward<MainT>(value));
194 return *this;
195 }
197
199
208 inline const Aws::Map<Aws::String, WorkflowParameter>& GetParameterTemplate() const { return m_parameterTemplate; }
209 inline bool ParameterTemplateHasBeenSet() const { return m_parameterTemplateHasBeenSet; }
210 template <typename ParameterTemplateT = Aws::Map<Aws::String, WorkflowParameter>>
211 void SetParameterTemplate(ParameterTemplateT&& value) {
212 m_parameterTemplateHasBeenSet = true;
213 m_parameterTemplate = std::forward<ParameterTemplateT>(value);
214 }
215 template <typename ParameterTemplateT = Aws::Map<Aws::String, WorkflowParameter>>
217 SetParameterTemplate(std::forward<ParameterTemplateT>(value));
218 return *this;
219 }
220 template <typename ParameterTemplateKeyT = Aws::String, typename ParameterTemplateValueT = WorkflowParameter>
221 CreateWorkflowVersionRequest& AddParameterTemplate(ParameterTemplateKeyT&& key, ParameterTemplateValueT&& value) {
222 m_parameterTemplateHasBeenSet = true;
223 m_parameterTemplate.emplace(std::forward<ParameterTemplateKeyT>(key), std::forward<ParameterTemplateValueT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::String& GetRequestId() const { return m_requestId; }
234 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
235 template <typename RequestIdT = Aws::String>
236 void SetRequestId(RequestIdT&& value) {
237 m_requestIdHasBeenSet = true;
238 m_requestId = std::forward<RequestIdT>(value);
239 }
240 template <typename RequestIdT = Aws::String>
242 SetRequestId(std::forward<RequestIdT>(value));
243 return *this;
244 }
246
248
257 inline StorageType GetStorageType() const { return m_storageType; }
258 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
259 inline void SetStorageType(StorageType value) {
260 m_storageTypeHasBeenSet = true;
261 m_storageType = value;
262 }
264 SetStorageType(value);
265 return *this;
266 }
268
270
276 inline int GetStorageCapacity() const { return m_storageCapacity; }
277 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
278 inline void SetStorageCapacity(int value) {
279 m_storageCapacityHasBeenSet = true;
280 m_storageCapacity = value;
281 }
283 SetStorageCapacity(value);
284 return *this;
285 }
287
289
295 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
296 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
297 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
298 void SetTags(TagsT&& value) {
299 m_tagsHasBeenSet = true;
300 m_tags = std::forward<TagsT>(value);
301 }
302 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
304 SetTags(std::forward<TagsT>(value));
305 return *this;
306 }
307 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
308 CreateWorkflowVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
309 m_tagsHasBeenSet = true;
310 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
311 return *this;
312 }
314
316
321 inline const Aws::String& GetWorkflowBucketOwnerId() const { return m_workflowBucketOwnerId; }
322 inline bool WorkflowBucketOwnerIdHasBeenSet() const { return m_workflowBucketOwnerIdHasBeenSet; }
323 template <typename WorkflowBucketOwnerIdT = Aws::String>
324 void SetWorkflowBucketOwnerId(WorkflowBucketOwnerIdT&& value) {
325 m_workflowBucketOwnerIdHasBeenSet = true;
326 m_workflowBucketOwnerId = std::forward<WorkflowBucketOwnerIdT>(value);
327 }
328 template <typename WorkflowBucketOwnerIdT = Aws::String>
330 SetWorkflowBucketOwnerId(std::forward<WorkflowBucketOwnerIdT>(value));
331 return *this;
332 }
334
336
343 inline const ContainerRegistryMap& GetContainerRegistryMap() const { return m_containerRegistryMap; }
344 inline bool ContainerRegistryMapHasBeenSet() const { return m_containerRegistryMapHasBeenSet; }
345 template <typename ContainerRegistryMapT = ContainerRegistryMap>
346 void SetContainerRegistryMap(ContainerRegistryMapT&& value) {
347 m_containerRegistryMapHasBeenSet = true;
348 m_containerRegistryMap = std::forward<ContainerRegistryMapT>(value);
349 }
350 template <typename ContainerRegistryMapT = ContainerRegistryMap>
352 SetContainerRegistryMap(std::forward<ContainerRegistryMapT>(value));
353 return *this;
354 }
356
358
361 inline const Aws::String& GetContainerRegistryMapUri() const { return m_containerRegistryMapUri; }
362 inline bool ContainerRegistryMapUriHasBeenSet() const { return m_containerRegistryMapUriHasBeenSet; }
363 template <typename ContainerRegistryMapUriT = Aws::String>
364 void SetContainerRegistryMapUri(ContainerRegistryMapUriT&& value) {
365 m_containerRegistryMapUriHasBeenSet = true;
366 m_containerRegistryMapUri = std::forward<ContainerRegistryMapUriT>(value);
367 }
368 template <typename ContainerRegistryMapUriT = Aws::String>
370 SetContainerRegistryMapUri(std::forward<ContainerRegistryMapUriT>(value));
371 return *this;
372 }
374
376
381 inline const Aws::String& GetReadmeMarkdown() const { return m_readmeMarkdown; }
382 inline bool ReadmeMarkdownHasBeenSet() const { return m_readmeMarkdownHasBeenSet; }
383 template <typename ReadmeMarkdownT = Aws::String>
384 void SetReadmeMarkdown(ReadmeMarkdownT&& value) {
385 m_readmeMarkdownHasBeenSet = true;
386 m_readmeMarkdown = std::forward<ReadmeMarkdownT>(value);
387 }
388 template <typename ReadmeMarkdownT = Aws::String>
390 SetReadmeMarkdown(std::forward<ReadmeMarkdownT>(value));
391 return *this;
392 }
394
396
402 inline const Aws::String& GetParameterTemplatePath() const { return m_parameterTemplatePath; }
403 inline bool ParameterTemplatePathHasBeenSet() const { return m_parameterTemplatePathHasBeenSet; }
404 template <typename ParameterTemplatePathT = Aws::String>
405 void SetParameterTemplatePath(ParameterTemplatePathT&& value) {
406 m_parameterTemplatePathHasBeenSet = true;
407 m_parameterTemplatePath = std::forward<ParameterTemplatePathT>(value);
408 }
409 template <typename ParameterTemplatePathT = Aws::String>
411 SetParameterTemplatePath(std::forward<ParameterTemplatePathT>(value));
412 return *this;
413 }
415
417
423 inline const Aws::String& GetReadmePath() const { return m_readmePath; }
424 inline bool ReadmePathHasBeenSet() const { return m_readmePathHasBeenSet; }
425 template <typename ReadmePathT = Aws::String>
426 void SetReadmePath(ReadmePathT&& value) {
427 m_readmePathHasBeenSet = true;
428 m_readmePath = std::forward<ReadmePathT>(value);
429 }
430 template <typename ReadmePathT = Aws::String>
432 SetReadmePath(std::forward<ReadmePathT>(value));
433 return *this;
434 }
436
438
443 inline const DefinitionRepository& GetDefinitionRepository() const { return m_definitionRepository; }
444 inline bool DefinitionRepositoryHasBeenSet() const { return m_definitionRepositoryHasBeenSet; }
445 template <typename DefinitionRepositoryT = DefinitionRepository>
446 void SetDefinitionRepository(DefinitionRepositoryT&& value) {
447 m_definitionRepositoryHasBeenSet = true;
448 m_definitionRepository = std::forward<DefinitionRepositoryT>(value);
449 }
450 template <typename DefinitionRepositoryT = DefinitionRepository>
452 SetDefinitionRepository(std::forward<DefinitionRepositoryT>(value));
453 return *this;
454 }
456
458
466 inline const Aws::String& GetReadmeUri() const { return m_readmeUri; }
467 inline bool ReadmeUriHasBeenSet() const { return m_readmeUriHasBeenSet; }
468 template <typename ReadmeUriT = Aws::String>
469 void SetReadmeUri(ReadmeUriT&& value) {
470 m_readmeUriHasBeenSet = true;
471 m_readmeUri = std::forward<ReadmeUriT>(value);
472 }
473 template <typename ReadmeUriT = Aws::String>
475 SetReadmeUri(std::forward<ReadmeUriT>(value));
476 return *this;
477 }
479 private:
480 Aws::String m_workflowId;
481
482 Aws::String m_versionName;
483
484 Aws::Utils::ByteBuffer m_definitionZip{};
485
486 Aws::String m_definitionUri;
487
488 Accelerators m_accelerators{Accelerators::NOT_SET};
489
490 Aws::String m_description;
491
493
494 Aws::String m_main;
495
497
499
500 StorageType m_storageType{StorageType::NOT_SET};
501
502 int m_storageCapacity{0};
503
505
506 Aws::String m_workflowBucketOwnerId;
507
508 ContainerRegistryMap m_containerRegistryMap;
509
510 Aws::String m_containerRegistryMapUri;
511
512 Aws::String m_readmeMarkdown;
513
514 Aws::String m_parameterTemplatePath;
515
516 Aws::String m_readmePath;
517
518 DefinitionRepository m_definitionRepository;
519
520 Aws::String m_readmeUri;
521 bool m_workflowIdHasBeenSet = false;
522 bool m_versionNameHasBeenSet = false;
523 bool m_definitionZipHasBeenSet = false;
524 bool m_definitionUriHasBeenSet = false;
525 bool m_acceleratorsHasBeenSet = false;
526 bool m_descriptionHasBeenSet = false;
527 bool m_engineHasBeenSet = false;
528 bool m_mainHasBeenSet = false;
529 bool m_parameterTemplateHasBeenSet = false;
530 bool m_requestIdHasBeenSet = true;
531 bool m_storageTypeHasBeenSet = false;
532 bool m_storageCapacityHasBeenSet = false;
533 bool m_tagsHasBeenSet = false;
534 bool m_workflowBucketOwnerIdHasBeenSet = false;
535 bool m_containerRegistryMapHasBeenSet = false;
536 bool m_containerRegistryMapUriHasBeenSet = false;
537 bool m_readmeMarkdownHasBeenSet = false;
538 bool m_parameterTemplatePathHasBeenSet = false;
539 bool m_readmePathHasBeenSet = false;
540 bool m_definitionRepositoryHasBeenSet = false;
541 bool m_readmeUriHasBeenSet = false;
542};
543
544} // namespace Model
545} // namespace Omics
546} // namespace Aws
CreateWorkflowVersionRequest & WithMain(MainT &&value)
CreateWorkflowVersionRequest & WithParameterTemplate(ParameterTemplateT &&value)
CreateWorkflowVersionRequest & WithDefinitionZip(DefinitionZipT &&value)
CreateWorkflowVersionRequest & WithWorkflowBucketOwnerId(WorkflowBucketOwnerIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkflowVersionRequest & WithStorageCapacity(int value)
const DefinitionRepository & GetDefinitionRepository() const
CreateWorkflowVersionRequest & WithAccelerators(Accelerators value)
CreateWorkflowVersionRequest & WithWorkflowId(WorkflowIdT &&value)
CreateWorkflowVersionRequest & WithReadmeMarkdown(ReadmeMarkdownT &&value)
CreateWorkflowVersionRequest & WithDefinitionUri(DefinitionUriT &&value)
AWS_OMICS_API CreateWorkflowVersionRequest()=default
void SetContainerRegistryMapUri(ContainerRegistryMapUriT &&value)
const Aws::Map< Aws::String, WorkflowParameter > & GetParameterTemplate() const
const ContainerRegistryMap & GetContainerRegistryMap() const
CreateWorkflowVersionRequest & WithDefinitionRepository(DefinitionRepositoryT &&value)
CreateWorkflowVersionRequest & WithRequestId(RequestIdT &&value)
AWS_OMICS_API Aws::String SerializePayload() const override
CreateWorkflowVersionRequest & WithContainerRegistryMapUri(ContainerRegistryMapUriT &&value)
CreateWorkflowVersionRequest & WithReadmePath(ReadmePathT &&value)
CreateWorkflowVersionRequest & WithReadmeUri(ReadmeUriT &&value)
void SetParameterTemplatePath(ParameterTemplatePathT &&value)
CreateWorkflowVersionRequest & AddParameterTemplate(ParameterTemplateKeyT &&key, ParameterTemplateValueT &&value)
CreateWorkflowVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorkflowVersionRequest & WithVersionName(VersionNameT &&value)
CreateWorkflowVersionRequest & WithParameterTemplatePath(ParameterTemplatePathT &&value)
const Aws::Utils::ByteBuffer & GetDefinitionZip() const
CreateWorkflowVersionRequest & WithEngine(WorkflowEngine value)
CreateWorkflowVersionRequest & WithContainerRegistryMap(ContainerRegistryMapT &&value)
CreateWorkflowVersionRequest & WithTags(TagsT &&value)
CreateWorkflowVersionRequest & WithDescription(DescriptionT &&value)
CreateWorkflowVersionRequest & WithStorageType(StorageType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetWorkflowBucketOwnerId(WorkflowBucketOwnerIdT &&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