AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
UpdateImagePipelineRequest.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 UpdateImagePipelineRequest() = 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 "UpdateImagePipeline"; }
37
38 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
39
41
45 inline const Aws::String& GetImagePipelineArn() const { return m_imagePipelineArn; }
46 inline bool ImagePipelineArnHasBeenSet() const { return m_imagePipelineArnHasBeenSet; }
47 template <typename ImagePipelineArnT = Aws::String>
48 void SetImagePipelineArn(ImagePipelineArnT&& value) {
49 m_imagePipelineArnHasBeenSet = true;
50 m_imagePipelineArn = std::forward<ImagePipelineArnT>(value);
51 }
52 template <typename ImagePipelineArnT = Aws::String>
54 SetImagePipelineArn(std::forward<ImagePipelineArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
84 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
85 template <typename ImageRecipeArnT = Aws::String>
86 void SetImageRecipeArn(ImageRecipeArnT&& value) {
87 m_imageRecipeArnHasBeenSet = true;
88 m_imageRecipeArn = std::forward<ImageRecipeArnT>(value);
89 }
90 template <typename ImageRecipeArnT = Aws::String>
92 SetImageRecipeArn(std::forward<ImageRecipeArnT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
104 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
105 template <typename ContainerRecipeArnT = Aws::String>
106 void SetContainerRecipeArn(ContainerRecipeArnT&& value) {
107 m_containerRecipeArnHasBeenSet = true;
108 m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value);
109 }
110 template <typename ContainerRecipeArnT = Aws::String>
112 SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
123 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
124 template <typename InfrastructureConfigurationArnT = Aws::String>
125 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
126 m_infrastructureConfigurationArnHasBeenSet = true;
127 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
128 }
129 template <typename InfrastructureConfigurationArnT = Aws::String>
130 UpdateImagePipelineRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
131 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
132 return *this;
133 }
135
137
142 inline const Aws::String& GetDistributionConfigurationArn() const { return m_distributionConfigurationArn; }
143 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
144 template <typename DistributionConfigurationArnT = Aws::String>
145 void SetDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
146 m_distributionConfigurationArnHasBeenSet = true;
147 m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value);
148 }
149 template <typename DistributionConfigurationArnT = Aws::String>
150 UpdateImagePipelineRequest& WithDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
151 SetDistributionConfigurationArn(std::forward<DistributionConfigurationArnT>(value));
152 return *this;
153 }
155
157
162 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const { return m_imageTestsConfiguration; }
163 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
164 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
165 void SetImageTestsConfiguration(ImageTestsConfigurationT&& value) {
166 m_imageTestsConfigurationHasBeenSet = true;
167 m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value);
168 }
169 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
170 UpdateImagePipelineRequest& WithImageTestsConfiguration(ImageTestsConfigurationT&& value) {
171 SetImageTestsConfiguration(std::forward<ImageTestsConfigurationT>(value));
172 return *this;
173 }
175
177
182 inline bool GetEnhancedImageMetadataEnabled() const { return m_enhancedImageMetadataEnabled; }
183 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
184 inline void SetEnhancedImageMetadataEnabled(bool value) {
185 m_enhancedImageMetadataEnabledHasBeenSet = true;
186 m_enhancedImageMetadataEnabled = value;
187 }
190 return *this;
191 }
193
195
200 inline const Schedule& GetSchedule() const { return m_schedule; }
201 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
202 template <typename ScheduleT = Schedule>
203 void SetSchedule(ScheduleT&& value) {
204 m_scheduleHasBeenSet = true;
205 m_schedule = std::forward<ScheduleT>(value);
206 }
207 template <typename ScheduleT = Schedule>
209 SetSchedule(std::forward<ScheduleT>(value));
210 return *this;
211 }
213
215
220 inline PipelineStatus GetStatus() const { return m_status; }
221 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
222 inline void SetStatus(PipelineStatus value) {
223 m_statusHasBeenSet = true;
224 m_status = value;
225 }
227 SetStatus(value);
228 return *this;
229 }
231
233
241 inline const Aws::String& GetClientToken() const { return m_clientToken; }
242 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
243 template <typename ClientTokenT = Aws::String>
244 void SetClientToken(ClientTokenT&& value) {
245 m_clientTokenHasBeenSet = true;
246 m_clientToken = std::forward<ClientTokenT>(value);
247 }
248 template <typename ClientTokenT = Aws::String>
250 SetClientToken(std::forward<ClientTokenT>(value));
251 return *this;
252 }
254
256
260 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
261 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
262 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
263 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) {
264 m_imageScanningConfigurationHasBeenSet = true;
265 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
266 }
267 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
268 UpdateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) {
269 SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value));
270 return *this;
271 }
273
275
280 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
281 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
282 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
283 void SetWorkflows(WorkflowsT&& value) {
284 m_workflowsHasBeenSet = true;
285 m_workflows = std::forward<WorkflowsT>(value);
286 }
287 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
289 SetWorkflows(std::forward<WorkflowsT>(value));
290 return *this;
291 }
292 template <typename WorkflowsT = WorkflowConfiguration>
294 m_workflowsHasBeenSet = true;
295 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
296 return *this;
297 }
299
301
309 inline const PipelineLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
310 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
311 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
312 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
313 m_loggingConfigurationHasBeenSet = true;
314 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
315 }
316 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
317 UpdateImagePipelineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
318 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
319 return *this;
320 }
322
324
329 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
330 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
331 template <typename ExecutionRoleT = Aws::String>
332 void SetExecutionRole(ExecutionRoleT&& value) {
333 m_executionRoleHasBeenSet = true;
334 m_executionRole = std::forward<ExecutionRoleT>(value);
335 }
336 template <typename ExecutionRoleT = Aws::String>
338 SetExecutionRole(std::forward<ExecutionRoleT>(value));
339 return *this;
340 }
342
344
350 inline const Aws::Map<Aws::String, Aws::String>& GetImageTags() const { return m_imageTags; }
351 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
352 template <typename ImageTagsT = Aws::Map<Aws::String, Aws::String>>
353 void SetImageTags(ImageTagsT&& value) {
354 m_imageTagsHasBeenSet = true;
355 m_imageTags = std::forward<ImageTagsT>(value);
356 }
357 template <typename ImageTagsT = Aws::Map<Aws::String, Aws::String>>
359 SetImageTags(std::forward<ImageTagsT>(value));
360 return *this;
361 }
362 template <typename ImageTagsKeyT = Aws::String, typename ImageTagsValueT = Aws::String>
363 UpdateImagePipelineRequest& AddImageTags(ImageTagsKeyT&& key, ImageTagsValueT&& value) {
364 m_imageTagsHasBeenSet = true;
365 m_imageTags.emplace(std::forward<ImageTagsKeyT>(key), std::forward<ImageTagsValueT>(value));
366 return *this;
367 }
369 private:
370 Aws::String m_imagePipelineArn;
371
372 Aws::String m_description;
373
374 Aws::String m_imageRecipeArn;
375
376 Aws::String m_containerRecipeArn;
377
378 Aws::String m_infrastructureConfigurationArn;
379
380 Aws::String m_distributionConfigurationArn;
381
382 ImageTestsConfiguration m_imageTestsConfiguration;
383
384 bool m_enhancedImageMetadataEnabled{false};
385
386 Schedule m_schedule;
387
389
391
392 ImageScanningConfiguration m_imageScanningConfiguration;
393
395
396 PipelineLoggingConfiguration m_loggingConfiguration;
397
398 Aws::String m_executionRole;
399
401 bool m_imagePipelineArnHasBeenSet = false;
402 bool m_descriptionHasBeenSet = false;
403 bool m_imageRecipeArnHasBeenSet = false;
404 bool m_containerRecipeArnHasBeenSet = false;
405 bool m_infrastructureConfigurationArnHasBeenSet = false;
406 bool m_distributionConfigurationArnHasBeenSet = false;
407 bool m_imageTestsConfigurationHasBeenSet = false;
408 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
409 bool m_scheduleHasBeenSet = false;
410 bool m_statusHasBeenSet = false;
411 bool m_clientTokenHasBeenSet = true;
412 bool m_imageScanningConfigurationHasBeenSet = false;
413 bool m_workflowsHasBeenSet = false;
414 bool m_loggingConfigurationHasBeenSet = false;
415 bool m_executionRoleHasBeenSet = false;
416 bool m_imageTagsHasBeenSet = false;
417};
418
419} // namespace Model
420} // namespace imagebuilder
421} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
const ImageTestsConfiguration & GetImageTestsConfiguration() const
UpdateImagePipelineRequest & AddWorkflows(WorkflowsT &&value)
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetImageTags() const
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
UpdateImagePipelineRequest & WithStatus(PipelineStatus value)
UpdateImagePipelineRequest & WithImagePipelineArn(ImagePipelineArnT &&value)
UpdateImagePipelineRequest & WithImageScanningConfiguration(ImageScanningConfigurationT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
UpdateImagePipelineRequest & WithEnhancedImageMetadataEnabled(bool value)
UpdateImagePipelineRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
UpdateImagePipelineRequest & WithExecutionRole(ExecutionRoleT &&value)
UpdateImagePipelineRequest & WithSchedule(ScheduleT &&value)
UpdateImagePipelineRequest & WithContainerRecipeArn(ContainerRecipeArnT &&value)
UpdateImagePipelineRequest & WithImageTags(ImageTagsT &&value)
UpdateImagePipelineRequest & WithImageRecipeArn(ImageRecipeArnT &&value)
UpdateImagePipelineRequest & WithWorkflows(WorkflowsT &&value)
UpdateImagePipelineRequest & WithDescription(DescriptionT &&value)
UpdateImagePipelineRequest & WithDistributionConfigurationArn(DistributionConfigurationArnT &&value)
void SetImageTestsConfiguration(ImageTestsConfigurationT &&value)
void SetDistributionConfigurationArn(DistributionConfigurationArnT &&value)
UpdateImagePipelineRequest & WithClientToken(ClientTokenT &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
UpdateImagePipelineRequest & AddImageTags(ImageTagsKeyT &&key, ImageTagsValueT &&value)
AWS_IMAGEBUILDER_API UpdateImagePipelineRequest()=default
UpdateImagePipelineRequest & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
UpdateImagePipelineRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
const PipelineLoggingConfiguration & GetLoggingConfiguration() 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