AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerRecipe.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/ContainerType.h>
10#include <aws/imagebuilder/model/Platform.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/imagebuilder/model/InstanceConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/imagebuilder/model/TargetContainerRepository.h>
15#include <aws/imagebuilder/model/ComponentConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace imagebuilder
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_IMAGEBUILDER_API ContainerRecipe();
42 AWS_IMAGEBUILDER_API ContainerRecipe(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IMAGEBUILDER_API ContainerRecipe& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
59 inline const Aws::String& GetArn() const{ return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
62 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
64 inline ContainerRecipe& WithArn(const Aws::String& value) { SetArn(value); return *this;}
65 inline ContainerRecipe& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
66 inline ContainerRecipe& WithArn(const char* value) { SetArn(value); return *this;}
68
70
73 inline const ContainerType& GetContainerType() const{ return m_containerType; }
74 inline bool ContainerTypeHasBeenSet() const { return m_containerTypeHasBeenSet; }
75 inline void SetContainerType(const ContainerType& value) { m_containerTypeHasBeenSet = true; m_containerType = value; }
76 inline void SetContainerType(ContainerType&& value) { m_containerTypeHasBeenSet = true; m_containerType = std::move(value); }
77 inline ContainerRecipe& WithContainerType(const ContainerType& value) { SetContainerType(value); return *this;}
78 inline ContainerRecipe& WithContainerType(ContainerType&& value) { SetContainerType(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
90 inline ContainerRecipe& WithName(const Aws::String& value) { SetName(value); return *this;}
91 inline ContainerRecipe& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 inline ContainerRecipe& WithName(const char* value) { SetName(value); return *this;}
94
96
99 inline const Aws::String& GetDescription() const{ return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
102 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
103 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 inline ContainerRecipe& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 inline ContainerRecipe& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
106 inline ContainerRecipe& WithDescription(const char* value) { SetDescription(value); return *this;}
108
110
113 inline const Platform& GetPlatform() const{ return m_platform; }
114 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
115 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
116 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
117 inline ContainerRecipe& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
118 inline ContainerRecipe& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
120
122
125 inline const Aws::String& GetOwner() const{ return m_owner; }
126 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
127 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
128 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
129 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
130 inline ContainerRecipe& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
131 inline ContainerRecipe& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
132 inline ContainerRecipe& WithOwner(const char* value) { SetOwner(value); return *this;}
134
136
152 inline const Aws::String& GetVersion() const{ return m_version; }
153 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
154 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
155 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
156 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
157 inline ContainerRecipe& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
158 inline ContainerRecipe& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
159 inline ContainerRecipe& WithVersion(const char* value) { SetVersion(value); return *this;}
161
163
168 inline const Aws::Vector<ComponentConfiguration>& GetComponents() const{ return m_components; }
169 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
170 inline void SetComponents(const Aws::Vector<ComponentConfiguration>& value) { m_componentsHasBeenSet = true; m_components = value; }
171 inline void SetComponents(Aws::Vector<ComponentConfiguration>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
173 inline ContainerRecipe& WithComponents(Aws::Vector<ComponentConfiguration>&& value) { SetComponents(std::move(value)); return *this;}
174 inline ContainerRecipe& AddComponents(const ComponentConfiguration& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
175 inline ContainerRecipe& AddComponents(ComponentConfiguration&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
177
179
183 inline const InstanceConfiguration& GetInstanceConfiguration() const{ return m_instanceConfiguration; }
184 inline bool InstanceConfigurationHasBeenSet() const { return m_instanceConfigurationHasBeenSet; }
185 inline void SetInstanceConfiguration(const InstanceConfiguration& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = value; }
186 inline void SetInstanceConfiguration(InstanceConfiguration&& value) { m_instanceConfigurationHasBeenSet = true; m_instanceConfiguration = std::move(value); }
190
192
198 inline const Aws::String& GetDockerfileTemplateData() const{ return m_dockerfileTemplateData; }
199 inline bool DockerfileTemplateDataHasBeenSet() const { return m_dockerfileTemplateDataHasBeenSet; }
200 inline void SetDockerfileTemplateData(const Aws::String& value) { m_dockerfileTemplateDataHasBeenSet = true; m_dockerfileTemplateData = value; }
201 inline void SetDockerfileTemplateData(Aws::String&& value) { m_dockerfileTemplateDataHasBeenSet = true; m_dockerfileTemplateData = std::move(value); }
202 inline void SetDockerfileTemplateData(const char* value) { m_dockerfileTemplateDataHasBeenSet = true; m_dockerfileTemplateData.assign(value); }
204 inline ContainerRecipe& WithDockerfileTemplateData(Aws::String&& value) { SetDockerfileTemplateData(std::move(value)); return *this;}
205 inline ContainerRecipe& WithDockerfileTemplateData(const char* value) { SetDockerfileTemplateData(value); return *this;}
207
209
213 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
214 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
215 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
216 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
217 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
218 inline ContainerRecipe& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
219 inline ContainerRecipe& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
220 inline ContainerRecipe& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
222
224
227 inline bool GetEncrypted() const{ return m_encrypted; }
228 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
229 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
230 inline ContainerRecipe& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
232
234
237 inline const Aws::String& GetParentImage() const{ return m_parentImage; }
238 inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
239 inline void SetParentImage(const Aws::String& value) { m_parentImageHasBeenSet = true; m_parentImage = value; }
240 inline void SetParentImage(Aws::String&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::move(value); }
241 inline void SetParentImage(const char* value) { m_parentImageHasBeenSet = true; m_parentImage.assign(value); }
242 inline ContainerRecipe& WithParentImage(const Aws::String& value) { SetParentImage(value); return *this;}
243 inline ContainerRecipe& WithParentImage(Aws::String&& value) { SetParentImage(std::move(value)); return *this;}
244 inline ContainerRecipe& WithParentImage(const char* value) { SetParentImage(value); return *this;}
246
248
251 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
252 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
253 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
254 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
255 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
256 inline ContainerRecipe& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
257 inline ContainerRecipe& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
258 inline ContainerRecipe& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
260
262
265 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
266 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
267 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
268 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
269 inline ContainerRecipe& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
270 inline ContainerRecipe& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
271 inline ContainerRecipe& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
272 inline ContainerRecipe& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
273 inline ContainerRecipe& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
274 inline ContainerRecipe& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
275 inline ContainerRecipe& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
276 inline ContainerRecipe& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
277 inline ContainerRecipe& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
279
281
284 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
285 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
286 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
287 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
288 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
289 inline ContainerRecipe& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;}
290 inline ContainerRecipe& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
291 inline ContainerRecipe& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
293
295
298 inline const TargetContainerRepository& GetTargetRepository() const{ return m_targetRepository; }
299 inline bool TargetRepositoryHasBeenSet() const { return m_targetRepositoryHasBeenSet; }
300 inline void SetTargetRepository(const TargetContainerRepository& value) { m_targetRepositoryHasBeenSet = true; m_targetRepository = value; }
301 inline void SetTargetRepository(TargetContainerRepository&& value) { m_targetRepositoryHasBeenSet = true; m_targetRepository = std::move(value); }
303 inline ContainerRecipe& WithTargetRepository(TargetContainerRepository&& value) { SetTargetRepository(std::move(value)); return *this;}
305 private:
306
307 Aws::String m_arn;
308 bool m_arnHasBeenSet = false;
309
310 ContainerType m_containerType;
311 bool m_containerTypeHasBeenSet = false;
312
313 Aws::String m_name;
314 bool m_nameHasBeenSet = false;
315
316 Aws::String m_description;
317 bool m_descriptionHasBeenSet = false;
318
319 Platform m_platform;
320 bool m_platformHasBeenSet = false;
321
322 Aws::String m_owner;
323 bool m_ownerHasBeenSet = false;
324
325 Aws::String m_version;
326 bool m_versionHasBeenSet = false;
327
329 bool m_componentsHasBeenSet = false;
330
331 InstanceConfiguration m_instanceConfiguration;
332 bool m_instanceConfigurationHasBeenSet = false;
333
334 Aws::String m_dockerfileTemplateData;
335 bool m_dockerfileTemplateDataHasBeenSet = false;
336
337 Aws::String m_kmsKeyId;
338 bool m_kmsKeyIdHasBeenSet = false;
339
340 bool m_encrypted;
341 bool m_encryptedHasBeenSet = false;
342
343 Aws::String m_parentImage;
344 bool m_parentImageHasBeenSet = false;
345
346 Aws::String m_dateCreated;
347 bool m_dateCreatedHasBeenSet = false;
348
350 bool m_tagsHasBeenSet = false;
351
352 Aws::String m_workingDirectory;
353 bool m_workingDirectoryHasBeenSet = false;
354
355 TargetContainerRepository m_targetRepository;
356 bool m_targetRepositoryHasBeenSet = false;
357 };
358
359} // namespace Model
360} // namespace imagebuilder
361} // namespace Aws
ContainerRecipe & WithContainerType(ContainerType &&value)
AWS_IMAGEBUILDER_API ContainerRecipe(Aws::Utils::Json::JsonView jsonValue)
ContainerRecipe & WithDescription(const Aws::String &value)
ContainerRecipe & WithDockerfileTemplateData(const char *value)
void SetVersion(const Aws::String &value)
const InstanceConfiguration & GetInstanceConfiguration() const
void SetOwner(const Aws::String &value)
ContainerRecipe & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetDescription(const Aws::String &value)
ContainerRecipe & WithArn(const Aws::String &value)
void SetPlatform(const Platform &value)
void SetComponents(Aws::Vector< ComponentConfiguration > &&value)
ContainerRecipe & WithDockerfileTemplateData(const Aws::String &value)
ContainerRecipe & WithKmsKeyId(const Aws::String &value)
ContainerRecipe & AddTags(const char *key, Aws::String &&value)
ContainerRecipe & WithTargetRepository(const TargetContainerRepository &value)
ContainerRecipe & WithDescription(Aws::String &&value)
void SetTargetRepository(const TargetContainerRepository &value)
ContainerRecipe & WithDescription(const char *value)
ContainerRecipe & WithWorkingDirectory(const Aws::String &value)
const Aws::String & GetDescription() const
ContainerRecipe & WithInstanceConfiguration(const InstanceConfiguration &value)
ContainerRecipe & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ContainerRecipe & WithName(const char *value)
void SetWorkingDirectory(const Aws::String &value)
ContainerRecipe & WithVersion(const char *value)
ContainerRecipe & AddTags(Aws::String &&key, const Aws::String &value)
ContainerRecipe & WithKmsKeyId(const char *value)
void SetDockerfileTemplateData(Aws::String &&value)
ContainerRecipe & AddTags(const Aws::String &key, Aws::String &&value)
ContainerRecipe & AddTags(Aws::String &&key, const char *value)
ContainerRecipe & WithContainerType(const ContainerType &value)
const ContainerType & GetContainerType() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ContainerRecipe & WithOwner(Aws::String &&value)
ContainerRecipe & WithOwner(const Aws::String &value)
ContainerRecipe & WithOwner(const char *value)
void SetName(const Aws::String &value)
void SetDateCreated(const Aws::String &value)
ContainerRecipe & WithDockerfileTemplateData(Aws::String &&value)
const TargetContainerRepository & GetTargetRepository() const
ContainerRecipe & AddTags(const char *key, const char *value)
void SetArn(const Aws::String &value)
void SetInstanceConfiguration(const InstanceConfiguration &value)
ContainerRecipe & WithPlatform(Platform &&value)
AWS_IMAGEBUILDER_API ContainerRecipe & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceConfiguration(InstanceConfiguration &&value)
ContainerRecipe & WithDateCreated(const char *value)
void SetContainerType(const ContainerType &value)
const Aws::String & GetKmsKeyId() const
ContainerRecipe & WithInstanceConfiguration(InstanceConfiguration &&value)
void SetParentImage(const Aws::String &value)
const Aws::String & GetParentImage() const
const Aws::String & GetDockerfileTemplateData() const
ContainerRecipe & WithParentImage(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerRecipe & WithTargetRepository(TargetContainerRepository &&value)
ContainerRecipe & AddComponents(const ComponentConfiguration &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ContainerRecipe & WithParentImage(const char *value)
ContainerRecipe & WithVersion(Aws::String &&value)
ContainerRecipe & WithVersion(const Aws::String &value)
void SetComponents(const Aws::Vector< ComponentConfiguration > &value)
ContainerRecipe & WithDateCreated(Aws::String &&value)
ContainerRecipe & WithEncrypted(bool value)
ContainerRecipe & WithWorkingDirectory(Aws::String &&value)
ContainerRecipe & AddComponents(ComponentConfiguration &&value)
void SetContainerType(ContainerType &&value)
ContainerRecipe & WithParentImage(Aws::String &&value)
void SetWorkingDirectory(Aws::String &&value)
ContainerRecipe & WithDateCreated(const Aws::String &value)
ContainerRecipe & WithComponents(Aws::Vector< ComponentConfiguration > &&value)
const Aws::String & GetWorkingDirectory() const
ContainerRecipe & WithArn(const char *value)
ContainerRecipe & WithName(const Aws::String &value)
void SetDockerfileTemplateData(const Aws::String &value)
void SetTargetRepository(TargetContainerRepository &&value)
const Aws::Vector< ComponentConfiguration > & GetComponents() const
ContainerRecipe & WithArn(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetDockerfileTemplateData(const char *value)
ContainerRecipe & WithName(Aws::String &&value)
ContainerRecipe & AddTags(const Aws::String &key, const Aws::String &value)
ContainerRecipe & AddTags(Aws::String &&key, Aws::String &&value)
ContainerRecipe & WithPlatform(const Platform &value)
ContainerRecipe & WithWorkingDirectory(const char *value)
const Aws::String & GetDateCreated() const
void SetKmsKeyId(const Aws::String &value)
ContainerRecipe & WithComponents(const Aws::Vector< ComponentConfiguration > &value)
ContainerRecipe & WithKmsKeyId(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
Aws::Utils::Json::JsonValue JsonValue