AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateImageRequest.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/imagebuilder/model/ImageTestsConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/imagebuilder/model/WorkflowConfiguration.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 CreateImageRequest();
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 "CreateImage"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetImageRecipeArn() const{ return m_imageRecipeArn; }
47 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
48 inline void SetImageRecipeArn(const Aws::String& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = value; }
49 inline void SetImageRecipeArn(Aws::String&& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = std::move(value); }
50 inline void SetImageRecipeArn(const char* value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn.assign(value); }
51 inline CreateImageRequest& WithImageRecipeArn(const Aws::String& value) { SetImageRecipeArn(value); return *this;}
52 inline CreateImageRequest& WithImageRecipeArn(Aws::String&& value) { SetImageRecipeArn(std::move(value)); return *this;}
53 inline CreateImageRequest& WithImageRecipeArn(const char* value) { SetImageRecipeArn(value); return *this;}
55
57
61 inline const Aws::String& GetContainerRecipeArn() const{ return m_containerRecipeArn; }
62 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
63 inline void SetContainerRecipeArn(const Aws::String& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = value; }
64 inline void SetContainerRecipeArn(Aws::String&& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = std::move(value); }
65 inline void SetContainerRecipeArn(const char* value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn.assign(value); }
66 inline CreateImageRequest& WithContainerRecipeArn(const Aws::String& value) { SetContainerRecipeArn(value); return *this;}
67 inline CreateImageRequest& WithContainerRecipeArn(Aws::String&& value) { SetContainerRecipeArn(std::move(value)); return *this;}
68 inline CreateImageRequest& WithContainerRecipeArn(const char* value) { SetContainerRecipeArn(value); return *this;}
70
72
76 inline const Aws::String& GetDistributionConfigurationArn() const{ return m_distributionConfigurationArn; }
77 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
78 inline void SetDistributionConfigurationArn(const Aws::String& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = value; }
79 inline void SetDistributionConfigurationArn(Aws::String&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::move(value); }
80 inline void SetDistributionConfigurationArn(const char* value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn.assign(value); }
85
87
91 inline const Aws::String& GetInfrastructureConfigurationArn() const{ return m_infrastructureConfigurationArn; }
92 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
93 inline void SetInfrastructureConfigurationArn(const Aws::String& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = value; }
94 inline void SetInfrastructureConfigurationArn(Aws::String&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::move(value); }
95 inline void SetInfrastructureConfigurationArn(const char* value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn.assign(value); }
100
102
105 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const{ return m_imageTestsConfiguration; }
106 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
107 inline void SetImageTestsConfiguration(const ImageTestsConfiguration& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = value; }
108 inline void SetImageTestsConfiguration(ImageTestsConfiguration&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::move(value); }
109 inline CreateImageRequest& WithImageTestsConfiguration(const ImageTestsConfiguration& value) { SetImageTestsConfiguration(value); return *this;}
110 inline CreateImageRequest& WithImageTestsConfiguration(ImageTestsConfiguration&& value) { SetImageTestsConfiguration(std::move(value)); return *this;}
112
114
120 inline bool GetEnhancedImageMetadataEnabled() const{ return m_enhancedImageMetadataEnabled; }
121 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
122 inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; }
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateImageRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
135 inline CreateImageRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateImageRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 inline CreateImageRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
138 inline CreateImageRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline CreateImageRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
140 inline CreateImageRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
141 inline CreateImageRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
142 inline CreateImageRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
144
146
152 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
153 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
154 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
155 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
156 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
157 inline CreateImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
158 inline CreateImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
159 inline CreateImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
161
163
166 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
167 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
168 inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
169 inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
173
175
178 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const{ return m_workflows; }
179 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
180 inline void SetWorkflows(const Aws::Vector<WorkflowConfiguration>& value) { m_workflowsHasBeenSet = true; m_workflows = value; }
181 inline void SetWorkflows(Aws::Vector<WorkflowConfiguration>&& value) { m_workflowsHasBeenSet = true; m_workflows = std::move(value); }
183 inline CreateImageRequest& WithWorkflows(Aws::Vector<WorkflowConfiguration>&& value) { SetWorkflows(std::move(value)); return *this;}
184 inline CreateImageRequest& AddWorkflows(const WorkflowConfiguration& value) { m_workflowsHasBeenSet = true; m_workflows.push_back(value); return *this; }
185 inline CreateImageRequest& AddWorkflows(WorkflowConfiguration&& value) { m_workflowsHasBeenSet = true; m_workflows.push_back(std::move(value)); return *this; }
187
189
193 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
194 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
195 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
196 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
197 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
198 inline CreateImageRequest& WithExecutionRole(const Aws::String& value) { SetExecutionRole(value); return *this;}
199 inline CreateImageRequest& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
200 inline CreateImageRequest& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
202 private:
203
204 Aws::String m_imageRecipeArn;
205 bool m_imageRecipeArnHasBeenSet = false;
206
207 Aws::String m_containerRecipeArn;
208 bool m_containerRecipeArnHasBeenSet = false;
209
210 Aws::String m_distributionConfigurationArn;
211 bool m_distributionConfigurationArnHasBeenSet = false;
212
213 Aws::String m_infrastructureConfigurationArn;
214 bool m_infrastructureConfigurationArnHasBeenSet = false;
215
216 ImageTestsConfiguration m_imageTestsConfiguration;
217 bool m_imageTestsConfigurationHasBeenSet = false;
218
219 bool m_enhancedImageMetadataEnabled;
220 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
221
223 bool m_tagsHasBeenSet = false;
224
225 Aws::String m_clientToken;
226 bool m_clientTokenHasBeenSet = false;
227
228 ImageScanningConfiguration m_imageScanningConfiguration;
229 bool m_imageScanningConfigurationHasBeenSet = false;
230
232 bool m_workflowsHasBeenSet = false;
233
234 Aws::String m_executionRole;
235 bool m_executionRoleHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace imagebuilder
240} // namespace Aws
CreateImageRequest & WithInfrastructureConfigurationArn(const Aws::String &value)
CreateImageRequest & AddTags(const char *key, const char *value)
CreateImageRequest & WithImageRecipeArn(const char *value)
CreateImageRequest & WithImageRecipeArn(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetInfrastructureConfigurationArn(const char *value)
CreateImageRequest & WithClientToken(const Aws::String &value)
void SetImageTestsConfiguration(const ImageTestsConfiguration &value)
void SetDistributionConfigurationArn(const Aws::String &value)
CreateImageRequest & WithContainerRecipeArn(Aws::String &&value)
CreateImageRequest & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
CreateImageRequest & AddTags(const char *key, Aws::String &&value)
CreateImageRequest & WithContainerRecipeArn(const char *value)
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
CreateImageRequest & AddWorkflows(const WorkflowConfiguration &value)
CreateImageRequest & WithContainerRecipeArn(const Aws::String &value)
CreateImageRequest & WithInfrastructureConfigurationArn(Aws::String &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
const Aws::String & GetInfrastructureConfigurationArn() const
CreateImageRequest & WithExecutionRole(const char *value)
CreateImageRequest & WithDistributionConfigurationArn(const char *value)
CreateImageRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
void SetInfrastructureConfigurationArn(const Aws::String &value)
CreateImageRequest & WithClientToken(Aws::String &&value)
void SetImageTestsConfiguration(ImageTestsConfiguration &&value)
void SetInfrastructureConfigurationArn(Aws::String &&value)
CreateImageRequest & WithImageRecipeArn(Aws::String &&value)
void SetClientToken(const Aws::String &value)
const ImageTestsConfiguration & GetImageTestsConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateImageRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateImageRequest & WithInfrastructureConfigurationArn(const char *value)
CreateImageRequest & AddWorkflows(WorkflowConfiguration &&value)
CreateImageRequest & WithClientToken(const char *value)
CreateImageRequest & WithDistributionConfigurationArn(Aws::String &&value)
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
CreateImageRequest & WithWorkflows(Aws::Vector< WorkflowConfiguration > &&value)
CreateImageRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateImageRequest & WithExecutionRole(const Aws::String &value)
CreateImageRequest & WithWorkflows(const Aws::Vector< WorkflowConfiguration > &value)
void SetExecutionRole(const Aws::String &value)
CreateImageRequest & AddTags(Aws::String &&key, const char *value)
void SetImageRecipeArn(const Aws::String &value)
CreateImageRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetDistributionConfigurationArn(Aws::String &&value)
CreateImageRequest & WithEnhancedImageMetadataEnabled(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateImageRequest & WithImageTestsConfiguration(const ImageTestsConfiguration &value)
CreateImageRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateImageRequest & WithExecutionRole(Aws::String &&value)
const Aws::String & GetContainerRecipeArn() const
void SetContainerRecipeArn(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
CreateImageRequest & WithImageTestsConfiguration(ImageTestsConfiguration &&value)
void SetWorkflows(Aws::Vector< WorkflowConfiguration > &&value)
CreateImageRequest & WithImageScanningConfiguration(ImageScanningConfiguration &&value)
const Aws::String & GetDistributionConfigurationArn() const
void SetWorkflows(const Aws::Vector< WorkflowConfiguration > &value)
CreateImageRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateImageRequest & WithDistributionConfigurationArn(const Aws::String &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