AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWorkflowVersionRequest.h
1
6#pragma once
7#include <aws/omics/Omics_EXPORTS.h>
8#include <aws/omics/OmicsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/omics/model/Accelerators.h>
12#include <aws/omics/model/WorkflowEngine.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/omics/model/StorageType.h>
15#include <aws/omics/model/WorkflowParameter.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Omics
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_OMICS_API CreateWorkflowVersionRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkflowVersion"; }
38
39 AWS_OMICS_API Aws::String SerializePayload() const override;
40
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) { m_workflowIdHasBeenSet = true; m_workflowId = std::forward<WorkflowIdT>(value); }
50 template<typename WorkflowIdT = Aws::String>
51 CreateWorkflowVersionRequest& WithWorkflowId(WorkflowIdT&& value) { SetWorkflowId(std::forward<WorkflowIdT>(value)); return *this;}
53
55
64 inline const Aws::String& GetVersionName() const { return m_versionName; }
65 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
66 template<typename VersionNameT = Aws::String>
67 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
68 template<typename VersionNameT = Aws::String>
69 CreateWorkflowVersionRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
71
73
77 inline const Aws::Utils::ByteBuffer& GetDefinitionZip() const { return m_definitionZip; }
78 inline bool DefinitionZipHasBeenSet() const { return m_definitionZipHasBeenSet; }
79 template<typename DefinitionZipT = Aws::Utils::ByteBuffer>
80 void SetDefinitionZip(DefinitionZipT&& value) { m_definitionZipHasBeenSet = true; m_definitionZip = std::forward<DefinitionZipT>(value); }
81 template<typename DefinitionZipT = Aws::Utils::ByteBuffer>
82 CreateWorkflowVersionRequest& WithDefinitionZip(DefinitionZipT&& value) { SetDefinitionZip(std::forward<DefinitionZipT>(value)); return *this;}
84
86
90 inline const Aws::String& GetDefinitionUri() const { return m_definitionUri; }
91 inline bool DefinitionUriHasBeenSet() const { return m_definitionUriHasBeenSet; }
92 template<typename DefinitionUriT = Aws::String>
93 void SetDefinitionUri(DefinitionUriT&& value) { m_definitionUriHasBeenSet = true; m_definitionUri = std::forward<DefinitionUriT>(value); }
94 template<typename DefinitionUriT = Aws::String>
95 CreateWorkflowVersionRequest& WithDefinitionUri(DefinitionUriT&& value) { SetDefinitionUri(std::forward<DefinitionUriT>(value)); return *this;}
97
99
102 inline Accelerators GetAccelerators() const { return m_accelerators; }
103 inline bool AcceleratorsHasBeenSet() const { return m_acceleratorsHasBeenSet; }
104 inline void SetAccelerators(Accelerators value) { m_acceleratorsHasBeenSet = true; m_accelerators = value; }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template<typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
116 template<typename DescriptionT = Aws::String>
117 CreateWorkflowVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
119
121
124 inline WorkflowEngine GetEngine() const { return m_engine; }
125 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
126 inline void SetEngine(WorkflowEngine value) { m_engineHasBeenSet = true; m_engine = value; }
127 inline CreateWorkflowVersionRequest& WithEngine(WorkflowEngine value) { SetEngine(value); return *this;}
129
131
134 inline const Aws::String& GetMain() const { return m_main; }
135 inline bool MainHasBeenSet() const { return m_mainHasBeenSet; }
136 template<typename MainT = Aws::String>
137 void SetMain(MainT&& value) { m_mainHasBeenSet = true; m_main = std::forward<MainT>(value); }
138 template<typename MainT = Aws::String>
139 CreateWorkflowVersionRequest& WithMain(MainT&& value) { SetMain(std::forward<MainT>(value)); return *this;}
141
143
147 inline const Aws::Map<Aws::String, WorkflowParameter>& GetParameterTemplate() const { return m_parameterTemplate; }
148 inline bool ParameterTemplateHasBeenSet() const { return m_parameterTemplateHasBeenSet; }
149 template<typename ParameterTemplateT = Aws::Map<Aws::String, WorkflowParameter>>
150 void SetParameterTemplate(ParameterTemplateT&& value) { m_parameterTemplateHasBeenSet = true; m_parameterTemplate = std::forward<ParameterTemplateT>(value); }
151 template<typename ParameterTemplateT = Aws::Map<Aws::String, WorkflowParameter>>
152 CreateWorkflowVersionRequest& WithParameterTemplate(ParameterTemplateT&& value) { SetParameterTemplate(std::forward<ParameterTemplateT>(value)); return *this;}
153 template<typename ParameterTemplateKeyT = Aws::String, typename ParameterTemplateValueT = WorkflowParameter>
154 CreateWorkflowVersionRequest& AddParameterTemplate(ParameterTemplateKeyT&& key, ParameterTemplateValueT&& value) {
155 m_parameterTemplateHasBeenSet = true; m_parameterTemplate.emplace(std::forward<ParameterTemplateKeyT>(key), std::forward<ParameterTemplateValueT>(value)); return *this;
156 }
158
160
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
166 template<typename RequestIdT = Aws::String>
167 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
168 template<typename RequestIdT = Aws::String>
169 CreateWorkflowVersionRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
171
173
181 inline StorageType GetStorageType() const { return m_storageType; }
182 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
183 inline void SetStorageType(StorageType value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
186
188
192 inline int GetStorageCapacity() const { return m_storageCapacity; }
193 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
194 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
195 inline CreateWorkflowVersionRequest& WithStorageCapacity(int value) { SetStorageCapacity(value); return *this;}
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
206 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 CreateWorkflowVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
208 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 CreateWorkflowVersionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
211 }
213
215
220 inline const Aws::String& GetWorkflowBucketOwnerId() const { return m_workflowBucketOwnerId; }
221 inline bool WorkflowBucketOwnerIdHasBeenSet() const { return m_workflowBucketOwnerIdHasBeenSet; }
222 template<typename WorkflowBucketOwnerIdT = Aws::String>
223 void SetWorkflowBucketOwnerId(WorkflowBucketOwnerIdT&& value) { m_workflowBucketOwnerIdHasBeenSet = true; m_workflowBucketOwnerId = std::forward<WorkflowBucketOwnerIdT>(value); }
224 template<typename WorkflowBucketOwnerIdT = Aws::String>
225 CreateWorkflowVersionRequest& WithWorkflowBucketOwnerId(WorkflowBucketOwnerIdT&& value) { SetWorkflowBucketOwnerId(std::forward<WorkflowBucketOwnerIdT>(value)); return *this;}
227 private:
228
229 Aws::String m_workflowId;
230 bool m_workflowIdHasBeenSet = false;
231
232 Aws::String m_versionName;
233 bool m_versionNameHasBeenSet = false;
234
235 Aws::Utils::ByteBuffer m_definitionZip{};
236 bool m_definitionZipHasBeenSet = false;
237
238 Aws::String m_definitionUri;
239 bool m_definitionUriHasBeenSet = false;
240
241 Accelerators m_accelerators{Accelerators::NOT_SET};
242 bool m_acceleratorsHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
248 bool m_engineHasBeenSet = false;
249
250 Aws::String m_main;
251 bool m_mainHasBeenSet = false;
252
254 bool m_parameterTemplateHasBeenSet = false;
255
257 bool m_requestIdHasBeenSet = true;
258
259 StorageType m_storageType{StorageType::NOT_SET};
260 bool m_storageTypeHasBeenSet = false;
261
262 int m_storageCapacity{0};
263 bool m_storageCapacityHasBeenSet = false;
264
266 bool m_tagsHasBeenSet = false;
267
268 Aws::String m_workflowBucketOwnerId;
269 bool m_workflowBucketOwnerIdHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace Omics
274} // 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)
CreateWorkflowVersionRequest & WithAccelerators(Accelerators value)
CreateWorkflowVersionRequest & WithWorkflowId(WorkflowIdT &&value)
CreateWorkflowVersionRequest & WithDefinitionUri(DefinitionUriT &&value)
AWS_OMICS_API CreateWorkflowVersionRequest()=default
const Aws::Map< Aws::String, WorkflowParameter > & GetParameterTemplate() const
CreateWorkflowVersionRequest & WithRequestId(RequestIdT &&value)
AWS_OMICS_API Aws::String SerializePayload() const override
CreateWorkflowVersionRequest & AddParameterTemplate(ParameterTemplateKeyT &&key, ParameterTemplateValueT &&value)
CreateWorkflowVersionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorkflowVersionRequest & WithVersionName(VersionNameT &&value)
const Aws::Utils::ByteBuffer & GetDefinitionZip() const
CreateWorkflowVersionRequest & WithEngine(WorkflowEngine 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