AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateComponentRequest.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/imagebuilder/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace imagebuilder
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IMAGEBUILDER_API CreateComponentRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateComponent"; }
35
36 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateComponentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateComponentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateComponentRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
67 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
68 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
69 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
70 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
71 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
72 inline CreateComponentRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
73 inline CreateComponentRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
74 inline CreateComponentRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const{ return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
86 inline CreateComponentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline CreateComponentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline CreateComponentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
97 inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; }
98 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
99 inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; }
100 inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); }
101 inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); }
103 inline CreateComponentRequest& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;}
104 inline CreateComponentRequest& WithChangeDescription(const char* value) { SetChangeDescription(value); return *this;}
106
108
111 inline const Platform& GetPlatform() const{ return m_platform; }
112 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
113 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
114 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
115 inline CreateComponentRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
116 inline CreateComponentRequest& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
118
120
125 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const{ return m_supportedOsVersions; }
126 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
127 inline void SetSupportedOsVersions(const Aws::Vector<Aws::String>& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = value; }
128 inline void SetSupportedOsVersions(Aws::Vector<Aws::String>&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = std::move(value); }
131 inline CreateComponentRequest& AddSupportedOsVersions(const Aws::String& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; }
132 inline CreateComponentRequest& AddSupportedOsVersions(Aws::String&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(std::move(value)); return *this; }
133 inline CreateComponentRequest& AddSupportedOsVersions(const char* value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; }
135
137
143 inline const Aws::String& GetData() const{ return m_data; }
144 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
145 inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; }
146 inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
147 inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); }
148 inline CreateComponentRequest& WithData(const Aws::String& value) { SetData(value); return *this;}
149 inline CreateComponentRequest& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;}
150 inline CreateComponentRequest& WithData(const char* value) { SetData(value); return *this;}
152
154
162 inline const Aws::String& GetUri() const{ return m_uri; }
163 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
164 inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
165 inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
166 inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
167 inline CreateComponentRequest& WithUri(const Aws::String& value) { SetUri(value); return *this;}
168 inline CreateComponentRequest& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
169 inline CreateComponentRequest& WithUri(const char* value) { SetUri(value); return *this;}
171
173
176 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
177 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
178 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
179 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
180 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
181 inline CreateComponentRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
182 inline CreateComponentRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
183 inline CreateComponentRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
185
187
190 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
193 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194 inline CreateComponentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
195 inline CreateComponentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
196 inline CreateComponentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
197 inline CreateComponentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
198 inline CreateComponentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
199 inline CreateComponentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
200 inline CreateComponentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
201 inline CreateComponentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
202 inline CreateComponentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
204
206
212 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
213 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
214 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
215 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
216 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
217 inline CreateComponentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
218 inline CreateComponentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
219 inline CreateComponentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
221 private:
222
223 Aws::String m_name;
224 bool m_nameHasBeenSet = false;
225
226 Aws::String m_semanticVersion;
227 bool m_semanticVersionHasBeenSet = false;
228
229 Aws::String m_description;
230 bool m_descriptionHasBeenSet = false;
231
232 Aws::String m_changeDescription;
233 bool m_changeDescriptionHasBeenSet = false;
234
235 Platform m_platform;
236 bool m_platformHasBeenSet = false;
237
238 Aws::Vector<Aws::String> m_supportedOsVersions;
239 bool m_supportedOsVersionsHasBeenSet = false;
240
241 Aws::String m_data;
242 bool m_dataHasBeenSet = false;
243
244 Aws::String m_uri;
245 bool m_uriHasBeenSet = false;
246
247 Aws::String m_kmsKeyId;
248 bool m_kmsKeyIdHasBeenSet = false;
249
251 bool m_tagsHasBeenSet = false;
252
253 Aws::String m_clientToken;
254 bool m_clientTokenHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace imagebuilder
259} // namespace Aws
CreateComponentRequest & WithSupportedOsVersions(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateComponentRequest & WithPlatform(Platform &&value)
CreateComponentRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSupportedOsVersions() const
CreateComponentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateComponentRequest & WithData(Aws::String &&value)
CreateComponentRequest & WithKmsKeyId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateComponentRequest & WithUri(const char *value)
CreateComponentRequest & AddTags(const char *key, const char *value)
void SetSupportedOsVersions(const Aws::Vector< Aws::String > &value)
CreateComponentRequest & WithChangeDescription(Aws::String &&value)
CreateComponentRequest & WithSemanticVersion(Aws::String &&value)
CreateComponentRequest & WithDescription(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateComponentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateComponentRequest & WithClientToken(const Aws::String &value)
CreateComponentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateComponentRequest & WithDescription(const Aws::String &value)
CreateComponentRequest & WithChangeDescription(const char *value)
CreateComponentRequest & WithName(const Aws::String &value)
CreateComponentRequest & WithSemanticVersion(const Aws::String &value)
CreateComponentRequest & AddSupportedOsVersions(const char *value)
CreateComponentRequest & WithPlatform(const Platform &value)
CreateComponentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetSupportedOsVersions(Aws::Vector< Aws::String > &&value)
CreateComponentRequest & WithName(const char *value)
CreateComponentRequest & AddSupportedOsVersions(Aws::String &&value)
CreateComponentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateComponentRequest & WithSupportedOsVersions(const Aws::Vector< Aws::String > &value)
CreateComponentRequest & WithName(Aws::String &&value)
CreateComponentRequest & WithData(const char *value)
CreateComponentRequest & WithKmsKeyId(const char *value)
CreateComponentRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateComponentRequest & WithDescription(const char *value)
CreateComponentRequest & WithUri(Aws::String &&value)
CreateComponentRequest & WithChangeDescription(const Aws::String &value)
CreateComponentRequest & WithUri(const Aws::String &value)
CreateComponentRequest & WithKmsKeyId(const Aws::String &value)
CreateComponentRequest & WithData(const Aws::String &value)
CreateComponentRequest & AddTags(const char *key, Aws::String &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateComponentRequest & WithClientToken(const char *value)
CreateComponentRequest & AddSupportedOsVersions(const Aws::String &value)
CreateComponentRequest & WithSemanticVersion(const char *value)
CreateComponentRequest & AddTags(const Aws::String &key, const 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
std::vector< T, Aws::Allocator< T > > Vector