AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateImagePipelineRequest.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/imagebuilder/model/Schedule.h>
12#include <aws/imagebuilder/model/PipelineStatus.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/imagebuilder/model/WorkflowConfiguration.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace imagebuilder
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_IMAGEBUILDER_API CreateImagePipelineRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateImagePipeline"; }
39
40 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateImagePipelineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateImagePipelineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateImagePipelineRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateImagePipelineRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline CreateImagePipelineRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateImagePipelineRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
76 inline const Aws::String& GetImageRecipeArn() const{ return m_imageRecipeArn; }
77 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
78 inline void SetImageRecipeArn(const Aws::String& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = value; }
79 inline void SetImageRecipeArn(Aws::String&& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = std::move(value); }
80 inline void SetImageRecipeArn(const char* value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn.assign(value); }
81 inline CreateImagePipelineRequest& WithImageRecipeArn(const Aws::String& value) { SetImageRecipeArn(value); return *this;}
82 inline CreateImagePipelineRequest& WithImageRecipeArn(Aws::String&& value) { SetImageRecipeArn(std::move(value)); return *this;}
83 inline CreateImagePipelineRequest& WithImageRecipeArn(const char* value) { SetImageRecipeArn(value); return *this;}
85
87
91 inline const Aws::String& GetContainerRecipeArn() const{ return m_containerRecipeArn; }
92 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
93 inline void SetContainerRecipeArn(const Aws::String& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = value; }
94 inline void SetContainerRecipeArn(Aws::String&& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = std::move(value); }
95 inline void SetContainerRecipeArn(const char* value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn.assign(value); }
97 inline CreateImagePipelineRequest& WithContainerRecipeArn(Aws::String&& value) { SetContainerRecipeArn(std::move(value)); return *this;}
98 inline CreateImagePipelineRequest& WithContainerRecipeArn(const char* value) { SetContainerRecipeArn(value); return *this;}
100
102
106 inline const Aws::String& GetInfrastructureConfigurationArn() const{ return m_infrastructureConfigurationArn; }
107 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
108 inline void SetInfrastructureConfigurationArn(const Aws::String& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = value; }
109 inline void SetInfrastructureConfigurationArn(Aws::String&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::move(value); }
110 inline void SetInfrastructureConfigurationArn(const char* value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn.assign(value); }
115
117
121 inline const Aws::String& GetDistributionConfigurationArn() const{ return m_distributionConfigurationArn; }
122 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
123 inline void SetDistributionConfigurationArn(const Aws::String& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = value; }
124 inline void SetDistributionConfigurationArn(Aws::String&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::move(value); }
125 inline void SetDistributionConfigurationArn(const char* value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn.assign(value); }
130
132
135 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const{ return m_imageTestsConfiguration; }
136 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
137 inline void SetImageTestsConfiguration(const ImageTestsConfiguration& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = value; }
138 inline void SetImageTestsConfiguration(ImageTestsConfiguration&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::move(value); }
139 inline CreateImagePipelineRequest& WithImageTestsConfiguration(const ImageTestsConfiguration& value) { SetImageTestsConfiguration(value); return *this;}
140 inline CreateImagePipelineRequest& WithImageTestsConfiguration(ImageTestsConfiguration&& value) { SetImageTestsConfiguration(std::move(value)); return *this;}
142
144
150 inline bool GetEnhancedImageMetadataEnabled() const{ return m_enhancedImageMetadataEnabled; }
151 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
152 inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; }
155
157
160 inline const Schedule& GetSchedule() const{ return m_schedule; }
161 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
162 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
163 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
164 inline CreateImagePipelineRequest& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
165 inline CreateImagePipelineRequest& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
167
169
172 inline const PipelineStatus& GetStatus() const{ return m_status; }
173 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
174 inline void SetStatus(const PipelineStatus& value) { m_statusHasBeenSet = true; m_status = value; }
175 inline void SetStatus(PipelineStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
176 inline CreateImagePipelineRequest& WithStatus(const PipelineStatus& value) { SetStatus(value); return *this;}
177 inline CreateImagePipelineRequest& WithStatus(PipelineStatus&& value) { SetStatus(std::move(value)); return *this;}
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
187 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
189 inline CreateImagePipelineRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
190 inline CreateImagePipelineRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
191 inline CreateImagePipelineRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
192 inline CreateImagePipelineRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
193 inline CreateImagePipelineRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
194 inline CreateImagePipelineRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
195 inline CreateImagePipelineRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
196 inline CreateImagePipelineRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
198
200
206 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
207 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
208 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
209 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
210 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
211 inline CreateImagePipelineRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
212 inline CreateImagePipelineRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
213 inline CreateImagePipelineRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
215
217
220 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
221 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
222 inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
223 inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
227
229
232 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const{ return m_workflows; }
233 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
234 inline void SetWorkflows(const Aws::Vector<WorkflowConfiguration>& value) { m_workflowsHasBeenSet = true; m_workflows = value; }
235 inline void SetWorkflows(Aws::Vector<WorkflowConfiguration>&& value) { m_workflowsHasBeenSet = true; m_workflows = std::move(value); }
238 inline CreateImagePipelineRequest& AddWorkflows(const WorkflowConfiguration& value) { m_workflowsHasBeenSet = true; m_workflows.push_back(value); return *this; }
239 inline CreateImagePipelineRequest& AddWorkflows(WorkflowConfiguration&& value) { m_workflowsHasBeenSet = true; m_workflows.push_back(std::move(value)); return *this; }
241
243
247 inline const Aws::String& GetExecutionRole() const{ return m_executionRole; }
248 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
249 inline void SetExecutionRole(const Aws::String& value) { m_executionRoleHasBeenSet = true; m_executionRole = value; }
250 inline void SetExecutionRole(Aws::String&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::move(value); }
251 inline void SetExecutionRole(const char* value) { m_executionRoleHasBeenSet = true; m_executionRole.assign(value); }
252 inline CreateImagePipelineRequest& WithExecutionRole(const Aws::String& value) { SetExecutionRole(value); return *this;}
253 inline CreateImagePipelineRequest& WithExecutionRole(Aws::String&& value) { SetExecutionRole(std::move(value)); return *this;}
254 inline CreateImagePipelineRequest& WithExecutionRole(const char* value) { SetExecutionRole(value); return *this;}
256 private:
257
258 Aws::String m_name;
259 bool m_nameHasBeenSet = false;
260
261 Aws::String m_description;
262 bool m_descriptionHasBeenSet = false;
263
264 Aws::String m_imageRecipeArn;
265 bool m_imageRecipeArnHasBeenSet = false;
266
267 Aws::String m_containerRecipeArn;
268 bool m_containerRecipeArnHasBeenSet = false;
269
270 Aws::String m_infrastructureConfigurationArn;
271 bool m_infrastructureConfigurationArnHasBeenSet = false;
272
273 Aws::String m_distributionConfigurationArn;
274 bool m_distributionConfigurationArnHasBeenSet = false;
275
276 ImageTestsConfiguration m_imageTestsConfiguration;
277 bool m_imageTestsConfigurationHasBeenSet = false;
278
279 bool m_enhancedImageMetadataEnabled;
280 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
281
282 Schedule m_schedule;
283 bool m_scheduleHasBeenSet = false;
284
285 PipelineStatus m_status;
286 bool m_statusHasBeenSet = false;
287
289 bool m_tagsHasBeenSet = false;
290
291 Aws::String m_clientToken;
292 bool m_clientTokenHasBeenSet = false;
293
294 ImageScanningConfiguration m_imageScanningConfiguration;
295 bool m_imageScanningConfigurationHasBeenSet = false;
296
298 bool m_workflowsHasBeenSet = false;
299
300 Aws::String m_executionRole;
301 bool m_executionRoleHasBeenSet = false;
302 };
303
304} // namespace Model
305} // namespace imagebuilder
306} // namespace Aws
CreateImagePipelineRequest & WithImageScanningConfiguration(const ImageScanningConfiguration &value)
void SetImageTestsConfiguration(const ImageTestsConfiguration &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
CreateImagePipelineRequest & WithClientToken(Aws::String &&value)
CreateImagePipelineRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateImagePipelineRequest & WithStatus(PipelineStatus &&value)
CreateImagePipelineRequest & WithImageTestsConfiguration(ImageTestsConfiguration &&value)
CreateImagePipelineRequest & AddTags(Aws::String &&key, const char *value)
CreateImagePipelineRequest & WithName(const char *value)
CreateImagePipelineRequest & AddWorkflows(WorkflowConfiguration &&value)
void SetWorkflows(const Aws::Vector< WorkflowConfiguration > &value)
CreateImagePipelineRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateImagePipelineRequest & WithInfrastructureConfigurationArn(const char *value)
CreateImagePipelineRequest & WithExecutionRole(const char *value)
CreateImagePipelineRequest & WithInfrastructureConfigurationArn(Aws::String &&value)
CreateImagePipelineRequest & WithDistributionConfigurationArn(Aws::String &&value)
CreateImagePipelineRequest & WithImageScanningConfiguration(ImageScanningConfiguration &&value)
CreateImagePipelineRequest & AddTags(const char *key, Aws::String &&value)
void SetImageTestsConfiguration(ImageTestsConfiguration &&value)
CreateImagePipelineRequest & WithSchedule(Schedule &&value)
CreateImagePipelineRequest & WithExecutionRole(Aws::String &&value)
CreateImagePipelineRequest & WithContainerRecipeArn(Aws::String &&value)
void SetImageScanningConfiguration(ImageScanningConfiguration &&value)
CreateImagePipelineRequest & AddWorkflows(const WorkflowConfiguration &value)
CreateImagePipelineRequest & WithName(const Aws::String &value)
CreateImagePipelineRequest & WithSchedule(const Schedule &value)
CreateImagePipelineRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateImagePipelineRequest & WithDistributionConfigurationArn(const Aws::String &value)
CreateImagePipelineRequest & WithDescription(Aws::String &&value)
CreateImagePipelineRequest & WithImageRecipeArn(Aws::String &&value)
void SetWorkflows(Aws::Vector< WorkflowConfiguration > &&value)
CreateImagePipelineRequest & WithImageRecipeArn(const char *value)
CreateImagePipelineRequest & WithContainerRecipeArn(const char *value)
CreateImagePipelineRequest & WithClientToken(const char *value)
CreateImagePipelineRequest & WithDescription(const Aws::String &value)
CreateImagePipelineRequest & WithExecutionRole(const Aws::String &value)
CreateImagePipelineRequest & WithContainerRecipeArn(const Aws::String &value)
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
CreateImagePipelineRequest & WithWorkflows(Aws::Vector< WorkflowConfiguration > &&value)
void SetImageScanningConfiguration(const ImageScanningConfiguration &value)
CreateImagePipelineRequest & WithInfrastructureConfigurationArn(const Aws::String &value)
CreateImagePipelineRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateImagePipelineRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateImagePipelineRequest & WithClientToken(const Aws::String &value)
CreateImagePipelineRequest & WithEnhancedImageMetadataEnabled(bool value)
CreateImagePipelineRequest & WithName(Aws::String &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateImagePipelineRequest & WithImageRecipeArn(const Aws::String &value)
CreateImagePipelineRequest & AddTags(const char *key, const char *value)
CreateImagePipelineRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateImagePipelineRequest & WithDistributionConfigurationArn(const char *value)
CreateImagePipelineRequest & WithStatus(const PipelineStatus &value)
const ImageTestsConfiguration & GetImageTestsConfiguration() const
CreateImagePipelineRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateImagePipelineRequest & WithImageTestsConfiguration(const ImageTestsConfiguration &value)
CreateImagePipelineRequest & WithWorkflows(const Aws::Vector< WorkflowConfiguration > &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