AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
66 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
67 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
68 template <typename SemanticVersionT = Aws::String>
69 void SetSemanticVersion(SemanticVersionT&& value) {
70 m_semanticVersionHasBeenSet = true;
71 m_semanticVersion = std::forward<SemanticVersionT>(value);
72 }
73 template <typename SemanticVersionT = Aws::String>
74 CreateWorkflowRequest& WithSemanticVersion(SemanticVersionT&& value) {
75 SetSemanticVersion(std::forward<SemanticVersionT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 CreateWorkflowRequest& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
104 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
105 template <typename ChangeDescriptionT = Aws::String>
106 void SetChangeDescription(ChangeDescriptionT&& value) {
107 m_changeDescriptionHasBeenSet = true;
108 m_changeDescription = std::forward<ChangeDescriptionT>(value);
109 }
110 template <typename ChangeDescriptionT = Aws::String>
111 CreateWorkflowRequest& WithChangeDescription(ChangeDescriptionT&& value) {
112 SetChangeDescription(std::forward<ChangeDescriptionT>(value));
113 return *this;
114 }
116
118
123 inline const Aws::String& GetData() const { return m_data; }
124 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
125 template <typename DataT = Aws::String>
126 void SetData(DataT&& value) {
127 m_dataHasBeenSet = true;
128 m_data = std::forward<DataT>(value);
129 }
130 template <typename DataT = Aws::String>
132 SetData(std::forward<DataT>(value));
133 return *this;
134 }
136
138
146 inline const Aws::String& GetUri() const { return m_uri; }
147 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
148 template <typename UriT = Aws::String>
149 void SetUri(UriT&& value) {
150 m_uriHasBeenSet = true;
151 m_uri = std::forward<UriT>(value);
152 }
153 template <typename UriT = Aws::String>
155 SetUri(std::forward<UriT>(value));
156 return *this;
157 }
159
161
169 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
170 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
171 template <typename KmsKeyIdT = Aws::String>
172 void SetKmsKeyId(KmsKeyIdT&& value) {
173 m_kmsKeyIdHasBeenSet = true;
174 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
175 }
176 template <typename KmsKeyIdT = Aws::String>
178 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
188 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
189 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 void SetTags(TagsT&& value) {
191 m_tagsHasBeenSet = true;
192 m_tags = std::forward<TagsT>(value);
193 }
194 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 SetTags(std::forward<TagsT>(value));
197 return *this;
198 }
199 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
200 CreateWorkflowRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
203 return *this;
204 }
206
208
214 inline const Aws::String& GetClientToken() const { return m_clientToken; }
215 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
216 template <typename ClientTokenT = Aws::String>
217 void SetClientToken(ClientTokenT&& value) {
218 m_clientTokenHasBeenSet = true;
219 m_clientToken = std::forward<ClientTokenT>(value);
220 }
221 template <typename ClientTokenT = Aws::String>
222 CreateWorkflowRequest& WithClientToken(ClientTokenT&& value) {
223 SetClientToken(std::forward<ClientTokenT>(value));
224 return *this;
225 }
227
229
233 inline WorkflowType GetType() const { return m_type; }
234 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
235 inline void SetType(WorkflowType value) {
236 m_typeHasBeenSet = true;
237 m_type = value;
238 }
240 SetType(value);
241 return *this;
242 }
244
246
252 inline bool GetDryRun() const { return m_dryRun; }
253 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
254 inline void SetDryRun(bool value) {
255 m_dryRunHasBeenSet = true;
256 m_dryRun = value;
257 }
258 inline CreateWorkflowRequest& WithDryRun(bool value) {
259 SetDryRun(value);
260 return *this;
261 }
263 private:
264 Aws::String m_name;
265
266 Aws::String m_semanticVersion;
267
268 Aws::String m_description;
269
270 Aws::String m_changeDescription;
271
272 Aws::String m_data;
273
274 Aws::String m_uri;
275
276 Aws::String m_kmsKeyId;
277
279
281
283
284 bool m_dryRun{false};
285 bool m_nameHasBeenSet = false;
286 bool m_semanticVersionHasBeenSet = false;
287 bool m_descriptionHasBeenSet = false;
288 bool m_changeDescriptionHasBeenSet = false;
289 bool m_dataHasBeenSet = false;
290 bool m_uriHasBeenSet = false;
291 bool m_kmsKeyIdHasBeenSet = false;
292 bool m_tagsHasBeenSet = false;
293 bool m_clientTokenHasBeenSet = true;
294 bool m_typeHasBeenSet = false;
295 bool m_dryRunHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace imagebuilder
300} // 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