AWS SDK for C++

AWS SDK for C++ Version 1.11.800

Loading...
Searching...
No Matches
CreateImagePipelineRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/ImagebuilderRequest.h>
12#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
13#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
14#include <aws/imagebuilder/model/ImageTestsConfiguration.h>
15#include <aws/imagebuilder/model/PipelineLoggingConfiguration.h>
16#include <aws/imagebuilder/model/PipelineStatus.h>
17#include <aws/imagebuilder/model/Schedule.h>
18#include <aws/imagebuilder/model/WorkflowConfiguration.h>
19
20#include <utility>
21
22namespace Aws {
23namespace imagebuilder {
24namespace Model {
25
29 public:
30 AWS_IMAGEBUILDER_API CreateImagePipelineRequest() = default;
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 "CreateImagePipeline"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
82 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
83 template <typename ImageRecipeArnT = Aws::String>
84 void SetImageRecipeArn(ImageRecipeArnT&& value) {
85 m_imageRecipeArnHasBeenSet = true;
86 m_imageRecipeArn = std::forward<ImageRecipeArnT>(value);
87 }
88 template <typename ImageRecipeArnT = Aws::String>
90 SetImageRecipeArn(std::forward<ImageRecipeArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
101 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
102 template <typename ContainerRecipeArnT = Aws::String>
103 void SetContainerRecipeArn(ContainerRecipeArnT&& value) {
104 m_containerRecipeArnHasBeenSet = true;
105 m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value);
106 }
107 template <typename ContainerRecipeArnT = Aws::String>
109 SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
120 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
121 template <typename InfrastructureConfigurationArnT = Aws::String>
122 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
123 m_infrastructureConfigurationArnHasBeenSet = true;
124 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
125 }
126 template <typename InfrastructureConfigurationArnT = Aws::String>
127 CreateImagePipelineRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
128 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetDistributionConfigurationArn() const { return m_distributionConfigurationArn; }
139 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
140 template <typename DistributionConfigurationArnT = Aws::String>
141 void SetDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
142 m_distributionConfigurationArnHasBeenSet = true;
143 m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value);
144 }
145 template <typename DistributionConfigurationArnT = Aws::String>
146 CreateImagePipelineRequest& WithDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
147 SetDistributionConfigurationArn(std::forward<DistributionConfigurationArnT>(value));
148 return *this;
149 }
151
153
156 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const { return m_imageTestsConfiguration; }
157 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
158 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
159 void SetImageTestsConfiguration(ImageTestsConfigurationT&& value) {
160 m_imageTestsConfigurationHasBeenSet = true;
161 m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value);
162 }
163 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
164 CreateImagePipelineRequest& WithImageTestsConfiguration(ImageTestsConfigurationT&& value) {
165 SetImageTestsConfiguration(std::forward<ImageTestsConfigurationT>(value));
166 return *this;
167 }
169
171
177 inline bool GetEnhancedImageMetadataEnabled() const { return m_enhancedImageMetadataEnabled; }
178 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
179 inline void SetEnhancedImageMetadataEnabled(bool value) {
180 m_enhancedImageMetadataEnabledHasBeenSet = true;
181 m_enhancedImageMetadataEnabled = value;
182 }
185 return *this;
186 }
188
190
193 inline const Schedule& GetSchedule() const { return m_schedule; }
194 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
195 template <typename ScheduleT = Schedule>
196 void SetSchedule(ScheduleT&& value) {
197 m_scheduleHasBeenSet = true;
198 m_schedule = std::forward<ScheduleT>(value);
199 }
200 template <typename ScheduleT = Schedule>
202 SetSchedule(std::forward<ScheduleT>(value));
203 return *this;
204 }
206
208
211 inline PipelineStatus GetStatus() const { return m_status; }
212 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
213 inline void SetStatus(PipelineStatus value) {
214 m_statusHasBeenSet = true;
215 m_status = value;
216 }
218 SetStatus(value);
219 return *this;
220 }
222
224
227 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
228 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
229 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 void SetTags(TagsT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags = std::forward<TagsT>(value);
233 }
234 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 SetTags(std::forward<TagsT>(value));
237 return *this;
238 }
239 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
240 CreateImagePipelineRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
241 m_tagsHasBeenSet = true;
242 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::Map<Aws::String, Aws::String>& GetImageTags() const { return m_imageTags; }
252 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
253 template <typename ImageTagsT = Aws::Map<Aws::String, Aws::String>>
254 void SetImageTags(ImageTagsT&& value) {
255 m_imageTagsHasBeenSet = true;
256 m_imageTags = std::forward<ImageTagsT>(value);
257 }
258 template <typename ImageTagsT = Aws::Map<Aws::String, Aws::String>>
260 SetImageTags(std::forward<ImageTagsT>(value));
261 return *this;
262 }
263 template <typename ImageTagsKeyT = Aws::String, typename ImageTagsValueT = Aws::String>
264 CreateImagePipelineRequest& AddImageTags(ImageTagsKeyT&& key, ImageTagsValueT&& value) {
265 m_imageTagsHasBeenSet = true;
266 m_imageTags.emplace(std::forward<ImageTagsKeyT>(key), std::forward<ImageTagsValueT>(value));
267 return *this;
268 }
270
272
278 inline const Aws::String& GetClientToken() const { return m_clientToken; }
279 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
280 template <typename ClientTokenT = Aws::String>
281 void SetClientToken(ClientTokenT&& value) {
282 m_clientTokenHasBeenSet = true;
283 m_clientToken = std::forward<ClientTokenT>(value);
284 }
285 template <typename ClientTokenT = Aws::String>
287 SetClientToken(std::forward<ClientTokenT>(value));
288 return *this;
289 }
291
293
296 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
297 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
298 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
299 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) {
300 m_imageScanningConfigurationHasBeenSet = true;
301 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
302 }
303 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
304 CreateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) {
305 SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
315 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
316 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
317 void SetWorkflows(WorkflowsT&& value) {
318 m_workflowsHasBeenSet = true;
319 m_workflows = std::forward<WorkflowsT>(value);
320 }
321 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
323 SetWorkflows(std::forward<WorkflowsT>(value));
324 return *this;
325 }
326 template <typename WorkflowsT = WorkflowConfiguration>
328 m_workflowsHasBeenSet = true;
329 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
330 return *this;
331 }
333
335
339 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
340 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
341 template <typename ExecutionRoleT = Aws::String>
342 void SetExecutionRole(ExecutionRoleT&& value) {
343 m_executionRoleHasBeenSet = true;
344 m_executionRole = std::forward<ExecutionRoleT>(value);
345 }
346 template <typename ExecutionRoleT = Aws::String>
348 SetExecutionRole(std::forward<ExecutionRoleT>(value));
349 return *this;
350 }
352
354
357 inline const PipelineLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
358 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
359 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
360 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
361 m_loggingConfigurationHasBeenSet = true;
362 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
363 }
364 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
365 CreateImagePipelineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
366 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_name;
372
373 Aws::String m_description;
374
375 Aws::String m_imageRecipeArn;
376
377 Aws::String m_containerRecipeArn;
378
379 Aws::String m_infrastructureConfigurationArn;
380
381 Aws::String m_distributionConfigurationArn;
382
383 ImageTestsConfiguration m_imageTestsConfiguration;
384
385 bool m_enhancedImageMetadataEnabled{false};
386
387 Schedule m_schedule;
388
390
392
394
396
397 ImageScanningConfiguration m_imageScanningConfiguration;
398
400
401 Aws::String m_executionRole;
402
403 PipelineLoggingConfiguration m_loggingConfiguration;
404 bool m_nameHasBeenSet = false;
405 bool m_descriptionHasBeenSet = false;
406 bool m_imageRecipeArnHasBeenSet = false;
407 bool m_containerRecipeArnHasBeenSet = false;
408 bool m_infrastructureConfigurationArnHasBeenSet = false;
409 bool m_distributionConfigurationArnHasBeenSet = false;
410 bool m_imageTestsConfigurationHasBeenSet = false;
411 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
412 bool m_scheduleHasBeenSet = false;
413 bool m_statusHasBeenSet = false;
414 bool m_tagsHasBeenSet = false;
415 bool m_imageTagsHasBeenSet = false;
416 bool m_clientTokenHasBeenSet = true;
417 bool m_imageScanningConfigurationHasBeenSet = false;
418 bool m_workflowsHasBeenSet = false;
419 bool m_executionRoleHasBeenSet = false;
420 bool m_loggingConfigurationHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace imagebuilder
425} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetDistributionConfigurationArn(DistributionConfigurationArnT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
AWS_IMAGEBUILDER_API CreateImagePipelineRequest()=default
CreateImagePipelineRequest & WithImageTags(ImageTagsT &&value)
CreateImagePipelineRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateImagePipelineRequest & WithWorkflows(WorkflowsT &&value)
CreateImagePipelineRequest & WithImageRecipeArn(ImageRecipeArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetImageTags() const
CreateImagePipelineRequest & WithExecutionRole(ExecutionRoleT &&value)
CreateImagePipelineRequest & WithContainerRecipeArn(ContainerRecipeArnT &&value)
CreateImagePipelineRequest & WithTags(TagsT &&value)
CreateImagePipelineRequest & WithImageScanningConfiguration(ImageScanningConfigurationT &&value)
CreateImagePipelineRequest & WithDistributionConfigurationArn(DistributionConfigurationArnT &&value)
CreateImagePipelineRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
CreateImagePipelineRequest & WithDescription(DescriptionT &&value)
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
void SetImageTestsConfiguration(ImageTestsConfigurationT &&value)
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
CreateImagePipelineRequest & AddWorkflows(WorkflowsT &&value)
CreateImagePipelineRequest & WithName(NameT &&value)
CreateImagePipelineRequest & AddImageTags(ImageTagsKeyT &&key, ImageTagsValueT &&value)
CreateImagePipelineRequest & WithEnhancedImageMetadataEnabled(bool value)
CreateImagePipelineRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
CreateImagePipelineRequest & WithSchedule(ScheduleT &&value)
CreateImagePipelineRequest & WithStatus(PipelineStatus value)
CreateImagePipelineRequest & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
const PipelineLoggingConfiguration & GetLoggingConfiguration() const
CreateImagePipelineRequest & WithClientToken(ClientTokenT &&value)
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
const ImageTestsConfiguration & GetImageTestsConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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