AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
DefaultRunSetting.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/omics/Omics_EXPORTS.h>
11#include <aws/omics/model/CacheBehavior.h>
12#include <aws/omics/model/NetworkingMode.h>
13#include <aws/omics/model/RunLogLevel.h>
14#include <aws/omics/model/RunRetentionMode.h>
15#include <aws/omics/model/ScratchStorageMode.h>
16#include <aws/omics/model/StorageType.h>
17#include <aws/omics/model/WorkflowType.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Omics {
29namespace Model {
30
41 public:
42 AWS_OMICS_API DefaultRunSetting() = default;
45 AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
52 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
53 template <typename WorkflowIdT = Aws::String>
54 void SetWorkflowId(WorkflowIdT&& value) {
55 m_workflowIdHasBeenSet = true;
56 m_workflowId = std::forward<WorkflowIdT>(value);
57 }
58 template <typename WorkflowIdT = Aws::String>
59 DefaultRunSetting& WithWorkflowId(WorkflowIdT&& value) {
60 SetWorkflowId(std::forward<WorkflowIdT>(value));
61 return *this;
62 }
64
66
70 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
71 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
72 inline void SetWorkflowType(WorkflowType value) {
73 m_workflowTypeHasBeenSet = true;
74 m_workflowType = value;
75 }
77 SetWorkflowType(value);
78 return *this;
79 }
81
83
89 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
90 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
91 template <typename RoleArnT = Aws::String>
92 void SetRoleArn(RoleArnT&& value) {
93 m_roleArnHasBeenSet = true;
94 m_roleArn = std::forward<RoleArnT>(value);
95 }
96 template <typename RoleArnT = Aws::String>
97 DefaultRunSetting& WithRoleArn(RoleArnT&& value) {
98 SetRoleArn(std::forward<RoleArnT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::String& GetName() const { return m_name; }
109 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 template <typename NameT = Aws::String>
111 void SetName(NameT&& value) {
112 m_nameHasBeenSet = true;
113 m_name = std::forward<NameT>(value);
114 }
115 template <typename NameT = Aws::String>
116 DefaultRunSetting& WithName(NameT&& value) {
117 SetName(std::forward<NameT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetCacheId() const { return m_cacheId; }
127 inline bool CacheIdHasBeenSet() const { return m_cacheIdHasBeenSet; }
128 template <typename CacheIdT = Aws::String>
129 void SetCacheId(CacheIdT&& value) {
130 m_cacheIdHasBeenSet = true;
131 m_cacheId = std::forward<CacheIdT>(value);
132 }
133 template <typename CacheIdT = Aws::String>
134 DefaultRunSetting& WithCacheId(CacheIdT&& value) {
135 SetCacheId(std::forward<CacheIdT>(value));
136 return *this;
137 }
139
141
144 inline CacheBehavior GetCacheBehavior() const { return m_cacheBehavior; }
145 inline bool CacheBehaviorHasBeenSet() const { return m_cacheBehaviorHasBeenSet; }
146 inline void SetCacheBehavior(CacheBehavior value) {
147 m_cacheBehaviorHasBeenSet = true;
148 m_cacheBehavior = value;
149 }
151 SetCacheBehavior(value);
152 return *this;
153 }
155
157
160 inline const Aws::String& GetRunGroupId() const { return m_runGroupId; }
161 inline bool RunGroupIdHasBeenSet() const { return m_runGroupIdHasBeenSet; }
162 template <typename RunGroupIdT = Aws::String>
163 void SetRunGroupId(RunGroupIdT&& value) {
164 m_runGroupIdHasBeenSet = true;
165 m_runGroupId = std::forward<RunGroupIdT>(value);
166 }
167 template <typename RunGroupIdT = Aws::String>
168 DefaultRunSetting& WithRunGroupId(RunGroupIdT&& value) {
169 SetRunGroupId(std::forward<RunGroupIdT>(value));
170 return *this;
171 }
173
175
180 inline int GetPriority() const { return m_priority; }
181 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
182 inline void SetPriority(int value) {
183 m_priorityHasBeenSet = true;
184 m_priority = value;
185 }
186 inline DefaultRunSetting& WithPriority(int value) {
187 SetPriority(value);
188 return *this;
189 }
191
193
198 inline Aws::Utils::DocumentView GetParameters() const { return m_parameters; }
199 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
200 template <typename ParametersT = Aws::Utils::Document>
201 void SetParameters(ParametersT&& value) {
202 m_parametersHasBeenSet = true;
203 m_parameters = std::forward<ParametersT>(value);
204 }
205 template <typename ParametersT = Aws::Utils::Document>
206 DefaultRunSetting& WithParameters(ParametersT&& value) {
207 SetParameters(std::forward<ParametersT>(value));
208 return *this;
209 }
211
213
217 inline int GetStorageCapacity() const { return m_storageCapacity; }
218 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
219 inline void SetStorageCapacity(int value) {
220 m_storageCapacityHasBeenSet = true;
221 m_storageCapacity = value;
222 }
224 SetStorageCapacity(value);
225 return *this;
226 }
228
230
235 inline const Aws::String& GetOutputUri() const { return m_outputUri; }
236 inline bool OutputUriHasBeenSet() const { return m_outputUriHasBeenSet; }
237 template <typename OutputUriT = Aws::String>
238 void SetOutputUri(OutputUriT&& value) {
239 m_outputUriHasBeenSet = true;
240 m_outputUri = std::forward<OutputUriT>(value);
241 }
242 template <typename OutputUriT = Aws::String>
243 DefaultRunSetting& WithOutputUri(OutputUriT&& value) {
244 SetOutputUri(std::forward<OutputUriT>(value));
245 return *this;
246 }
248
250
253 inline RunLogLevel GetLogLevel() const { return m_logLevel; }
254 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
255 inline void SetLogLevel(RunLogLevel value) {
256 m_logLevelHasBeenSet = true;
257 m_logLevel = value;
258 }
260 SetLogLevel(value);
261 return *this;
262 }
264
266
271 inline const Aws::Map<Aws::String, Aws::String>& GetRunTags() const { return m_runTags; }
272 inline bool RunTagsHasBeenSet() const { return m_runTagsHasBeenSet; }
273 template <typename RunTagsT = Aws::Map<Aws::String, Aws::String>>
274 void SetRunTags(RunTagsT&& value) {
275 m_runTagsHasBeenSet = true;
276 m_runTags = std::forward<RunTagsT>(value);
277 }
278 template <typename RunTagsT = Aws::Map<Aws::String, Aws::String>>
279 DefaultRunSetting& WithRunTags(RunTagsT&& value) {
280 SetRunTags(std::forward<RunTagsT>(value));
281 return *this;
282 }
283 template <typename RunTagsKeyT = Aws::String, typename RunTagsValueT = Aws::String>
284 DefaultRunSetting& AddRunTags(RunTagsKeyT&& key, RunTagsValueT&& value) {
285 m_runTagsHasBeenSet = true;
286 m_runTags.emplace(std::forward<RunTagsKeyT>(key), std::forward<RunTagsValueT>(value));
287 return *this;
288 }
290
292
295 inline RunRetentionMode GetRetentionMode() const { return m_retentionMode; }
296 inline bool RetentionModeHasBeenSet() const { return m_retentionModeHasBeenSet; }
298 m_retentionModeHasBeenSet = true;
299 m_retentionMode = value;
300 }
302 SetRetentionMode(value);
303 return *this;
304 }
306
308
311 inline StorageType GetStorageType() const { return m_storageType; }
312 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
313 inline void SetStorageType(StorageType value) {
314 m_storageTypeHasBeenSet = true;
315 m_storageType = value;
316 }
318 SetStorageType(value);
319 return *this;
320 }
322
324
328 inline const Aws::String& GetWorkflowOwnerId() const { return m_workflowOwnerId; }
329 inline bool WorkflowOwnerIdHasBeenSet() const { return m_workflowOwnerIdHasBeenSet; }
330 template <typename WorkflowOwnerIdT = Aws::String>
331 void SetWorkflowOwnerId(WorkflowOwnerIdT&& value) {
332 m_workflowOwnerIdHasBeenSet = true;
333 m_workflowOwnerId = std::forward<WorkflowOwnerIdT>(value);
334 }
335 template <typename WorkflowOwnerIdT = Aws::String>
336 DefaultRunSetting& WithWorkflowOwnerId(WorkflowOwnerIdT&& value) {
337 SetWorkflowOwnerId(std::forward<WorkflowOwnerIdT>(value));
338 return *this;
339 }
341
343
347 inline const Aws::String& GetOutputBucketOwnerId() const { return m_outputBucketOwnerId; }
348 inline bool OutputBucketOwnerIdHasBeenSet() const { return m_outputBucketOwnerIdHasBeenSet; }
349 template <typename OutputBucketOwnerIdT = Aws::String>
350 void SetOutputBucketOwnerId(OutputBucketOwnerIdT&& value) {
351 m_outputBucketOwnerIdHasBeenSet = true;
352 m_outputBucketOwnerId = std::forward<OutputBucketOwnerIdT>(value);
353 }
354 template <typename OutputBucketOwnerIdT = Aws::String>
355 DefaultRunSetting& WithOutputBucketOwnerId(OutputBucketOwnerIdT&& value) {
356 SetOutputBucketOwnerId(std::forward<OutputBucketOwnerIdT>(value));
357 return *this;
358 }
360
362
365 inline const Aws::String& GetWorkflowVersionName() const { return m_workflowVersionName; }
366 inline bool WorkflowVersionNameHasBeenSet() const { return m_workflowVersionNameHasBeenSet; }
367 template <typename WorkflowVersionNameT = Aws::String>
368 void SetWorkflowVersionName(WorkflowVersionNameT&& value) {
369 m_workflowVersionNameHasBeenSet = true;
370 m_workflowVersionName = std::forward<WorkflowVersionNameT>(value);
371 }
372 template <typename WorkflowVersionNameT = Aws::String>
373 DefaultRunSetting& WithWorkflowVersionName(WorkflowVersionNameT&& value) {
374 SetWorkflowVersionName(std::forward<WorkflowVersionNameT>(value));
375 return *this;
376 }
378
380
384 inline NetworkingMode GetNetworkingMode() const { return m_networkingMode; }
385 inline bool NetworkingModeHasBeenSet() const { return m_networkingModeHasBeenSet; }
387 m_networkingModeHasBeenSet = true;
388 m_networkingMode = value;
389 }
391 SetNetworkingMode(value);
392 return *this;
393 }
395
397
400 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
401 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
402 template <typename ConfigurationNameT = Aws::String>
403 void SetConfigurationName(ConfigurationNameT&& value) {
404 m_configurationNameHasBeenSet = true;
405 m_configurationName = std::forward<ConfigurationNameT>(value);
406 }
407 template <typename ConfigurationNameT = Aws::String>
408 DefaultRunSetting& WithConfigurationName(ConfigurationNameT&& value) {
409 SetConfigurationName(std::forward<ConfigurationNameT>(value));
410 return *this;
411 }
413
415
419 inline const Aws::String& GetSessionPolicy() const { return m_sessionPolicy; }
420 inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; }
421 template <typename SessionPolicyT = Aws::String>
422 void SetSessionPolicy(SessionPolicyT&& value) {
423 m_sessionPolicyHasBeenSet = true;
424 m_sessionPolicy = std::forward<SessionPolicyT>(value);
425 }
426 template <typename SessionPolicyT = Aws::String>
427 DefaultRunSetting& WithSessionPolicy(SessionPolicyT&& value) {
428 SetSessionPolicy(std::forward<SessionPolicyT>(value));
429 return *this;
430 }
432
434
439 inline Aws::Utils::DocumentView GetEngineSettings() const { return m_engineSettings; }
440 inline bool EngineSettingsHasBeenSet() const { return m_engineSettingsHasBeenSet; }
441 template <typename EngineSettingsT = Aws::Utils::Document>
442 void SetEngineSettings(EngineSettingsT&& value) {
443 m_engineSettingsHasBeenSet = true;
444 m_engineSettings = std::forward<EngineSettingsT>(value);
445 }
446 template <typename EngineSettingsT = Aws::Utils::Document>
447 DefaultRunSetting& WithEngineSettings(EngineSettingsT&& value) {
448 SetEngineSettings(std::forward<EngineSettingsT>(value));
449 return *this;
450 }
452
454
460 inline ScratchStorageMode GetScratchStorageMode() const { return m_scratchStorageMode; }
461 inline bool ScratchStorageModeHasBeenSet() const { return m_scratchStorageModeHasBeenSet; }
463 m_scratchStorageModeHasBeenSet = true;
464 m_scratchStorageMode = value;
465 }
468 return *this;
469 }
471 private:
472 Aws::String m_workflowId;
473
474 WorkflowType m_workflowType{WorkflowType::NOT_SET};
475
476 Aws::String m_roleArn;
477
478 Aws::String m_name;
479
480 Aws::String m_cacheId;
481
482 CacheBehavior m_cacheBehavior{CacheBehavior::NOT_SET};
483
484 Aws::String m_runGroupId;
485
486 int m_priority{0};
487
488 Aws::Utils::Document m_parameters;
489
490 int m_storageCapacity{0};
491
492 Aws::String m_outputUri;
493
495
497
499
500 StorageType m_storageType{StorageType::NOT_SET};
501
502 Aws::String m_workflowOwnerId;
503
504 Aws::String m_outputBucketOwnerId;
505
506 Aws::String m_workflowVersionName;
507
508 NetworkingMode m_networkingMode{NetworkingMode::NOT_SET};
509
510 Aws::String m_configurationName;
511
512 Aws::String m_sessionPolicy;
513
514 Aws::Utils::Document m_engineSettings;
515
517 bool m_workflowIdHasBeenSet = false;
518 bool m_workflowTypeHasBeenSet = false;
519 bool m_roleArnHasBeenSet = false;
520 bool m_nameHasBeenSet = false;
521 bool m_cacheIdHasBeenSet = false;
522 bool m_cacheBehaviorHasBeenSet = false;
523 bool m_runGroupIdHasBeenSet = false;
524 bool m_priorityHasBeenSet = false;
525 bool m_parametersHasBeenSet = false;
526 bool m_storageCapacityHasBeenSet = false;
527 bool m_outputUriHasBeenSet = false;
528 bool m_logLevelHasBeenSet = false;
529 bool m_runTagsHasBeenSet = false;
530 bool m_retentionModeHasBeenSet = false;
531 bool m_storageTypeHasBeenSet = false;
532 bool m_workflowOwnerIdHasBeenSet = false;
533 bool m_outputBucketOwnerIdHasBeenSet = false;
534 bool m_workflowVersionNameHasBeenSet = false;
535 bool m_networkingModeHasBeenSet = false;
536 bool m_configurationNameHasBeenSet = false;
537 bool m_sessionPolicyHasBeenSet = false;
538 bool m_engineSettingsHasBeenSet = false;
539 bool m_scratchStorageModeHasBeenSet = false;
540};
541
542} // namespace Model
543} // namespace Omics
544} // namespace Aws
void SetWorkflowId(WorkflowIdT &&value)
DefaultRunSetting & WithWorkflowType(WorkflowType value)
DefaultRunSetting & WithEngineSettings(EngineSettingsT &&value)
const Aws::String & GetWorkflowId() const
const Aws::String & GetConfigurationName() const
void SetWorkflowVersionName(WorkflowVersionNameT &&value)
void SetOutputBucketOwnerId(OutputBucketOwnerIdT &&value)
const Aws::String & GetRoleArn() const
DefaultRunSetting & WithConfigurationName(ConfigurationNameT &&value)
Aws::Utils::DocumentView GetParameters() const
AWS_OMICS_API DefaultRunSetting(Aws::Utils::Json::JsonView jsonValue)
void SetRunGroupId(RunGroupIdT &&value)
AWS_OMICS_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultRunSetting & WithLogLevel(RunLogLevel value)
void SetConfigurationName(ConfigurationNameT &&value)
const Aws::String & GetName() const
const Aws::String & GetCacheId() const
const Aws::String & GetWorkflowVersionName() const
DefaultRunSetting & WithRunGroupId(RunGroupIdT &&value)
DefaultRunSetting & WithRunTags(RunTagsT &&value)
void SetSessionPolicy(SessionPolicyT &&value)
DefaultRunSetting & WithWorkflowId(WorkflowIdT &&value)
const Aws::String & GetSessionPolicy() const
DefaultRunSetting & WithName(NameT &&value)
const Aws::String & GetWorkflowOwnerId() const
DefaultRunSetting & WithOutputBucketOwnerId(OutputBucketOwnerIdT &&value)
void SetParameters(ParametersT &&value)
void SetRetentionMode(RunRetentionMode value)
void SetNetworkingMode(NetworkingMode value)
void SetWorkflowType(WorkflowType value)
void SetWorkflowOwnerId(WorkflowOwnerIdT &&value)
DefaultRunSetting & WithWorkflowOwnerId(WorkflowOwnerIdT &&value)
RunRetentionMode GetRetentionMode() const
DefaultRunSetting & WithStorageType(StorageType value)
void SetCacheBehavior(CacheBehavior value)
const Aws::String & GetRunGroupId() const
DefaultRunSetting & WithStorageCapacity(int value)
DefaultRunSetting & AddRunTags(RunTagsKeyT &&key, RunTagsValueT &&value)
DefaultRunSetting & WithCacheId(CacheIdT &&value)
DefaultRunSetting & WithPriority(int value)
Aws::Utils::DocumentView GetEngineSettings() const
DefaultRunSetting & WithSessionPolicy(SessionPolicyT &&value)
ScratchStorageMode GetScratchStorageMode() const
DefaultRunSetting & WithOutputUri(OutputUriT &&value)
void SetEngineSettings(EngineSettingsT &&value)
DefaultRunSetting & WithRetentionMode(RunRetentionMode value)
DefaultRunSetting & WithNetworkingMode(NetworkingMode value)
DefaultRunSetting & WithWorkflowVersionName(WorkflowVersionNameT &&value)
AWS_OMICS_API DefaultRunSetting()=default
AWS_OMICS_API DefaultRunSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOutputBucketOwnerId() const
DefaultRunSetting & WithScratchStorageMode(ScratchStorageMode value)
const Aws::Map< Aws::String, Aws::String > & GetRunTags() const
DefaultRunSetting & WithCacheBehavior(CacheBehavior value)
void SetScratchStorageMode(ScratchStorageMode value)
DefaultRunSetting & WithRoleArn(RoleArnT &&value)
DefaultRunSetting & WithParameters(ParametersT &&value)
const Aws::String & GetOutputUri() const
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