AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateImageRecipeRequest.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/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/imagebuilder/model/AdditionalInstanceConfiguration.h>
13#include <aws/imagebuilder/model/ComponentConfiguration.h>
14#include <aws/imagebuilder/model/InstanceBlockDeviceMapping.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace imagebuilder
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IMAGEBUILDER_API CreateImageRecipeRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateImageRecipe"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateImageRecipeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateImageRecipeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateImageRecipeRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateImageRecipeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateImageRecipeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateImageRecipeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
83 inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
84 inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
85 inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
86 inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
87 inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
88 inline CreateImageRecipeRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
89 inline CreateImageRecipeRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
90 inline CreateImageRecipeRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
92
94
97 inline const Aws::Vector<ComponentConfiguration>& GetComponents() const{ return m_components; }
98 inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
99 inline void SetComponents(const Aws::Vector<ComponentConfiguration>& value) { m_componentsHasBeenSet = true; m_components = value; }
100 inline void SetComponents(Aws::Vector<ComponentConfiguration>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
103 inline CreateImageRecipeRequest& AddComponents(const ComponentConfiguration& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
104 inline CreateImageRecipeRequest& AddComponents(ComponentConfiguration&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
106
108
117 inline const Aws::String& GetParentImage() const{ return m_parentImage; }
118 inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
119 inline void SetParentImage(const Aws::String& value) { m_parentImageHasBeenSet = true; m_parentImage = value; }
120 inline void SetParentImage(Aws::String&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::move(value); }
121 inline void SetParentImage(const char* value) { m_parentImageHasBeenSet = true; m_parentImage.assign(value); }
122 inline CreateImageRecipeRequest& WithParentImage(const Aws::String& value) { SetParentImage(value); return *this;}
123 inline CreateImageRecipeRequest& WithParentImage(Aws::String&& value) { SetParentImage(std::move(value)); return *this;}
124 inline CreateImageRecipeRequest& WithParentImage(const char* value) { SetParentImage(value); return *this;}
126
128
131 inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
132 inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
133 inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
134 inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
137 inline CreateImageRecipeRequest& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
138 inline CreateImageRecipeRequest& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
140
142
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
150 inline CreateImageRecipeRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
151 inline CreateImageRecipeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
152 inline CreateImageRecipeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline CreateImageRecipeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
154 inline CreateImageRecipeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
155 inline CreateImageRecipeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
156 inline CreateImageRecipeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
157 inline CreateImageRecipeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
159
161
164 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
165 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
166 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
167 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
168 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
170 inline CreateImageRecipeRequest& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
171 inline CreateImageRecipeRequest& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
173
175
178 inline const AdditionalInstanceConfiguration& GetAdditionalInstanceConfiguration() const{ return m_additionalInstanceConfiguration; }
179 inline bool AdditionalInstanceConfigurationHasBeenSet() const { return m_additionalInstanceConfigurationHasBeenSet; }
180 inline void SetAdditionalInstanceConfiguration(const AdditionalInstanceConfiguration& value) { m_additionalInstanceConfigurationHasBeenSet = true; m_additionalInstanceConfiguration = value; }
181 inline void SetAdditionalInstanceConfiguration(AdditionalInstanceConfiguration&& value) { m_additionalInstanceConfigurationHasBeenSet = true; m_additionalInstanceConfiguration = std::move(value); }
185
187
193 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
194 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
195 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
196 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
197 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
198 inline CreateImageRecipeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
199 inline CreateImageRecipeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
200 inline CreateImageRecipeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
202 private:
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_description;
208 bool m_descriptionHasBeenSet = false;
209
210 Aws::String m_semanticVersion;
211 bool m_semanticVersionHasBeenSet = false;
212
214 bool m_componentsHasBeenSet = false;
215
216 Aws::String m_parentImage;
217 bool m_parentImageHasBeenSet = false;
218
219 Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
220 bool m_blockDeviceMappingsHasBeenSet = false;
221
223 bool m_tagsHasBeenSet = false;
224
225 Aws::String m_workingDirectory;
226 bool m_workingDirectoryHasBeenSet = false;
227
228 AdditionalInstanceConfiguration m_additionalInstanceConfiguration;
229 bool m_additionalInstanceConfigurationHasBeenSet = false;
230
231 Aws::String m_clientToken;
232 bool m_clientTokenHasBeenSet = false;
233 };
234
235} // namespace Model
236} // namespace imagebuilder
237} // namespace Aws
CreateImageRecipeRequest & WithComponents(Aws::Vector< ComponentConfiguration > &&value)
CreateImageRecipeRequest & WithName(const Aws::String &value)
CreateImageRecipeRequest & WithParentImage(Aws::String &&value)
void SetComponents(const Aws::Vector< ComponentConfiguration > &value)
CreateImageRecipeRequest & AddComponents(const ComponentConfiguration &value)
CreateImageRecipeRequest & AddTags(const char *key, Aws::String &&value)
CreateImageRecipeRequest & WithDescription(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateImageRecipeRequest & WithParentImage(const Aws::String &value)
CreateImageRecipeRequest & WithWorkingDirectory(const char *value)
CreateImageRecipeRequest & AddTags(const char *key, const char *value)
CreateImageRecipeRequest & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
CreateImageRecipeRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateImageRecipeRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateImageRecipeRequest & WithClientToken(Aws::String &&value)
const AdditionalInstanceConfiguration & GetAdditionalInstanceConfiguration() const
CreateImageRecipeRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateImageRecipeRequest & WithDescription(const Aws::String &value)
void SetComponents(Aws::Vector< ComponentConfiguration > &&value)
CreateImageRecipeRequest & WithComponents(const Aws::Vector< ComponentConfiguration > &value)
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateImageRecipeRequest & WithClientToken(const char *value)
CreateImageRecipeRequest & AddTags(Aws::String &&key, const char *value)
void SetAdditionalInstanceConfiguration(AdditionalInstanceConfiguration &&value)
CreateImageRecipeRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateImageRecipeRequest & WithSemanticVersion(Aws::String &&value)
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
CreateImageRecipeRequest & WithName(const char *value)
void SetAdditionalInstanceConfiguration(const AdditionalInstanceConfiguration &value)
CreateImageRecipeRequest & WithDescription(const char *value)
CreateImageRecipeRequest & WithWorkingDirectory(const Aws::String &value)
CreateImageRecipeRequest & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
CreateImageRecipeRequest & WithClientToken(const Aws::String &value)
CreateImageRecipeRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateImageRecipeRequest & WithName(Aws::String &&value)
CreateImageRecipeRequest & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
CreateImageRecipeRequest & WithWorkingDirectory(Aws::String &&value)
CreateImageRecipeRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
CreateImageRecipeRequest & WithSemanticVersion(const Aws::String &value)
CreateImageRecipeRequest & AddComponents(ComponentConfiguration &&value)
CreateImageRecipeRequest & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
CreateImageRecipeRequest & WithParentImage(const char *value)
CreateImageRecipeRequest & WithSemanticVersion(const char *value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
const Aws::Vector< ComponentConfiguration > & GetComponents() const
virtual const char * GetServiceRequestName() const override
CreateImageRecipeRequest & WithAdditionalInstanceConfiguration(const AdditionalInstanceConfiguration &value)
CreateImageRecipeRequest & WithAdditionalInstanceConfiguration(AdditionalInstanceConfiguration &&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