AWS SDK for C++  1.8.127
AWS SDK for C++
CreateImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/imagebuilder/model/ImageTestsConfiguration.h>
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& GetContainerRecipeArn() const{ return m_containerRecipeArn; }
92 
97  inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
98 
103  inline void SetContainerRecipeArn(const Aws::String& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = value; }
104 
109  inline void SetContainerRecipeArn(Aws::String&& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = std::move(value); }
110 
115  inline void SetContainerRecipeArn(const char* value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn.assign(value); }
116 
121  inline CreateImageRequest& WithContainerRecipeArn(const Aws::String& value) { SetContainerRecipeArn(value); return *this;}
122 
127  inline CreateImageRequest& WithContainerRecipeArn(Aws::String&& value) { SetContainerRecipeArn(std::move(value)); return *this;}
128 
133  inline CreateImageRequest& WithContainerRecipeArn(const char* value) { SetContainerRecipeArn(value); return *this;}
134 
135 
140  inline const Aws::String& GetDistributionConfigurationArn() const{ return m_distributionConfigurationArn; }
141 
146  inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
147 
152  inline void SetDistributionConfigurationArn(const Aws::String& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = value; }
153 
158  inline void SetDistributionConfigurationArn(Aws::String&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::move(value); }
159 
164  inline void SetDistributionConfigurationArn(const char* value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn.assign(value); }
165 
170  inline CreateImageRequest& WithDistributionConfigurationArn(const Aws::String& value) { SetDistributionConfigurationArn(value); return *this;}
171 
176  inline CreateImageRequest& WithDistributionConfigurationArn(Aws::String&& value) { SetDistributionConfigurationArn(std::move(value)); return *this;}
177 
182  inline CreateImageRequest& WithDistributionConfigurationArn(const char* value) { SetDistributionConfigurationArn(value); return *this;}
183 
184 
189  inline const Aws::String& GetInfrastructureConfigurationArn() const{ return m_infrastructureConfigurationArn; }
190 
195  inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
196 
201  inline void SetInfrastructureConfigurationArn(const Aws::String& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = value; }
202 
207  inline void SetInfrastructureConfigurationArn(Aws::String&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::move(value); }
208 
213  inline void SetInfrastructureConfigurationArn(const char* value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn.assign(value); }
214 
219  inline CreateImageRequest& WithInfrastructureConfigurationArn(const Aws::String& value) { SetInfrastructureConfigurationArn(value); return *this;}
220 
225  inline CreateImageRequest& WithInfrastructureConfigurationArn(Aws::String&& value) { SetInfrastructureConfigurationArn(std::move(value)); return *this;}
226 
231  inline CreateImageRequest& WithInfrastructureConfigurationArn(const char* value) { SetInfrastructureConfigurationArn(value); return *this;}
232 
233 
237  inline const ImageTestsConfiguration& GetImageTestsConfiguration() const{ return m_imageTestsConfiguration; }
238 
242  inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
243 
247  inline void SetImageTestsConfiguration(const ImageTestsConfiguration& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = value; }
248 
252  inline void SetImageTestsConfiguration(ImageTestsConfiguration&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::move(value); }
253 
257  inline CreateImageRequest& WithImageTestsConfiguration(const ImageTestsConfiguration& value) { SetImageTestsConfiguration(value); return *this;}
258 
262  inline CreateImageRequest& WithImageTestsConfiguration(ImageTestsConfiguration&& value) { SetImageTestsConfiguration(std::move(value)); return *this;}
263 
264 
271  inline bool GetEnhancedImageMetadataEnabled() const{ return m_enhancedImageMetadataEnabled; }
272 
279  inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
280 
287  inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; }
288 
295  inline CreateImageRequest& WithEnhancedImageMetadataEnabled(bool value) { SetEnhancedImageMetadataEnabled(value); return *this;}
296 
297 
301  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
302 
306  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
307 
311  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
312 
316  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
317 
321  inline CreateImageRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
322 
326  inline CreateImageRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
327 
331  inline CreateImageRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
332 
336  inline CreateImageRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
337 
341  inline CreateImageRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
342 
346  inline CreateImageRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
347 
351  inline CreateImageRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
352 
356  inline CreateImageRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
357 
361  inline CreateImageRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
362 
363 
367  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
368 
372  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
373 
377  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
378 
382  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
383 
387  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
388 
392  inline CreateImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
393 
397  inline CreateImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
398 
402  inline CreateImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
403 
404  private:
405 
406  Aws::String m_imageRecipeArn;
407  bool m_imageRecipeArnHasBeenSet;
408 
409  Aws::String m_containerRecipeArn;
410  bool m_containerRecipeArnHasBeenSet;
411 
412  Aws::String m_distributionConfigurationArn;
413  bool m_distributionConfigurationArnHasBeenSet;
414 
415  Aws::String m_infrastructureConfigurationArn;
416  bool m_infrastructureConfigurationArnHasBeenSet;
417 
418  ImageTestsConfiguration m_imageTestsConfiguration;
419  bool m_imageTestsConfigurationHasBeenSet;
420 
421  bool m_enhancedImageMetadataEnabled;
422  bool m_enhancedImageMetadataEnabledHasBeenSet;
423 
425  bool m_tagsHasBeenSet;
426 
427  Aws::String m_clientToken;
428  bool m_clientTokenHasBeenSet;
429  };
430 
431 } // namespace Model
432 } // namespace imagebuilder
433 } // namespace Aws
Aws::imagebuilder::Model::CreateImageRequest::ImageTestsConfigurationHasBeenSet
bool ImageTestsConfigurationHasBeenSet() const
Definition: CreateImageRequest.h:242
Aws::imagebuilder::Model::CreateImageRequest::SetDistributionConfigurationArn
void SetDistributionConfigurationArn(const char *value)
Definition: CreateImageRequest.h:164
Aws::imagebuilder::Model::CreateImageRequest::InfrastructureConfigurationArnHasBeenSet
bool InfrastructureConfigurationArnHasBeenSet() const
Definition: CreateImageRequest.h:195
Aws::imagebuilder::Model::CreateImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateImageRequest.h:33
Aws::imagebuilder::Model::CreateImageRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateImageRequest.h:387
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateImageRequest.h:346
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateImageRequest.h:336
Aws::imagebuilder::Model::CreateImageRequest::SetContainerRecipeArn
void SetContainerRecipeArn(const Aws::String &value)
Definition: CreateImageRequest.h:103
Aws::imagebuilder::Model::CreateImageRequest::SetDistributionConfigurationArn
void SetDistributionConfigurationArn(Aws::String &&value)
Definition: CreateImageRequest.h:158
Aws::imagebuilder::Model::CreateImageRequest::EnhancedImageMetadataEnabledHasBeenSet
bool EnhancedImageMetadataEnabledHasBeenSet() const
Definition: CreateImageRequest.h:279
Aws::imagebuilder::Model::CreateImageRequest::WithInfrastructureConfigurationArn
CreateImageRequest & WithInfrastructureConfigurationArn(Aws::String &&value)
Definition: CreateImageRequest.h:225
Aws::imagebuilder::Model::CreateImageRequest::WithClientToken
CreateImageRequest & WithClientToken(Aws::String &&value)
Definition: CreateImageRequest.h:397
Aws::imagebuilder::Model::CreateImageRequest::WithContainerRecipeArn
CreateImageRequest & WithContainerRecipeArn(const char *value)
Definition: CreateImageRequest.h:133
Aws::imagebuilder::Model::CreateImageRequest::WithImageRecipeArn
CreateImageRequest & WithImageRecipeArn(Aws::String &&value)
Definition: CreateImageRequest.h:78
Aws::imagebuilder::Model::CreateImageRequest::SetContainerRecipeArn
void SetContainerRecipeArn(const char *value)
Definition: CreateImageRequest.h:115
Aws::imagebuilder::Model::CreateImageRequest::SetImageTestsConfiguration
void SetImageTestsConfiguration(const ImageTestsConfiguration &value)
Definition: CreateImageRequest.h:247
Aws::imagebuilder::Model::CreateImageRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateImageRequest.h:367
Aws::imagebuilder::Model::CreateImageRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateImageRequest.h:377
Aws::imagebuilder::Model::CreateImageRequest::SetInfrastructureConfigurationArn
void SetInfrastructureConfigurationArn(const char *value)
Definition: CreateImageRequest.h:213
Aws::imagebuilder::Model::CreateImageRequest::SetImageRecipeArn
void SetImageRecipeArn(const Aws::String &value)
Definition: CreateImageRequest.h:54
Aws::imagebuilder::Model::CreateImageRequest::WithContainerRecipeArn
CreateImageRequest & WithContainerRecipeArn(const Aws::String &value)
Definition: CreateImageRequest.h:121
Aws::imagebuilder::Model::CreateImageRequest::WithInfrastructureConfigurationArn
CreateImageRequest & WithInfrastructureConfigurationArn(const char *value)
Definition: CreateImageRequest.h:231
Aws::imagebuilder::Model::CreateImageRequest::GetEnhancedImageMetadataEnabled
bool GetEnhancedImageMetadataEnabled() const
Definition: CreateImageRequest.h:271
Aws::imagebuilder::Model::CreateImageRequest::SetInfrastructureConfigurationArn
void SetInfrastructureConfigurationArn(Aws::String &&value)
Definition: CreateImageRequest.h:207
Aws::imagebuilder::Model::CreateImageRequest::SetImageRecipeArn
void SetImageRecipeArn(Aws::String &&value)
Definition: CreateImageRequest.h:60
Aws::imagebuilder::Model::CreateImageRequest::WithInfrastructureConfigurationArn
CreateImageRequest & WithInfrastructureConfigurationArn(const Aws::String &value)
Definition: CreateImageRequest.h:219
Aws::imagebuilder::Model::CreateImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::imagebuilder::Model::CreateImageRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateImageRequest.h:316
Aws::imagebuilder::Model::CreateImageRequest::SetEnhancedImageMetadataEnabled
void SetEnhancedImageMetadataEnabled(bool value)
Definition: CreateImageRequest.h:287
Aws::imagebuilder::Model::CreateImageRequest::SetImageTestsConfiguration
void SetImageTestsConfiguration(ImageTestsConfiguration &&value)
Definition: CreateImageRequest.h:252
Aws::imagebuilder::Model::CreateImageRequest
Definition: CreateImageRequest.h:25
Aws::imagebuilder::Model::CreateImageRequest::WithTags
CreateImageRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateImageRequest.h:321
Aws::imagebuilder::Model::CreateImageRequest::SetDistributionConfigurationArn
void SetDistributionConfigurationArn(const Aws::String &value)
Definition: CreateImageRequest.h:152
Aws::imagebuilder::Model::CreateImageRequest::WithImageRecipeArn
CreateImageRequest & WithImageRecipeArn(const char *value)
Definition: CreateImageRequest.h:84
Aws::imagebuilder::Model::CreateImageRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateImageRequest.h:311
Aws::imagebuilder::Model::CreateImageRequest::GetImageTestsConfiguration
const ImageTestsConfiguration & GetImageTestsConfiguration() const
Definition: CreateImageRequest.h:237
Imagebuilder_EXPORTS.h
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateImageRequest.h:331
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateImageRequest.h:341
Aws::imagebuilder::Model::CreateImageRequest::WithImageRecipeArn
CreateImageRequest & WithImageRecipeArn(const Aws::String &value)
Definition: CreateImageRequest.h:72
Aws::imagebuilder::Model::CreateImageRequest::CreateImageRequest
CreateImageRequest()
Aws::imagebuilder::Model::CreateImageRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateImageRequest.h:382
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateImageRequest.h:351
Aws::imagebuilder::Model::CreateImageRequest::GetInfrastructureConfigurationArn
const Aws::String & GetInfrastructureConfigurationArn() const
Definition: CreateImageRequest.h:189
Aws::imagebuilder::Model::CreateImageRequest::WithClientToken
CreateImageRequest & WithClientToken(const Aws::String &value)
Definition: CreateImageRequest.h:392
AWSString.h
Aws::imagebuilder::Model::CreateImageRequest::GetDistributionConfigurationArn
const Aws::String & GetDistributionConfigurationArn() const
Definition: CreateImageRequest.h:140
Aws::imagebuilder::Model::CreateImageRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateImageRequest.h:372
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(const char *key, const char *value)
Definition: CreateImageRequest.h:361
Aws::imagebuilder::Model::CreateImageRequest::ImageRecipeArnHasBeenSet
bool ImageRecipeArnHasBeenSet() const
Definition: CreateImageRequest.h:48
Aws::imagebuilder::Model::CreateImageRequest::GetContainerRecipeArn
const Aws::String & GetContainerRecipeArn() const
Definition: CreateImageRequest.h:91
Aws::imagebuilder::Model::CreateImageRequest::WithClientToken
CreateImageRequest & WithClientToken(const char *value)
Definition: CreateImageRequest.h:402
Aws::imagebuilder::Model::CreateImageRequest::SetImageRecipeArn
void SetImageRecipeArn(const char *value)
Definition: CreateImageRequest.h:66
Aws::imagebuilder::Model::CreateImageRequest::WithTags
CreateImageRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateImageRequest.h:326
Aws::imagebuilder::Model::CreateImageRequest::WithImageTestsConfiguration
CreateImageRequest & WithImageTestsConfiguration(const ImageTestsConfiguration &value)
Definition: CreateImageRequest.h:257
Aws::imagebuilder::Model::CreateImageRequest::WithDistributionConfigurationArn
CreateImageRequest & WithDistributionConfigurationArn(const char *value)
Definition: CreateImageRequest.h:182
Aws::imagebuilder::Model::CreateImageRequest::WithEnhancedImageMetadataEnabled
CreateImageRequest & WithEnhancedImageMetadataEnabled(bool value)
Definition: CreateImageRequest.h:295
Aws
Definition: AccessManagementClient.h:15
Aws::imagebuilder::Model::CreateImageRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateImageRequest.h:306
Aws::imagebuilder::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateImageRequest.h:356
Aws::imagebuilder::Model::CreateImageRequest::ContainerRecipeArnHasBeenSet
bool ContainerRecipeArnHasBeenSet() const
Definition: CreateImageRequest.h:97
Aws::imagebuilder::Model::CreateImageRequest::WithDistributionConfigurationArn
CreateImageRequest & WithDistributionConfigurationArn(const Aws::String &value)
Definition: CreateImageRequest.h:170
ImagebuilderRequest.h
Aws::imagebuilder::Model::CreateImageRequest::SetInfrastructureConfigurationArn
void SetInfrastructureConfigurationArn(const Aws::String &value)
Definition: CreateImageRequest.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_IMAGEBUILDER_API
#define AWS_IMAGEBUILDER_API
Definition: Imagebuilder_EXPORTS.h:28
Aws::imagebuilder::Model::CreateImageRequest::WithDistributionConfigurationArn
CreateImageRequest & WithDistributionConfigurationArn(Aws::String &&value)
Definition: CreateImageRequest.h:176
Aws::imagebuilder::Model::CreateImageRequest::GetImageRecipeArn
const Aws::String & GetImageRecipeArn() const
Definition: CreateImageRequest.h:42
Aws::imagebuilder::Model::CreateImageRequest::DistributionConfigurationArnHasBeenSet
bool DistributionConfigurationArnHasBeenSet() const
Definition: CreateImageRequest.h:146
Aws::imagebuilder::Model::CreateImageRequest::WithImageTestsConfiguration
CreateImageRequest & WithImageTestsConfiguration(ImageTestsConfiguration &&value)
Definition: CreateImageRequest.h:262
Aws::imagebuilder::Model::CreateImageRequest::SetContainerRecipeArn
void SetContainerRecipeArn(Aws::String &&value)
Definition: CreateImageRequest.h:109
UUID.h
AWSMap.h
Aws::imagebuilder::Model::CreateImageRequest::WithContainerRecipeArn
CreateImageRequest & WithContainerRecipeArn(Aws::String &&value)
Definition: CreateImageRequest.h:127
Aws::imagebuilder::ImagebuilderRequest
Definition: ImagebuilderRequest.h:17
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::imagebuilder::Model::CreateImageRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateImageRequest.h:301