AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateImagePipelineRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/ImagebuilderRequest.h>
11#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
12#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
13#include <aws/imagebuilder/model/ImageTestsConfiguration.h>
14#include <aws/imagebuilder/model/PipelineLoggingConfiguration.h>
15#include <aws/imagebuilder/model/PipelineStatus.h>
16#include <aws/imagebuilder/model/Schedule.h>
17#include <aws/imagebuilder/model/WorkflowConfiguration.h>
18
19#include <utility>
20
21namespace Aws {
22namespace imagebuilder {
23namespace Model {
24
28 public:
29 AWS_IMAGEBUILDER_API UpdateImagePipelineRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateImagePipeline"; }
36
37 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
38
40
44 inline const Aws::String& GetImagePipelineArn() const { return m_imagePipelineArn; }
45 inline bool ImagePipelineArnHasBeenSet() const { return m_imagePipelineArnHasBeenSet; }
46 template <typename ImagePipelineArnT = Aws::String>
47 void SetImagePipelineArn(ImagePipelineArnT&& value) {
48 m_imagePipelineArnHasBeenSet = true;
49 m_imagePipelineArn = std::forward<ImagePipelineArnT>(value);
50 }
51 template <typename ImagePipelineArnT = Aws::String>
53 SetImagePipelineArn(std::forward<ImagePipelineArnT>(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
99 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
100 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
101 template <typename ContainerRecipeArnT = Aws::String>
102 void SetContainerRecipeArn(ContainerRecipeArnT&& value) {
103 m_containerRecipeArnHasBeenSet = true;
104 m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value);
105 }
106 template <typename ContainerRecipeArnT = Aws::String>
108 SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
119 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
120 template <typename InfrastructureConfigurationArnT = Aws::String>
121 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
122 m_infrastructureConfigurationArnHasBeenSet = true;
123 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
124 }
125 template <typename InfrastructureConfigurationArnT = Aws::String>
126 UpdateImagePipelineRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
127 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
128 return *this;
129 }
131
133
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 UpdateImagePipelineRequest& 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 UpdateImagePipelineRequest& 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
230 inline const Aws::String& GetClientToken() const { return m_clientToken; }
231 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
232 template <typename ClientTokenT = Aws::String>
233 void SetClientToken(ClientTokenT&& value) {
234 m_clientTokenHasBeenSet = true;
235 m_clientToken = std::forward<ClientTokenT>(value);
236 }
237 template <typename ClientTokenT = Aws::String>
239 SetClientToken(std::forward<ClientTokenT>(value));
240 return *this;
241 }
243
245
248 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
249 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
250 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
251 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) {
252 m_imageScanningConfigurationHasBeenSet = true;
253 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
254 }
255 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
256 UpdateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) {
257 SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
267 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
268 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
269 void SetWorkflows(WorkflowsT&& value) {
270 m_workflowsHasBeenSet = true;
271 m_workflows = std::forward<WorkflowsT>(value);
272 }
273 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
275 SetWorkflows(std::forward<WorkflowsT>(value));
276 return *this;
277 }
278 template <typename WorkflowsT = WorkflowConfiguration>
280 m_workflowsHasBeenSet = true;
281 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
282 return *this;
283 }
285
287
291 inline const PipelineLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
292 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
293 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
294 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
295 m_loggingConfigurationHasBeenSet = true;
296 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
297 }
298 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
299 UpdateImagePipelineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
300 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
301 return *this;
302 }
304
306
310 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
311 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
312 template <typename ExecutionRoleT = Aws::String>
313 void SetExecutionRole(ExecutionRoleT&& value) {
314 m_executionRoleHasBeenSet = true;
315 m_executionRole = std::forward<ExecutionRoleT>(value);
316 }
317 template <typename ExecutionRoleT = Aws::String>
319 SetExecutionRole(std::forward<ExecutionRoleT>(value));
320 return *this;
321 }
323 private:
324 Aws::String m_imagePipelineArn;
325
326 Aws::String m_description;
327
328 Aws::String m_imageRecipeArn;
329
330 Aws::String m_containerRecipeArn;
331
332 Aws::String m_infrastructureConfigurationArn;
333
334 Aws::String m_distributionConfigurationArn;
335
336 ImageTestsConfiguration m_imageTestsConfiguration;
337
338 bool m_enhancedImageMetadataEnabled{false};
339
340 Schedule m_schedule;
341
343
345
346 ImageScanningConfiguration m_imageScanningConfiguration;
347
349
350 PipelineLoggingConfiguration m_loggingConfiguration;
351
352 Aws::String m_executionRole;
353 bool m_imagePipelineArnHasBeenSet = false;
354 bool m_descriptionHasBeenSet = false;
355 bool m_imageRecipeArnHasBeenSet = false;
356 bool m_containerRecipeArnHasBeenSet = false;
357 bool m_infrastructureConfigurationArnHasBeenSet = false;
358 bool m_distributionConfigurationArnHasBeenSet = false;
359 bool m_imageTestsConfigurationHasBeenSet = false;
360 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
361 bool m_scheduleHasBeenSet = false;
362 bool m_statusHasBeenSet = false;
363 bool m_clientTokenHasBeenSet = true;
364 bool m_imageScanningConfigurationHasBeenSet = false;
365 bool m_workflowsHasBeenSet = false;
366 bool m_loggingConfigurationHasBeenSet = false;
367 bool m_executionRoleHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace imagebuilder
372} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
const ImageTestsConfiguration & GetImageTestsConfiguration() const
UpdateImagePipelineRequest & AddWorkflows(WorkflowsT &&value)
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
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 & 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
AWS_IMAGEBUILDER_API UpdateImagePipelineRequest()=default
UpdateImagePipelineRequest & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
UpdateImagePipelineRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
const PipelineLoggingConfiguration & GetLoggingConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector