AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkflowRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/imagebuilder/model/WorkflowType.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace imagebuilder
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IMAGEBUILDER_API CreateWorkflowRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkflow"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateWorkflowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateWorkflowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateWorkflowRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
66 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
67 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
68 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
69 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
70 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
71 inline CreateWorkflowRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
72 inline CreateWorkflowRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
73 inline CreateWorkflowRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline CreateWorkflowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline CreateWorkflowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline CreateWorkflowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
95 inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; }
96 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
97 inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; }
98 inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); }
99 inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); }
101 inline CreateWorkflowRequest& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;}
102 inline CreateWorkflowRequest& WithChangeDescription(const char* value) { SetChangeDescription(value); return *this;}
104
106
111 inline const Aws::String& GetData() const{ return m_data; }
112 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
113 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
114 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
115 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
116 inline CreateWorkflowRequest& WithData(const Aws::String& value) { SetData(value); return *this;}
117 inline CreateWorkflowRequest& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
118 inline CreateWorkflowRequest& WithData(const char* value) { SetData(value); return *this;}
120
122
130 inline const Aws::String& GetUri() const{ return m_uri; }
131 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
132 inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
133 inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
134 inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
135 inline CreateWorkflowRequest& WithUri(const Aws::String& value) { SetUri(value); return *this;}
136 inline CreateWorkflowRequest& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
137 inline CreateWorkflowRequest& WithUri(const char* value) { SetUri(value); return *this;}
139
141
144 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
145 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
146 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
147 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
148 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
149 inline CreateWorkflowRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
150 inline CreateWorkflowRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
151 inline CreateWorkflowRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
153
155
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
161 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
162 inline CreateWorkflowRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
163 inline CreateWorkflowRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
164 inline CreateWorkflowRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
165 inline CreateWorkflowRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 inline CreateWorkflowRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
167 inline CreateWorkflowRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
168 inline CreateWorkflowRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
169 inline CreateWorkflowRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
170 inline CreateWorkflowRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
172
174
180 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
181 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
182 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
183 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
184 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
185 inline CreateWorkflowRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
186 inline CreateWorkflowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
187 inline CreateWorkflowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
189
191
195 inline const WorkflowType& GetType() const{ return m_type; }
196 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
197 inline void SetType(const WorkflowType& value) { m_typeHasBeenSet = true; m_type = value; }
198 inline void SetType(WorkflowType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
199 inline CreateWorkflowRequest& WithType(const WorkflowType& value) { SetType(value); return *this;}
200 inline CreateWorkflowRequest& WithType(WorkflowType&& value) { SetType(std::move(value)); return *this;}
202 private:
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_semanticVersion;
208 bool m_semanticVersionHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
213 Aws::String m_changeDescription;
214 bool m_changeDescriptionHasBeenSet = false;
215
216 Aws::String m_data;
217 bool m_dataHasBeenSet = false;
218
219 Aws::String m_uri;
220 bool m_uriHasBeenSet = false;
221
222 Aws::String m_kmsKeyId;
223 bool m_kmsKeyIdHasBeenSet = false;
224
226 bool m_tagsHasBeenSet = false;
227
228 Aws::String m_clientToken;
229 bool m_clientTokenHasBeenSet = false;
230
231 WorkflowType m_type;
232 bool m_typeHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace imagebuilder
237} // namespace Aws
CreateWorkflowRequest & WithKmsKeyId(const Aws::String &value)
CreateWorkflowRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkflowRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateWorkflowRequest & WithData(const char *value)
CreateWorkflowRequest & AddTags(Aws::String &&key, const char *value)
CreateWorkflowRequest & AddTags(const char *key, const char *value)
CreateWorkflowRequest & WithUri(const Aws::String &value)
CreateWorkflowRequest & WithSemanticVersion(const char *value)
CreateWorkflowRequest & WithData(const Aws::String &value)
CreateWorkflowRequest & WithSemanticVersion(const Aws::String &value)
CreateWorkflowRequest & WithName(Aws::String &&value)
CreateWorkflowRequest & WithData(Aws::String &&value)
CreateWorkflowRequest & WithChangeDescription(const Aws::String &value)
CreateWorkflowRequest & WithKmsKeyId(Aws::String &&value)
CreateWorkflowRequest & WithUri(const char *value)
CreateWorkflowRequest & WithSemanticVersion(Aws::String &&value)
CreateWorkflowRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorkflowRequest & WithName(const Aws::String &value)
CreateWorkflowRequest & WithClientToken(const char *value)
CreateWorkflowRequest & WithDescription(Aws::String &&value)
CreateWorkflowRequest & WithType(WorkflowType &&value)
CreateWorkflowRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorkflowRequest & WithChangeDescription(Aws::String &&value)
CreateWorkflowRequest & WithName(const char *value)
CreateWorkflowRequest & WithChangeDescription(const char *value)
CreateWorkflowRequest & AddTags(const char *key, Aws::String &&value)
CreateWorkflowRequest & WithDescription(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateWorkflowRequest & WithClientToken(Aws::String &&value)
CreateWorkflowRequest & WithClientToken(const Aws::String &value)
CreateWorkflowRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorkflowRequest & WithKmsKeyId(const char *value)
CreateWorkflowRequest & WithUri(Aws::String &&value)
CreateWorkflowRequest & WithType(const WorkflowType &value)
CreateWorkflowRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
CreateWorkflowRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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