AWS SDK for C++  1.8.71
AWS SDK for C++
CreateImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace imagebuilder
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateImage"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetImageRecipeArn() const{ return m_imageRecipeArn; }
43 
48  inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
49 
54  inline void SetImageRecipeArn(const Aws::String& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = value; }
55 
60  inline void SetImageRecipeArn(Aws::String&& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = std::move(value); }
61 
66  inline void SetImageRecipeArn(const char* value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn.assign(value); }
67 
72  inline CreateImageRequest& WithImageRecipeArn(const Aws::String& value) { SetImageRecipeArn(value); return *this;}
73 
78  inline CreateImageRequest& WithImageRecipeArn(Aws::String&& value) { SetImageRecipeArn(std::move(value)); return *this;}
79 
84  inline CreateImageRequest& WithImageRecipeArn(const char* value) { SetImageRecipeArn(value); return *this;}
85 
86 
91  inline const Aws::String& GetDistributionConfigurationArn() const{ return m_distributionConfigurationArn; }
92 
97  inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
98 
103  inline void SetDistributionConfigurationArn(const Aws::String& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = value; }
104 
109  inline void SetDistributionConfigurationArn(Aws::String&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::move(value); }
110 
115  inline void SetDistributionConfigurationArn(const char* value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn.assign(value); }
116 
121  inline CreateImageRequest& WithDistributionConfigurationArn(const Aws::String& value) { SetDistributionConfigurationArn(value); return *this;}
122 
127  inline CreateImageRequest& WithDistributionConfigurationArn(Aws::String&& value) { SetDistributionConfigurationArn(std::move(value)); return *this;}
128 
133  inline CreateImageRequest& WithDistributionConfigurationArn(const char* value) { SetDistributionConfigurationArn(value); return *this;}
134 
135 
140  inline const Aws::String& GetInfrastructureConfigurationArn() const{ return m_infrastructureConfigurationArn; }
141 
146  inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
147 
152  inline void SetInfrastructureConfigurationArn(const Aws::String& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = value; }
153 
158  inline void SetInfrastructureConfigurationArn(Aws::String&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::move(value); }
159 
164  inline void SetInfrastructureConfigurationArn(const char* value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn.assign(value); }
165 
170  inline CreateImageRequest& WithInfrastructureConfigurationArn(const Aws::String& value) { SetInfrastructureConfigurationArn(value); return *this;}
171 
176  inline CreateImageRequest& WithInfrastructureConfigurationArn(Aws::String&& value) { SetInfrastructureConfigurationArn(std::move(value)); return *this;}
177 
182  inline CreateImageRequest& WithInfrastructureConfigurationArn(const char* value) { SetInfrastructureConfigurationArn(value); return *this;}
183 
184 
188  inline const ImageTestsConfiguration& GetImageTestsConfiguration() const{ return m_imageTestsConfiguration; }
189 
193  inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
194 
198  inline void SetImageTestsConfiguration(const ImageTestsConfiguration& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = value; }
199 
203  inline void SetImageTestsConfiguration(ImageTestsConfiguration&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::move(value); }
204 
208  inline CreateImageRequest& WithImageTestsConfiguration(const ImageTestsConfiguration& value) { SetImageTestsConfiguration(value); return *this;}
209 
213  inline CreateImageRequest& WithImageTestsConfiguration(ImageTestsConfiguration&& value) { SetImageTestsConfiguration(std::move(value)); return *this;}
214 
215 
222  inline bool GetEnhancedImageMetadataEnabled() const{ return m_enhancedImageMetadataEnabled; }
223 
230  inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
231 
238  inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; }
239 
246  inline CreateImageRequest& WithEnhancedImageMetadataEnabled(bool value) { SetEnhancedImageMetadataEnabled(value); return *this;}
247 
248 
252  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
253 
257  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
258 
262  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
263 
267  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
268 
272  inline CreateImageRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
273 
277  inline CreateImageRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
278 
282  inline CreateImageRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
283 
287  inline CreateImageRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
288 
292  inline CreateImageRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
293 
297  inline CreateImageRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
298 
302  inline CreateImageRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
303 
307  inline CreateImageRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
308 
312  inline CreateImageRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
313 
314 
318  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
319 
323  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
324 
328  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
329 
333  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
334 
338  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
339 
343  inline CreateImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
344 
348  inline CreateImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
349 
353  inline CreateImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
354 
355  private:
356 
357  Aws::String m_imageRecipeArn;
358  bool m_imageRecipeArnHasBeenSet;
359 
360  Aws::String m_distributionConfigurationArn;
361  bool m_distributionConfigurationArnHasBeenSet;
362 
363  Aws::String m_infrastructureConfigurationArn;
364  bool m_infrastructureConfigurationArnHasBeenSet;
365 
366  ImageTestsConfiguration m_imageTestsConfiguration;
367  bool m_imageTestsConfigurationHasBeenSet;
368 
369  bool m_enhancedImageMetadataEnabled;
370  bool m_enhancedImageMetadataEnabledHasBeenSet;
371 
373  bool m_tagsHasBeenSet;
374 
375  Aws::String m_clientToken;
376  bool m_clientTokenHasBeenSet;
377  };
378 
379 } // namespace Model
380 } // namespace imagebuilder
381 } // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateImageRequest & AddTags(const char *key, Aws::String &&value)
CreateImageRequest & WithDistributionConfigurationArn(const char *value)
virtual const char * GetServiceRequestName() const override
void SetImageTestsConfiguration(ImageTestsConfiguration &&value)
void SetInfrastructureConfigurationArn(const char *value)
const ImageTestsConfiguration & GetImageTestsConfiguration() const
CreateImageRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateImageRequest & AddTags(const char *key, const char *value)
CreateImageRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::String & GetInfrastructureConfigurationArn() const
#define AWS_IMAGEBUILDER_API
void SetImageTestsConfiguration(const ImageTestsConfiguration &value)
CreateImageRequest & WithImageRecipeArn(const Aws::String &value)
CreateImageRequest & WithClientToken(Aws::String &&value)
CreateImageRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateImageRequest & WithInfrastructureConfigurationArn(Aws::String &&value)
void SetInfrastructureConfigurationArn(Aws::String &&value)
void SetInfrastructureConfigurationArn(const Aws::String &value)
CreateImageRequest & WithDistributionConfigurationArn(const Aws::String &value)
void SetClientToken(const Aws::String &value)
CreateImageRequest & WithInfrastructureConfigurationArn(const char *value)
CreateImageRequest & WithEnhancedImageMetadataEnabled(bool value)
CreateImageRequest & WithClientToken(const Aws::String &value)
CreateImageRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateImageRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetDistributionConfigurationArn(Aws::String &&value)
CreateImageRequest & WithClientToken(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateImageRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetDistributionConfigurationArn() const
void SetImageRecipeArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateImageRequest & WithDistributionConfigurationArn(Aws::String &&value)
CreateImageRequest & WithImageTestsConfiguration(ImageTestsConfiguration &&value)
CreateImageRequest & WithImageRecipeArn(Aws::String &&value)
CreateImageRequest & AddTags(Aws::String &&key, const char *value)
CreateImageRequest & WithInfrastructureConfigurationArn(const Aws::String &value)
void SetDistributionConfigurationArn(const Aws::String &value)
CreateImageRequest & WithImageTestsConfiguration(const ImageTestsConfiguration &value)
CreateImageRequest & WithImageRecipeArn(const char *value)