AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageRecipe.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/ImageType.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 <aws/imagebuilder/model/AdditionalInstanceConfiguration.h>
14#include <aws/imagebuilder/model/ComponentConfiguration.h>
15#include <aws/imagebuilder/model/InstanceBlockDeviceMapping.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 ImageRecipe();
42 AWS_IMAGEBUILDER_API ImageRecipe(Aws::Utils::Json::JsonView jsonValue);
43 AWS_IMAGEBUILDER_API ImageRecipe& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetArn() const{ return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
55 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
56 inline ImageRecipe& WithArn(const Aws::String& value) { SetArn(value); return *this;}
57 inline ImageRecipe& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
58 inline ImageRecipe& WithArn(const char* value) { SetArn(value); return *this;}
60
62
66 inline const ImageType& GetType() const{ return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(const ImageType& value) { m_typeHasBeenSet = true; m_type = value; }
69 inline void SetType(ImageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
70 inline ImageRecipe& WithType(const ImageType& value) { SetType(value); return *this;}
71 inline ImageRecipe& WithType(ImageType&& value) { SetType(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline ImageRecipe& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline ImageRecipe& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline ImageRecipe& WithName(const char* value) { SetName(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
97 inline ImageRecipe& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline ImageRecipe& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline ImageRecipe& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
106 inline const Platform& GetPlatform() const{ return m_platform; }
107 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
108 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
109 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
110 inline ImageRecipe& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
111 inline ImageRecipe& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
113
115
118 inline const Aws::String& GetOwner() const{ return m_owner; }
119 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
120 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
121 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
122 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
123 inline ImageRecipe& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
124 inline ImageRecipe& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
125 inline ImageRecipe& WithOwner(const char* value) { SetOwner(value); return *this;}
127
129
132 inline const Aws::String& GetVersion() const{ return m_version; }
133 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
134 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
135 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
136 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
137 inline ImageRecipe& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
138 inline ImageRecipe& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
139 inline ImageRecipe& WithVersion(const char* value) { SetVersion(value); return *this;}
141
143
148 inline const Aws::Vector<ComponentConfiguration>& GetComponents() const{ return m_components; }
149 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
150 inline void SetComponents(const Aws::Vector<ComponentConfiguration>& value) { m_componentsHasBeenSet = true; m_components = value; }
151 inline void SetComponents(Aws::Vector<ComponentConfiguration>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
153 inline ImageRecipe& WithComponents(Aws::Vector<ComponentConfiguration>&& value) { SetComponents(std::move(value)); return *this;}
154 inline ImageRecipe& AddComponents(const ComponentConfiguration& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
155 inline ImageRecipe& AddComponents(ComponentConfiguration&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
157
159
162 inline const Aws::String& GetParentImage() const{ return m_parentImage; }
163 inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
164 inline void SetParentImage(const Aws::String& value) { m_parentImageHasBeenSet = true; m_parentImage = value; }
165 inline void SetParentImage(Aws::String&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::move(value); }
166 inline void SetParentImage(const char* value) { m_parentImageHasBeenSet = true; m_parentImage.assign(value); }
167 inline ImageRecipe& WithParentImage(const Aws::String& value) { SetParentImage(value); return *this;}
168 inline ImageRecipe& WithParentImage(Aws::String&& value) { SetParentImage(std::move(value)); return *this;}
169 inline ImageRecipe& WithParentImage(const char* value) { SetParentImage(value); return *this;}
171
173
176 inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
177 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
178 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
179 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
182 inline ImageRecipe& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
183 inline ImageRecipe& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
185
187
190 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
191 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
192 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
193 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
194 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
195 inline ImageRecipe& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
196 inline ImageRecipe& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
197 inline ImageRecipe& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
199
201
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
207 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
208 inline ImageRecipe& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
209 inline ImageRecipe& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
210 inline ImageRecipe& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
211 inline ImageRecipe& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
212 inline ImageRecipe& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
213 inline ImageRecipe& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
214 inline ImageRecipe& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
215 inline ImageRecipe& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
216 inline ImageRecipe& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
218
220
223 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
224 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
225 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
226 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
227 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
228 inline ImageRecipe& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;}
229 inline ImageRecipe& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
230 inline ImageRecipe& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
232
234
240 inline const AdditionalInstanceConfiguration& GetAdditionalInstanceConfiguration() const{ return m_additionalInstanceConfiguration; }
241 inline bool AdditionalInstanceConfigurationHasBeenSet() const { return m_additionalInstanceConfigurationHasBeenSet; }
242 inline void SetAdditionalInstanceConfiguration(const AdditionalInstanceConfiguration& value) { m_additionalInstanceConfigurationHasBeenSet = true; m_additionalInstanceConfiguration = value; }
243 inline void SetAdditionalInstanceConfiguration(AdditionalInstanceConfiguration&& value) { m_additionalInstanceConfigurationHasBeenSet = true; m_additionalInstanceConfiguration = std::move(value); }
247 private:
248
249 Aws::String m_arn;
250 bool m_arnHasBeenSet = false;
251
252 ImageType m_type;
253 bool m_typeHasBeenSet = false;
254
255 Aws::String m_name;
256 bool m_nameHasBeenSet = false;
257
258 Aws::String m_description;
259 bool m_descriptionHasBeenSet = false;
260
261 Platform m_platform;
262 bool m_platformHasBeenSet = false;
263
264 Aws::String m_owner;
265 bool m_ownerHasBeenSet = false;
266
267 Aws::String m_version;
268 bool m_versionHasBeenSet = false;
269
271 bool m_componentsHasBeenSet = false;
272
273 Aws::String m_parentImage;
274 bool m_parentImageHasBeenSet = false;
275
276 Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
277 bool m_blockDeviceMappingsHasBeenSet = false;
278
279 Aws::String m_dateCreated;
280 bool m_dateCreatedHasBeenSet = false;
281
283 bool m_tagsHasBeenSet = false;
284
285 Aws::String m_workingDirectory;
286 bool m_workingDirectoryHasBeenSet = false;
287
288 AdditionalInstanceConfiguration m_additionalInstanceConfiguration;
289 bool m_additionalInstanceConfigurationHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace imagebuilder
294} // namespace Aws
const Platform & GetPlatform() const
void SetOwner(const Aws::String &value)
void SetName(const Aws::String &value)
Definition ImageRecipe.h:80
ImageRecipe & WithWorkingDirectory(const Aws::String &value)
ImageRecipe & WithOwner(Aws::String &&value)
ImageRecipe & WithAdditionalInstanceConfiguration(AdditionalInstanceConfiguration &&value)
void SetOwner(Aws::String &&value)
ImageRecipe & AddTags(const char *key, Aws::String &&value)
ImageRecipe & WithVersion(const char *value)
ImageRecipe & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
const Aws::String & GetVersion() const
ImageRecipe & WithComponents(Aws::Vector< ComponentConfiguration > &&value)
void SetType(ImageType &&value)
Definition ImageRecipe.h:69
const Aws::Vector< ComponentConfiguration > & GetComponents() const
void SetDescription(Aws::String &&value)
Definition ImageRecipe.h:95
ImageRecipe & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetArn() const
Definition ImageRecipe.h:51
ImageRecipe & AddComponents(const ComponentConfiguration &value)
void SetVersion(Aws::String &&value)
void SetDateCreated(Aws::String &&value)
void SetWorkingDirectory(const Aws::String &value)
ImageRecipe & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::String & GetName() const
Definition ImageRecipe.h:78
ImageRecipe & WithDateCreated(Aws::String &&value)
ImageRecipe & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_IMAGEBUILDER_API ImageRecipe(Aws::Utils::Json::JsonView jsonValue)
void SetPlatform(Platform &&value)
ImageRecipe & WithName(const char *value)
Definition ImageRecipe.h:85
ImageRecipe & AddTags(const char *key, const char *value)
ImageRecipe & WithType(const ImageType &value)
Definition ImageRecipe.h:70
ImageRecipe & WithWorkingDirectory(Aws::String &&value)
ImageRecipe & WithType(ImageType &&value)
Definition ImageRecipe.h:71
const Aws::String & GetWorkingDirectory() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDateCreated() const
ImageRecipe & WithName(Aws::String &&value)
Definition ImageRecipe.h:84
ImageRecipe & WithPlatform(const Platform &value)
const Aws::String & GetOwner() const
void SetVersion(const Aws::String &value)
void SetAdditionalInstanceConfiguration(AdditionalInstanceConfiguration &&value)
void SetArn(Aws::String &&value)
Definition ImageRecipe.h:54
ImageRecipe & AddTags(Aws::String &&key, const Aws::String &value)
void SetParentImage(Aws::String &&value)
void SetWorkingDirectory(Aws::String &&value)
ImageRecipe & WithDateCreated(const Aws::String &value)
ImageRecipe & WithArn(Aws::String &&value)
Definition ImageRecipe.h:57
ImageRecipe & WithDateCreated(const char *value)
ImageRecipe & WithArn(const char *value)
Definition ImageRecipe.h:58
void SetComponents(Aws::Vector< ComponentConfiguration > &&value)
ImageRecipe & WithParentImage(Aws::String &&value)
ImageRecipe & WithDescription(Aws::String &&value)
Definition ImageRecipe.h:98
void SetDescription(const char *value)
Definition ImageRecipe.h:96
ImageRecipe & WithDescription(const Aws::String &value)
Definition ImageRecipe.h:97
ImageRecipe & AddTags(const Aws::String &key, Aws::String &&value)
ImageRecipe & WithDescription(const char *value)
Definition ImageRecipe.h:99
void SetName(const char *value)
Definition ImageRecipe.h:82
ImageRecipe & WithWorkingDirectory(const char *value)
const Aws::String & GetParentImage() const
void SetDateCreated(const char *value)
ImageRecipe & WithOwner(const Aws::String &value)
ImageRecipe & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ImageRecipe & WithAdditionalInstanceConfiguration(const AdditionalInstanceConfiguration &value)
void SetParentImage(const char *value)
ImageRecipe & WithVersion(const Aws::String &value)
ImageRecipe & WithVersion(Aws::String &&value)
void SetName(Aws::String &&value)
Definition ImageRecipe.h:81
void SetType(const ImageType &value)
Definition ImageRecipe.h:68
ImageRecipe & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ImageRecipe & WithPlatform(Platform &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetPlatform(const Platform &value)
void SetWorkingDirectory(const char *value)
ImageRecipe & WithOwner(const char *value)
ImageRecipe & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
ImageRecipe & AddTags(Aws::String &&key, const char *value)
void SetVersion(const char *value)
void SetComponents(const Aws::Vector< ComponentConfiguration > &value)
AWS_IMAGEBUILDER_API ImageRecipe & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetParentImage(const Aws::String &value)
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
const Aws::String & GetDescription() const
Definition ImageRecipe.h:92
ImageRecipe & AddComponents(ComponentConfiguration &&value)
ImageRecipe & WithArn(const Aws::String &value)
Definition ImageRecipe.h:56
bool AdditionalInstanceConfigurationHasBeenSet() const
const ImageType & GetType() const
Definition ImageRecipe.h:66
void SetDescription(const Aws::String &value)
Definition ImageRecipe.h:94
ImageRecipe & WithComponents(const Aws::Vector< ComponentConfiguration > &value)
void SetAdditionalInstanceConfiguration(const AdditionalInstanceConfiguration &value)
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
ImageRecipe & WithName(const Aws::String &value)
Definition ImageRecipe.h:83
ImageRecipe & WithParentImage(const Aws::String &value)
void SetOwner(const char *value)
const AdditionalInstanceConfiguration & GetAdditionalInstanceConfiguration() const
void SetArn(const char *value)
Definition ImageRecipe.h:55
AWS_IMAGEBUILDER_API ImageRecipe()
void SetDateCreated(const Aws::String &value)
ImageRecipe & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImageRecipe & WithParentImage(const char *value)
void SetArn(const Aws::String &value)
Definition ImageRecipe.h:53
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&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