AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
254 inline const Aws::String& GetClientToken() const { return m_clientToken; }
255 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
256 template <typename ClientTokenT = Aws::String>
257 void SetClientToken(ClientTokenT&& value) {
258 m_clientTokenHasBeenSet = true;
259 m_clientToken = std::forward<ClientTokenT>(value);
260 }
261 template <typename ClientTokenT = Aws::String>
263 SetClientToken(std::forward<ClientTokenT>(value));
264 return *this;
265 }
267
269
272 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
273 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
274 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
275 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) {
276 m_imageScanningConfigurationHasBeenSet = true;
277 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
278 }
279 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
280 CreateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) {
281 SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
291 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
292 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
293 void SetWorkflows(WorkflowsT&& value) {
294 m_workflowsHasBeenSet = true;
295 m_workflows = std::forward<WorkflowsT>(value);
296 }
297 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
299 SetWorkflows(std::forward<WorkflowsT>(value));
300 return *this;
301 }
302 template <typename WorkflowsT = WorkflowConfiguration>
304 m_workflowsHasBeenSet = true;
305 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
306 return *this;
307 }
309
311
315 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
316 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
317 template <typename ExecutionRoleT = Aws::String>
318 void SetExecutionRole(ExecutionRoleT&& value) {
319 m_executionRoleHasBeenSet = true;
320 m_executionRole = std::forward<ExecutionRoleT>(value);
321 }
322 template <typename ExecutionRoleT = Aws::String>
324 SetExecutionRole(std::forward<ExecutionRoleT>(value));
325 return *this;
326 }
328
330
333 inline const PipelineLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
334 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
335 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
336 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
337 m_loggingConfigurationHasBeenSet = true;
338 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
339 }
340 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
341 CreateImagePipelineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
342 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
343 return *this;
344 }
346 private:
347 Aws::String m_name;
348
349 Aws::String m_description;
350
351 Aws::String m_imageRecipeArn;
352
353 Aws::String m_containerRecipeArn;
354
355 Aws::String m_infrastructureConfigurationArn;
356
357 Aws::String m_distributionConfigurationArn;
358
359 ImageTestsConfiguration m_imageTestsConfiguration;
360
361 bool m_enhancedImageMetadataEnabled{false};
362
363 Schedule m_schedule;
364
366
368
370
371 ImageScanningConfiguration m_imageScanningConfiguration;
372
374
375 Aws::String m_executionRole;
376
377 PipelineLoggingConfiguration m_loggingConfiguration;
378 bool m_nameHasBeenSet = false;
379 bool m_descriptionHasBeenSet = false;
380 bool m_imageRecipeArnHasBeenSet = false;
381 bool m_containerRecipeArnHasBeenSet = false;
382 bool m_infrastructureConfigurationArnHasBeenSet = false;
383 bool m_distributionConfigurationArnHasBeenSet = false;
384 bool m_imageTestsConfigurationHasBeenSet = false;
385 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
386 bool m_scheduleHasBeenSet = false;
387 bool m_statusHasBeenSet = false;
388 bool m_tagsHasBeenSet = false;
389 bool m_clientTokenHasBeenSet = true;
390 bool m_imageScanningConfigurationHasBeenSet = false;
391 bool m_workflowsHasBeenSet = false;
392 bool m_executionRoleHasBeenSet = false;
393 bool m_loggingConfigurationHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace imagebuilder
398} // 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 & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateImagePipelineRequest & WithWorkflows(WorkflowsT &&value)
CreateImagePipelineRequest & WithImageRecipeArn(ImageRecipeArnT &&value)
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 & 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