AWS SDK for C++

AWS SDK for C++ Version 1.11.800

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
82 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
83 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
84 template <typename ImageRecipeArnT = Aws::String>
85 void SetImageRecipeArn(ImageRecipeArnT&& value) {
86 m_imageRecipeArnHasBeenSet = true;
87 m_imageRecipeArn = std::forward<ImageRecipeArnT>(value);
88 }
89 template <typename ImageRecipeArnT = Aws::String>
91 SetImageRecipeArn(std::forward<ImageRecipeArnT>(value));
92 return *this;
93 }
95
97
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 UpdateImagePipelineRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
128 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetDistributionConfigurationArn() const { return m_distributionConfigurationArn; }
140 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
141 template <typename DistributionConfigurationArnT = Aws::String>
142 void SetDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
143 m_distributionConfigurationArnHasBeenSet = true;
144 m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value);
145 }
146 template <typename DistributionConfigurationArnT = Aws::String>
147 UpdateImagePipelineRequest& WithDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
148 SetDistributionConfigurationArn(std::forward<DistributionConfigurationArnT>(value));
149 return *this;
150 }
152
154
157 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const { return m_imageTestsConfiguration; }
158 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
159 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
160 void SetImageTestsConfiguration(ImageTestsConfigurationT&& value) {
161 m_imageTestsConfigurationHasBeenSet = true;
162 m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value);
163 }
164 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
165 UpdateImagePipelineRequest& WithImageTestsConfiguration(ImageTestsConfigurationT&& value) {
166 SetImageTestsConfiguration(std::forward<ImageTestsConfigurationT>(value));
167 return *this;
168 }
170
172
178 inline bool GetEnhancedImageMetadataEnabled() const { return m_enhancedImageMetadataEnabled; }
179 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
180 inline void SetEnhancedImageMetadataEnabled(bool value) {
181 m_enhancedImageMetadataEnabledHasBeenSet = true;
182 m_enhancedImageMetadataEnabled = value;
183 }
186 return *this;
187 }
189
191
194 inline const Schedule& GetSchedule() const { return m_schedule; }
195 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
196 template <typename ScheduleT = Schedule>
197 void SetSchedule(ScheduleT&& value) {
198 m_scheduleHasBeenSet = true;
199 m_schedule = std::forward<ScheduleT>(value);
200 }
201 template <typename ScheduleT = Schedule>
203 SetSchedule(std::forward<ScheduleT>(value));
204 return *this;
205 }
207
209
212 inline PipelineStatus GetStatus() const { return m_status; }
213 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
214 inline void SetStatus(PipelineStatus value) {
215 m_statusHasBeenSet = true;
216 m_status = value;
217 }
219 SetStatus(value);
220 return *this;
221 }
223
225
231 inline const Aws::String& GetClientToken() const { return m_clientToken; }
232 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
233 template <typename ClientTokenT = Aws::String>
234 void SetClientToken(ClientTokenT&& value) {
235 m_clientTokenHasBeenSet = true;
236 m_clientToken = std::forward<ClientTokenT>(value);
237 }
238 template <typename ClientTokenT = Aws::String>
240 SetClientToken(std::forward<ClientTokenT>(value));
241 return *this;
242 }
244
246
249 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
250 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
251 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
252 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) {
253 m_imageScanningConfigurationHasBeenSet = true;
254 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
255 }
256 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
257 UpdateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) {
258 SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
268 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
269 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
270 void SetWorkflows(WorkflowsT&& value) {
271 m_workflowsHasBeenSet = true;
272 m_workflows = std::forward<WorkflowsT>(value);
273 }
274 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
276 SetWorkflows(std::forward<WorkflowsT>(value));
277 return *this;
278 }
279 template <typename WorkflowsT = WorkflowConfiguration>
281 m_workflowsHasBeenSet = true;
282 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
283 return *this;
284 }
286
288
292 inline const PipelineLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
293 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
294 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
295 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
296 m_loggingConfigurationHasBeenSet = true;
297 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
298 }
299 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
300 UpdateImagePipelineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
301 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
302 return *this;
303 }
305
307
311 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
312 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
313 template <typename ExecutionRoleT = Aws::String>
314 void SetExecutionRole(ExecutionRoleT&& value) {
315 m_executionRoleHasBeenSet = true;
316 m_executionRole = std::forward<ExecutionRoleT>(value);
317 }
318 template <typename ExecutionRoleT = Aws::String>
320 SetExecutionRole(std::forward<ExecutionRoleT>(value));
321 return *this;
322 }
324
326
329 inline const Aws::Map<Aws::String, Aws::String>& GetImageTags() const { return m_imageTags; }
330 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
331 template <typename ImageTagsT = Aws::Map<Aws::String, Aws::String>>
332 void SetImageTags(ImageTagsT&& value) {
333 m_imageTagsHasBeenSet = true;
334 m_imageTags = std::forward<ImageTagsT>(value);
335 }
336 template <typename ImageTagsT = Aws::Map<Aws::String, Aws::String>>
338 SetImageTags(std::forward<ImageTagsT>(value));
339 return *this;
340 }
341 template <typename ImageTagsKeyT = Aws::String, typename ImageTagsValueT = Aws::String>
342 UpdateImagePipelineRequest& AddImageTags(ImageTagsKeyT&& key, ImageTagsValueT&& value) {
343 m_imageTagsHasBeenSet = true;
344 m_imageTags.emplace(std::forward<ImageTagsKeyT>(key), std::forward<ImageTagsValueT>(value));
345 return *this;
346 }
348 private:
349 Aws::String m_imagePipelineArn;
350
351 Aws::String m_description;
352
353 Aws::String m_imageRecipeArn;
354
355 Aws::String m_containerRecipeArn;
356
357 Aws::String m_infrastructureConfigurationArn;
358
359 Aws::String m_distributionConfigurationArn;
360
361 ImageTestsConfiguration m_imageTestsConfiguration;
362
363 bool m_enhancedImageMetadataEnabled{false};
364
365 Schedule m_schedule;
366
368
370
371 ImageScanningConfiguration m_imageScanningConfiguration;
372
374
375 PipelineLoggingConfiguration m_loggingConfiguration;
376
377 Aws::String m_executionRole;
378
380 bool m_imagePipelineArnHasBeenSet = false;
381 bool m_descriptionHasBeenSet = false;
382 bool m_imageRecipeArnHasBeenSet = false;
383 bool m_containerRecipeArnHasBeenSet = false;
384 bool m_infrastructureConfigurationArnHasBeenSet = false;
385 bool m_distributionConfigurationArnHasBeenSet = false;
386 bool m_imageTestsConfigurationHasBeenSet = false;
387 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
388 bool m_scheduleHasBeenSet = false;
389 bool m_statusHasBeenSet = false;
390 bool m_clientTokenHasBeenSet = true;
391 bool m_imageScanningConfigurationHasBeenSet = false;
392 bool m_workflowsHasBeenSet = false;
393 bool m_loggingConfigurationHasBeenSet = false;
394 bool m_executionRoleHasBeenSet = false;
395 bool m_imageTagsHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace imagebuilder
400} // 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