AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContainerRecipeRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/imagebuilder/model/ContainerType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/imagebuilder/model/InstanceConfiguration.h>
13#include <aws/imagebuilder/model/Platform.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/imagebuilder/model/TargetContainerRepository.h>
16#include <aws/imagebuilder/model/ComponentConfiguration.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace imagebuilder
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_IMAGEBUILDER_API CreateContainerRecipeRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerRecipe"; }
39
40 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
41
42
44
47 inline const ContainerType& GetContainerType() const{ return m_containerType; }
48 inline bool ContainerTypeHasBeenSet() const { return m_containerTypeHasBeenSet; }
49 inline void SetContainerType(const ContainerType& value) { m_containerTypeHasBeenSet = true; m_containerType = value; }
50 inline void SetContainerType(ContainerType&& value) { m_containerTypeHasBeenSet = true; m_containerType = std::move(value); }
52 inline CreateContainerRecipeRequest& WithContainerType(ContainerType&& value) { SetContainerType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline CreateContainerRecipeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline CreateContainerRecipeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline CreateContainerRecipeRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline CreateContainerRecipeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline CreateContainerRecipeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline CreateContainerRecipeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
97 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
98 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
99 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
100 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
101 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
103 inline CreateContainerRecipeRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
104 inline CreateContainerRecipeRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
106
108
113 inline const Aws::Vector<ComponentConfiguration>& GetComponents() const{ return m_components; }
114 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
115 inline void SetComponents(const Aws::Vector<ComponentConfiguration>& value) { m_componentsHasBeenSet = true; m_components = value; }
116 inline void SetComponents(Aws::Vector<ComponentConfiguration>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
119 inline CreateContainerRecipeRequest& AddComponents(const ComponentConfiguration& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
120 inline CreateContainerRecipeRequest& AddComponents(ComponentConfiguration&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
122
124
128 inline const InstanceConfiguration& GetInstanceConfiguration() const{ return m_instanceConfiguration; }
129 inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; }
130 inline void SetInstanceConfiguration(const InstanceConfiguration& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = value; }
131 inline void SetInstanceConfiguration(InstanceConfiguration&& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = std::move(value); }
135
137
140 inline const Aws::String& GetDockerfileTemplateData() const{ return m_dockerfileTemplateData; }
141 inline bool DockerfileTemplateDataHasBeenSet() const { return m_dockerfileTemplateDataHasBeenSet; }
142 inline void SetDockerfileTemplateData(const Aws::String& value) { m_dockerfileTemplateDataHasBeenSet = true; m_dockerfileTemplateData = value; }
143 inline void SetDockerfileTemplateData(Aws::String&& value) { m_dockerfileTemplateDataHasBeenSet = true; m_dockerfileTemplateData = std::move(value); }
144 inline void SetDockerfileTemplateData(const char* value) { m_dockerfileTemplateDataHasBeenSet = true; m_dockerfileTemplateData.assign(value); }
149
151
155 inline const Aws::String& GetDockerfileTemplateUri() const{ return m_dockerfileTemplateUri; }
156 inline bool DockerfileTemplateUriHasBeenSet() const { return m_dockerfileTemplateUriHasBeenSet; }
157 inline void SetDockerfileTemplateUri(const Aws::String& value) { m_dockerfileTemplateUriHasBeenSet = true; m_dockerfileTemplateUri = value; }
158 inline void SetDockerfileTemplateUri(Aws::String&& value) { m_dockerfileTemplateUriHasBeenSet = true; m_dockerfileTemplateUri = std::move(value); }
159 inline void SetDockerfileTemplateUri(const char* value) { m_dockerfileTemplateUriHasBeenSet = true; m_dockerfileTemplateUri.assign(value); }
162 inline CreateContainerRecipeRequest& WithDockerfileTemplateUri(const char* value) { SetDockerfileTemplateUri(value); return *this;}
164
166
169 inline const Platform& GetPlatformOverride() const{ return m_platformOverride; }
170 inline bool PlatformOverrideHasBeenSet() const { return m_platformOverrideHasBeenSet; }
171 inline void SetPlatformOverride(const Platform& value) { m_platformOverrideHasBeenSet = true; m_platformOverride = value; }
172 inline void SetPlatformOverride(Platform&& value) { m_platformOverrideHasBeenSet = true; m_platformOverride = std::move(value); }
174 inline CreateContainerRecipeRequest& WithPlatformOverride(Platform&& value) { SetPlatformOverride(std::move(value)); return *this;}
176
178
181 inline const Aws::String& GetImageOsVersionOverride() const{ return m_imageOsVersionOverride; }
182 inline bool ImageOsVersionOverrideHasBeenSet() const { return m_imageOsVersionOverrideHasBeenSet; }
183 inline void SetImageOsVersionOverride(const Aws::String& value) { m_imageOsVersionOverrideHasBeenSet = true; m_imageOsVersionOverride = value; }
184 inline void SetImageOsVersionOverride(Aws::String&& value) { m_imageOsVersionOverrideHasBeenSet = true; m_imageOsVersionOverride = std::move(value); }
185 inline void SetImageOsVersionOverride(const char* value) { m_imageOsVersionOverrideHasBeenSet = true; m_imageOsVersionOverride.assign(value); }
190
192
195 inline const Aws::String& GetParentImage() const{ return m_parentImage; }
196 inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
197 inline void SetParentImage(const Aws::String& value) { m_parentImageHasBeenSet = true; m_parentImage = value; }
198 inline void SetParentImage(Aws::String&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::move(value); }
199 inline void SetParentImage(const char* value) { m_parentImageHasBeenSet = true; m_parentImage.assign(value); }
200 inline CreateContainerRecipeRequest& WithParentImage(const Aws::String& value) { SetParentImage(value); return *this;}
201 inline CreateContainerRecipeRequest& WithParentImage(Aws::String&& value) { SetParentImage(std::move(value)); return *this;}
202 inline CreateContainerRecipeRequest& WithParentImage(const char* value) { SetParentImage(value); return *this;}
204
206
209 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
212 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
214 inline CreateContainerRecipeRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
215 inline CreateContainerRecipeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
216 inline CreateContainerRecipeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
217 inline CreateContainerRecipeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
218 inline CreateContainerRecipeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
219 inline CreateContainerRecipeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
220 inline CreateContainerRecipeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
221 inline CreateContainerRecipeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
223
225
228 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
229 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
230 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
231 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
232 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
234 inline CreateContainerRecipeRequest& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
235 inline CreateContainerRecipeRequest& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
237
239
242 inline const TargetContainerRepository& GetTargetRepository() const{ return m_targetRepository; }
243 inline bool TargetRepositoryHasBeenSet() const { return m_targetRepositoryHasBeenSet; }
244 inline void SetTargetRepository(const TargetContainerRepository& value) { m_targetRepositoryHasBeenSet = true; m_targetRepository = value; }
245 inline void SetTargetRepository(TargetContainerRepository&& value) { m_targetRepositoryHasBeenSet = true; m_targetRepository = std::move(value); }
249
251
254 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
255 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
256 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
257 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
258 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
259 inline CreateContainerRecipeRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
260 inline CreateContainerRecipeRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
261 inline CreateContainerRecipeRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
263
265
271 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
272 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
273 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
274 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
275 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
276 inline CreateContainerRecipeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
277 inline CreateContainerRecipeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
278 inline CreateContainerRecipeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
280 private:
281
282 ContainerType m_containerType;
283 bool m_containerTypeHasBeenSet = false;
284
285 Aws::String m_name;
286 bool m_nameHasBeenSet = false;
287
288 Aws::String m_description;
289 bool m_descriptionHasBeenSet = false;
290
291 Aws::String m_semanticVersion;
292 bool m_semanticVersionHasBeenSet = false;
293
295 bool m_componentsHasBeenSet = false;
296
297 InstanceConfiguration m_instanceConfiguration;
298 bool m_instanceConfigurationHasBeenSet = false;
299
300 Aws::String m_dockerfileTemplateData;
301 bool m_dockerfileTemplateDataHasBeenSet = false;
302
303 Aws::String m_dockerfileTemplateUri;
304 bool m_dockerfileTemplateUriHasBeenSet = false;
305
306 Platform m_platformOverride;
307 bool m_platformOverrideHasBeenSet = false;
308
309 Aws::String m_imageOsVersionOverride;
310 bool m_imageOsVersionOverrideHasBeenSet = false;
311
312 Aws::String m_parentImage;
313 bool m_parentImageHasBeenSet = false;
314
316 bool m_tagsHasBeenSet = false;
317
318 Aws::String m_workingDirectory;
319 bool m_workingDirectoryHasBeenSet = false;
320
321 TargetContainerRepository m_targetRepository;
322 bool m_targetRepositoryHasBeenSet = false;
323
324 Aws::String m_kmsKeyId;
325 bool m_kmsKeyIdHasBeenSet = false;
326
327 Aws::String m_clientToken;
328 bool m_clientTokenHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace imagebuilder
333} // namespace Aws
CreateContainerRecipeRequest & WithDescription(Aws::String &&value)
CreateContainerRecipeRequest & WithInstanceConfiguration(InstanceConfiguration &&value)
CreateContainerRecipeRequest & WithDockerfileTemplateData(const char *value)
CreateContainerRecipeRequest & WithContainerType(ContainerType &&value)
CreateContainerRecipeRequest & WithTargetRepository(const TargetContainerRepository &value)
CreateContainerRecipeRequest & WithImageOsVersionOverride(const Aws::String &value)
CreateContainerRecipeRequest & WithPlatformOverride(const Platform &value)
CreateContainerRecipeRequest & WithDockerfileTemplateData(Aws::String &&value)
void SetComponents(const Aws::Vector< ComponentConfiguration > &value)
CreateContainerRecipeRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContainerRecipeRequest & WithSemanticVersion(Aws::String &&value)
void SetTargetRepository(const TargetContainerRepository &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< ComponentConfiguration > & GetComponents() const
CreateContainerRecipeRequest & WithKmsKeyId(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateContainerRecipeRequest & WithImageOsVersionOverride(const char *value)
CreateContainerRecipeRequest & WithName(Aws::String &&value)
CreateContainerRecipeRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateContainerRecipeRequest & WithDockerfileTemplateUri(const char *value)
CreateContainerRecipeRequest & WithPlatformOverride(Platform &&value)
CreateContainerRecipeRequest & AddComponents(ComponentConfiguration &&value)
CreateContainerRecipeRequest & WithDescription(const Aws::String &value)
CreateContainerRecipeRequest & WithWorkingDirectory(const char *value)
CreateContainerRecipeRequest & WithContainerType(const ContainerType &value)
CreateContainerRecipeRequest & WithParentImage(const Aws::String &value)
CreateContainerRecipeRequest & WithDockerfileTemplateUri(Aws::String &&value)
CreateContainerRecipeRequest & WithComponents(const Aws::Vector< ComponentConfiguration > &value)
CreateContainerRecipeRequest & AddComponents(const ComponentConfiguration &value)
CreateContainerRecipeRequest & WithClientToken(const Aws::String &value)
CreateContainerRecipeRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateContainerRecipeRequest & WithKmsKeyId(Aws::String &&value)
void SetInstanceConfiguration(const InstanceConfiguration &value)
CreateContainerRecipeRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateContainerRecipeRequest & WithWorkingDirectory(Aws::String &&value)
CreateContainerRecipeRequest & AddTags(Aws::String &&key, const char *value)
CreateContainerRecipeRequest & AddTags(const char *key, const char *value)
CreateContainerRecipeRequest & WithTargetRepository(TargetContainerRepository &&value)
CreateContainerRecipeRequest & WithComponents(Aws::Vector< ComponentConfiguration > &&value)
CreateContainerRecipeRequest & WithDockerfileTemplateUri(const Aws::String &value)
CreateContainerRecipeRequest & WithWorkingDirectory(const Aws::String &value)
CreateContainerRecipeRequest & WithClientToken(const char *value)
CreateContainerRecipeRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateContainerRecipeRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateContainerRecipeRequest & WithSemanticVersion(const Aws::String &value)
CreateContainerRecipeRequest & WithInstanceConfiguration(const InstanceConfiguration &value)
void SetComponents(Aws::Vector< ComponentConfiguration > &&value)
CreateContainerRecipeRequest & WithDockerfileTemplateData(const Aws::String &value)
CreateContainerRecipeRequest & WithParentImage(const char *value)
CreateContainerRecipeRequest & WithSemanticVersion(const char *value)
CreateContainerRecipeRequest & WithKmsKeyId(const Aws::String &value)
CreateContainerRecipeRequest & WithClientToken(Aws::String &&value)
CreateContainerRecipeRequest & AddTags(const char *key, Aws::String &&value)
CreateContainerRecipeRequest & WithDescription(const char *value)
CreateContainerRecipeRequest & WithImageOsVersionOverride(Aws::String &&value)
CreateContainerRecipeRequest & WithName(const Aws::String &value)
CreateContainerRecipeRequest & WithParentImage(Aws::String &&value)
CreateContainerRecipeRequest & WithName(const char *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