AWS SDK for C++  1.8.71
AWS SDK for C++
CreateImageRecipeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace imagebuilder
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateImageRecipe"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline CreateImageRecipeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline CreateImageRecipeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline CreateImageRecipeRequest& WithName(const char* value) { SetName(value); return *this;}
79 
80 
84  inline const Aws::String& GetDescription() const{ return m_description; }
85 
89  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 
94  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 
99  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
100 
104  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 
109  inline CreateImageRecipeRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 
114  inline CreateImageRecipeRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 
119  inline CreateImageRecipeRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120 
121 
125  inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; }
126 
130  inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; }
131 
135  inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; }
136 
140  inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); }
141 
145  inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); }
146 
150  inline CreateImageRecipeRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;}
151 
155  inline CreateImageRecipeRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;}
156 
160  inline CreateImageRecipeRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;}
161 
162 
166  inline const Aws::Vector<ComponentConfiguration>& GetComponents() const{ return m_components; }
167 
171  inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
172 
176  inline void SetComponents(const Aws::Vector<ComponentConfiguration>& value) { m_componentsHasBeenSet = true; m_components = value; }
177 
181  inline void SetComponents(Aws::Vector<ComponentConfiguration>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
182 
186  inline CreateImageRecipeRequest& WithComponents(const Aws::Vector<ComponentConfiguration>& value) { SetComponents(value); return *this;}
187 
191  inline CreateImageRecipeRequest& WithComponents(Aws::Vector<ComponentConfiguration>&& value) { SetComponents(std::move(value)); return *this;}
192 
196  inline CreateImageRecipeRequest& AddComponents(const ComponentConfiguration& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
197 
201  inline CreateImageRecipeRequest& AddComponents(ComponentConfiguration&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
202 
203 
213  inline const Aws::String& GetParentImage() const{ return m_parentImage; }
214 
224  inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; }
225 
235  inline void SetParentImage(const Aws::String& value) { m_parentImageHasBeenSet = true; m_parentImage = value; }
236 
246  inline void SetParentImage(Aws::String&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::move(value); }
247 
257  inline void SetParentImage(const char* value) { m_parentImageHasBeenSet = true; m_parentImage.assign(value); }
258 
268  inline CreateImageRecipeRequest& WithParentImage(const Aws::String& value) { SetParentImage(value); return *this;}
269 
279  inline CreateImageRecipeRequest& WithParentImage(Aws::String&& value) { SetParentImage(std::move(value)); return *this;}
280 
290  inline CreateImageRecipeRequest& WithParentImage(const char* value) { SetParentImage(value); return *this;}
291 
292 
296  inline const Aws::Vector<InstanceBlockDeviceMapping>& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; }
297 
301  inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; }
302 
306  inline void SetBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; }
307 
311  inline void SetBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); }
312 
316  inline CreateImageRecipeRequest& WithBlockDeviceMappings(const Aws::Vector<InstanceBlockDeviceMapping>& value) { SetBlockDeviceMappings(value); return *this;}
317 
321  inline CreateImageRecipeRequest& WithBlockDeviceMappings(Aws::Vector<InstanceBlockDeviceMapping>&& value) { SetBlockDeviceMappings(std::move(value)); return *this;}
322 
326  inline CreateImageRecipeRequest& AddBlockDeviceMappings(const InstanceBlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; }
327 
331  inline CreateImageRecipeRequest& AddBlockDeviceMappings(InstanceBlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; }
332 
333 
337  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
338 
342  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
343 
347  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
348 
352  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
353 
357  inline CreateImageRecipeRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
358 
362  inline CreateImageRecipeRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
363 
367  inline CreateImageRecipeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
368 
372  inline CreateImageRecipeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
373 
377  inline CreateImageRecipeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
378 
382  inline CreateImageRecipeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
383 
387  inline CreateImageRecipeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
388 
392  inline CreateImageRecipeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
393 
397  inline CreateImageRecipeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
398 
399 
403  inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
404 
408  inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
409 
413  inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
414 
418  inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
419 
423  inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
424 
428  inline CreateImageRecipeRequest& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;}
429 
433  inline CreateImageRecipeRequest& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
434 
438  inline CreateImageRecipeRequest& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
439 
440 
444  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
445 
449  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
450 
454  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
455 
459  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
460 
464  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
465 
469  inline CreateImageRecipeRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
470 
474  inline CreateImageRecipeRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
475 
479  inline CreateImageRecipeRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
480 
481  private:
482 
483  Aws::String m_name;
484  bool m_nameHasBeenSet;
485 
486  Aws::String m_description;
487  bool m_descriptionHasBeenSet;
488 
489  Aws::String m_semanticVersion;
490  bool m_semanticVersionHasBeenSet;
491 
493  bool m_componentsHasBeenSet;
494 
495  Aws::String m_parentImage;
496  bool m_parentImageHasBeenSet;
497 
498  Aws::Vector<InstanceBlockDeviceMapping> m_blockDeviceMappings;
499  bool m_blockDeviceMappingsHasBeenSet;
500 
502  bool m_tagsHasBeenSet;
503 
504  Aws::String m_workingDirectory;
505  bool m_workingDirectoryHasBeenSet;
506 
507  Aws::String m_clientToken;
508  bool m_clientTokenHasBeenSet;
509  };
510 
511 } // namespace Model
512 } // namespace imagebuilder
513 } // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateImageRecipeRequest & WithDescription(Aws::String &&value)
CreateImageRecipeRequest & AddTags(const char *key, const char *value)
CreateImageRecipeRequest & WithDescription(const Aws::String &value)
CreateImageRecipeRequest & WithName(const char *value)
CreateImageRecipeRequest & WithParentImage(const Aws::String &value)
CreateImageRecipeRequest & AddComponents(ComponentConfiguration &&value)
CreateImageRecipeRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateImageRecipeRequest & AddBlockDeviceMappings(const InstanceBlockDeviceMapping &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetComponents(Aws::Vector< ComponentConfiguration > &&value)
CreateImageRecipeRequest & WithBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
#define AWS_IMAGEBUILDER_API
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateImageRecipeRequest & WithClientToken(const Aws::String &value)
CreateImageRecipeRequest & WithWorkingDirectory(Aws::String &&value)
CreateImageRecipeRequest & WithComponents(const Aws::Vector< ComponentConfiguration > &value)
virtual const char * GetServiceRequestName() const override
CreateImageRecipeRequest & WithSemanticVersion(const Aws::String &value)
CreateImageRecipeRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateImageRecipeRequest & WithClientToken(Aws::String &&value)
void SetComponents(const Aws::Vector< ComponentConfiguration > &value)
CreateImageRecipeRequest & WithWorkingDirectory(const Aws::String &value)
const Aws::Vector< InstanceBlockDeviceMapping > & GetBlockDeviceMappings() const
CreateImageRecipeRequest & WithName(Aws::String &&value)
CreateImageRecipeRequest & WithName(const Aws::String &value)
CreateImageRecipeRequest & WithBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
CreateImageRecipeRequest & AddTags(Aws::String &&key, const char *value)
CreateImageRecipeRequest & AddTags(const char *key, Aws::String &&value)
CreateImageRecipeRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateImageRecipeRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateImageRecipeRequest & WithComponents(Aws::Vector< ComponentConfiguration > &&value)
CreateImageRecipeRequest & WithClientToken(const char *value)
CreateImageRecipeRequest & WithSemanticVersion(Aws::String &&value)
CreateImageRecipeRequest & WithParentImage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateImageRecipeRequest & WithSemanticVersion(const char *value)
const Aws::Vector< ComponentConfiguration > & GetComponents() const
void SetBlockDeviceMappings(Aws::Vector< InstanceBlockDeviceMapping > &&value)
CreateImageRecipeRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateImageRecipeRequest & WithDescription(const char *value)
CreateImageRecipeRequest & AddBlockDeviceMappings(InstanceBlockDeviceMapping &&value)
CreateImageRecipeRequest & AddComponents(const ComponentConfiguration &value)
CreateImageRecipeRequest & WithWorkingDirectory(const char *value)
CreateImageRecipeRequest & WithParentImage(Aws::String &&value)
void SetBlockDeviceMappings(const Aws::Vector< InstanceBlockDeviceMapping > &value)
CreateImageRecipeRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)