AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
StartRunBatchRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/omics/OmicsRequest.h>
11#include <aws/omics/Omics_EXPORTS.h>
12#include <aws/omics/model/BatchRunSettings.h>
13#include <aws/omics/model/DefaultRunSetting.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Omics {
19namespace Model {
20
24 public:
25 AWS_OMICS_API StartRunBatchRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartRunBatch"; }
32
33 AWS_OMICS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetBatchName() const { return m_batchName; }
40 inline bool BatchNameHasBeenSet() const { return m_batchNameHasBeenSet; }
41 template <typename BatchNameT = Aws::String>
42 void SetBatchName(BatchNameT&& value) {
43 m_batchNameHasBeenSet = true;
44 m_batchName = std::forward<BatchNameT>(value);
45 }
46 template <typename BatchNameT = Aws::String>
47 StartRunBatchRequest& WithBatchName(BatchNameT&& value) {
48 SetBatchName(std::forward<BatchNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
66 StartRunBatchRequest& WithRequestId(RequestIdT&& value) {
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) {
82 m_tagsHasBeenSet = true;
83 m_tags = std::forward<TagsT>(value);
84 }
85 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 SetTags(std::forward<TagsT>(value));
88 return *this;
89 }
90 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 StartRunBatchRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
94 return *this;
95 }
97
99
103 inline const DefaultRunSetting& GetDefaultRunSetting() const { return m_defaultRunSetting; }
104 inline bool DefaultRunSettingHasBeenSet() const { return m_defaultRunSettingHasBeenSet; }
105 template <typename DefaultRunSettingT = DefaultRunSetting>
106 void SetDefaultRunSetting(DefaultRunSettingT&& value) {
107 m_defaultRunSettingHasBeenSet = true;
108 m_defaultRunSetting = std::forward<DefaultRunSettingT>(value);
109 }
110 template <typename DefaultRunSettingT = DefaultRunSetting>
111 StartRunBatchRequest& WithDefaultRunSetting(DefaultRunSettingT&& value) {
112 SetDefaultRunSetting(std::forward<DefaultRunSettingT>(value));
113 return *this;
114 }
116
118
123 inline const BatchRunSettings& GetBatchRunSettings() const { return m_batchRunSettings; }
124 inline bool BatchRunSettingsHasBeenSet() const { return m_batchRunSettingsHasBeenSet; }
125 template <typename BatchRunSettingsT = BatchRunSettings>
126 void SetBatchRunSettings(BatchRunSettingsT&& value) {
127 m_batchRunSettingsHasBeenSet = true;
128 m_batchRunSettings = std::forward<BatchRunSettingsT>(value);
129 }
130 template <typename BatchRunSettingsT = BatchRunSettings>
131 StartRunBatchRequest& WithBatchRunSettings(BatchRunSettingsT&& value) {
132 SetBatchRunSettings(std::forward<BatchRunSettingsT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_batchName;
138
140
142
143 DefaultRunSetting m_defaultRunSetting;
144
145 BatchRunSettings m_batchRunSettings;
146 bool m_batchNameHasBeenSet = false;
147 bool m_requestIdHasBeenSet = true;
148 bool m_tagsHasBeenSet = false;
149 bool m_defaultRunSettingHasBeenSet = false;
150 bool m_batchRunSettingsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Omics
155} // namespace Aws
StartRunBatchRequest & WithRequestId(RequestIdT &&value)
AWS_OMICS_API StartRunBatchRequest()=default
StartRunBatchRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
StartRunBatchRequest & WithBatchRunSettings(BatchRunSettingsT &&value)
StartRunBatchRequest & WithBatchName(BatchNameT &&value)
const BatchRunSettings & GetBatchRunSettings() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartRunBatchRequest & WithTags(TagsT &&value)
const DefaultRunSetting & GetDefaultRunSetting() const
AWS_OMICS_API Aws::String SerializePayload() const override
void SetDefaultRunSetting(DefaultRunSettingT &&value)
StartRunBatchRequest & WithDefaultRunSetting(DefaultRunSettingT &&value)
void SetBatchRunSettings(BatchRunSettingsT &&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