AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
CreateWorkflowRequest.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/imagebuilder/ImagebuilderRequest.h>
11#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
12#include <aws/imagebuilder/model/WorkflowType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace imagebuilder {
18namespace Model {
19
23 public:
24 AWS_IMAGEBUILDER_API CreateWorkflowRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkflow"; }
31
32 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
33
35
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
72 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
73 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
74 template <typename SemanticVersionT = Aws::String>
75 void SetSemanticVersion(SemanticVersionT&& value) {
76 m_semanticVersionHasBeenSet = true;
77 m_semanticVersion = std::forward<SemanticVersionT>(value);
78 }
79 template <typename SemanticVersionT = Aws::String>
80 CreateWorkflowRequest& WithSemanticVersion(SemanticVersionT&& value) {
81 SetSemanticVersion(std::forward<SemanticVersionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
98 CreateWorkflowRequest& WithDescription(DescriptionT&& value) {
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
110 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
111 template <typename ChangeDescriptionT = Aws::String>
112 void SetChangeDescription(ChangeDescriptionT&& value) {
113 m_changeDescriptionHasBeenSet = true;
114 m_changeDescription = std::forward<ChangeDescriptionT>(value);
115 }
116 template <typename ChangeDescriptionT = Aws::String>
117 CreateWorkflowRequest& WithChangeDescription(ChangeDescriptionT&& value) {
118 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
119 return *this;
120 }
122
124
130 inline const Aws::String& GetData() const { return m_data; }
131 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
132 template <typename DataT = Aws::String>
133 void SetData(DataT&& value) {
134 m_dataHasBeenSet = true;
135 m_data = std::forward<DataT>(value);
136 }
137 template <typename DataT = Aws::String>
139 SetData(std::forward<DataT>(value));
140 return *this;
141 }
143
145
154 inline const Aws::String& GetUri() const { return m_uri; }
155 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
156 template <typename UriT = Aws::String>
157 void SetUri(UriT&& value) {
158 m_uriHasBeenSet = true;
159 m_uri = std::forward<UriT>(value);
160 }
161 template <typename UriT = Aws::String>
163 SetUri(std::forward<UriT>(value));
164 return *this;
165 }
167
169
178 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
179 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
180 template <typename KmsKeyIdT = Aws::String>
181 void SetKmsKeyId(KmsKeyIdT&& value) {
182 m_kmsKeyIdHasBeenSet = true;
183 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
184 }
185 template <typename KmsKeyIdT = Aws::String>
187 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 void SetTags(TagsT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags = std::forward<TagsT>(value);
202 }
203 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 SetTags(std::forward<TagsT>(value));
206 return *this;
207 }
208 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 CreateWorkflowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
212 return *this;
213 }
215
217
225 inline const Aws::String& GetClientToken() const { return m_clientToken; }
226 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
227 template <typename ClientTokenT = Aws::String>
228 void SetClientToken(ClientTokenT&& value) {
229 m_clientTokenHasBeenSet = true;
230 m_clientToken = std::forward<ClientTokenT>(value);
231 }
232 template <typename ClientTokenT = Aws::String>
233 CreateWorkflowRequest& WithClientToken(ClientTokenT&& value) {
234 SetClientToken(std::forward<ClientTokenT>(value));
235 return *this;
236 }
238
240
244 inline WorkflowType GetType() const { return m_type; }
245 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
246 inline void SetType(WorkflowType value) {
247 m_typeHasBeenSet = true;
248 m_type = value;
249 }
251 SetType(value);
252 return *this;
253 }
255
257
262 inline bool GetDryRun() const { return m_dryRun; }
263 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
264 inline void SetDryRun(bool value) {
265 m_dryRunHasBeenSet = true;
266 m_dryRun = value;
267 }
268 inline CreateWorkflowRequest& WithDryRun(bool value) {
269 SetDryRun(value);
270 return *this;
271 }
273 private:
274 Aws::String m_name;
275
276 Aws::String m_semanticVersion;
277
278 Aws::String m_description;
279
280 Aws::String m_changeDescription;
281
282 Aws::String m_data;
283
284 Aws::String m_uri;
285
286 Aws::String m_kmsKeyId;
287
289
291
293
294 bool m_dryRun{false};
295 bool m_nameHasBeenSet = false;
296 bool m_semanticVersionHasBeenSet = false;
297 bool m_descriptionHasBeenSet = false;
298 bool m_changeDescriptionHasBeenSet = false;
299 bool m_dataHasBeenSet = false;
300 bool m_uriHasBeenSet = false;
301 bool m_kmsKeyIdHasBeenSet = false;
302 bool m_tagsHasBeenSet = false;
303 bool m_clientTokenHasBeenSet = true;
304 bool m_typeHasBeenSet = false;
305 bool m_dryRunHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace imagebuilder
310} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateWorkflowRequest & WithName(NameT &&value)
CreateWorkflowRequest & WithData(DataT &&value)
CreateWorkflowRequest & WithClientToken(ClientTokenT &&value)
CreateWorkflowRequest & WithSemanticVersion(SemanticVersionT &&value)
CreateWorkflowRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateWorkflowRequest & WithType(WorkflowType value)
CreateWorkflowRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkflowRequest & WithDescription(DescriptionT &&value)
AWS_IMAGEBUILDER_API CreateWorkflowRequest()=default
CreateWorkflowRequest & WithChangeDescription(ChangeDescriptionT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateWorkflowRequest & WithTags(TagsT &&value)
void SetChangeDescription(ChangeDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkflowRequest & WithUri(UriT &&value)
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