AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImagePipeline.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
12#include <aws/imagebuilder/model/ImageStatus.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/Platform.h>
17#include <aws/imagebuilder/model/Schedule.h>
18#include <aws/imagebuilder/model/WorkflowConfiguration.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace imagebuilder {
30namespace Model {
31
38 public:
39 AWS_IMAGEBUILDER_API ImagePipeline() = default;
40 AWS_IMAGEBUILDER_API ImagePipeline(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API ImagePipeline& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
56 ImagePipeline& WithArn(ArnT&& value) {
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 ImagePipeline& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 ImagePipeline& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline Platform GetPlatform() const { return m_platform; }
103 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
104 inline void SetPlatform(Platform value) {
105 m_platformHasBeenSet = true;
106 m_platform = value;
107 }
109 SetPlatform(value);
110 return *this;
111 }
113
115
121 inline bool GetEnhancedImageMetadataEnabled() const { return m_enhancedImageMetadataEnabled; }
122 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
123 inline void SetEnhancedImageMetadataEnabled(bool value) {
124 m_enhancedImageMetadataEnabledHasBeenSet = true;
125 m_enhancedImageMetadataEnabled = value;
126 }
129 return *this;
130 }
132
134
138 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
139 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
140 template <typename ImageRecipeArnT = Aws::String>
141 void SetImageRecipeArn(ImageRecipeArnT&& value) {
142 m_imageRecipeArnHasBeenSet = true;
143 m_imageRecipeArn = std::forward<ImageRecipeArnT>(value);
144 }
145 template <typename ImageRecipeArnT = Aws::String>
146 ImagePipeline& WithImageRecipeArn(ImageRecipeArnT&& value) {
147 SetImageRecipeArn(std::forward<ImageRecipeArnT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
158 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
159 template <typename ContainerRecipeArnT = Aws::String>
160 void SetContainerRecipeArn(ContainerRecipeArnT&& value) {
161 m_containerRecipeArnHasBeenSet = true;
162 m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value);
163 }
164 template <typename ContainerRecipeArnT = Aws::String>
165 ImagePipeline& WithContainerRecipeArn(ContainerRecipeArnT&& value) {
166 SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
177 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
178 template <typename InfrastructureConfigurationArnT = Aws::String>
179 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
180 m_infrastructureConfigurationArnHasBeenSet = true;
181 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
182 }
183 template <typename InfrastructureConfigurationArnT = Aws::String>
184 ImagePipeline& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) {
185 SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetDistributionConfigurationArn() const { return m_distributionConfigurationArn; }
196 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
197 template <typename DistributionConfigurationArnT = Aws::String>
198 void SetDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
199 m_distributionConfigurationArnHasBeenSet = true;
200 m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value);
201 }
202 template <typename DistributionConfigurationArnT = Aws::String>
203 ImagePipeline& WithDistributionConfigurationArn(DistributionConfigurationArnT&& value) {
204 SetDistributionConfigurationArn(std::forward<DistributionConfigurationArnT>(value));
205 return *this;
206 }
208
210
213 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const { return m_imageTestsConfiguration; }
214 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
215 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
216 void SetImageTestsConfiguration(ImageTestsConfigurationT&& value) {
217 m_imageTestsConfigurationHasBeenSet = true;
218 m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value);
219 }
220 template <typename ImageTestsConfigurationT = ImageTestsConfiguration>
221 ImagePipeline& WithImageTestsConfiguration(ImageTestsConfigurationT&& value) {
222 SetImageTestsConfiguration(std::forward<ImageTestsConfigurationT>(value));
223 return *this;
224 }
226
228
231 inline const Schedule& GetSchedule() const { return m_schedule; }
232 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
233 template <typename ScheduleT = Schedule>
234 void SetSchedule(ScheduleT&& value) {
235 m_scheduleHasBeenSet = true;
236 m_schedule = std::forward<ScheduleT>(value);
237 }
238 template <typename ScheduleT = Schedule>
239 ImagePipeline& WithSchedule(ScheduleT&& value) {
240 SetSchedule(std::forward<ScheduleT>(value));
241 return *this;
242 }
244
246
249 inline PipelineStatus GetStatus() const { return m_status; }
250 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
251 inline void SetStatus(PipelineStatus value) {
252 m_statusHasBeenSet = true;
253 m_status = value;
254 }
256 SetStatus(value);
257 return *this;
258 }
260
262
265 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
266 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
267 template <typename DateCreatedT = Aws::String>
268 void SetDateCreated(DateCreatedT&& value) {
269 m_dateCreatedHasBeenSet = true;
270 m_dateCreated = std::forward<DateCreatedT>(value);
271 }
272 template <typename DateCreatedT = Aws::String>
273 ImagePipeline& WithDateCreated(DateCreatedT&& value) {
274 SetDateCreated(std::forward<DateCreatedT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
284 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
285 template <typename DateUpdatedT = Aws::String>
286 void SetDateUpdated(DateUpdatedT&& value) {
287 m_dateUpdatedHasBeenSet = true;
288 m_dateUpdated = std::forward<DateUpdatedT>(value);
289 }
290 template <typename DateUpdatedT = Aws::String>
291 ImagePipeline& WithDateUpdated(DateUpdatedT&& value) {
292 SetDateUpdated(std::forward<DateUpdatedT>(value));
293 return *this;
294 }
296
298
301 inline const Aws::String& GetDateLastRun() const { return m_dateLastRun; }
302 inline bool DateLastRunHasBeenSet() const { return m_dateLastRunHasBeenSet; }
303 template <typename DateLastRunT = Aws::String>
304 void SetDateLastRun(DateLastRunT&& value) {
305 m_dateLastRunHasBeenSet = true;
306 m_dateLastRun = std::forward<DateLastRunT>(value);
307 }
308 template <typename DateLastRunT = Aws::String>
309 ImagePipeline& WithDateLastRun(DateLastRunT&& value) {
310 SetDateLastRun(std::forward<DateLastRunT>(value));
311 return *this;
312 }
314
316
321 inline ImageStatus GetLastRunStatus() const { return m_lastRunStatus; }
322 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
323 inline void SetLastRunStatus(ImageStatus value) {
324 m_lastRunStatusHasBeenSet = true;
325 m_lastRunStatus = value;
326 }
328 SetLastRunStatus(value);
329 return *this;
330 }
332
334
337 inline const Aws::String& GetDateNextRun() const { return m_dateNextRun; }
338 inline bool DateNextRunHasBeenSet() const { return m_dateNextRunHasBeenSet; }
339 template <typename DateNextRunT = Aws::String>
340 void SetDateNextRun(DateNextRunT&& value) {
341 m_dateNextRunHasBeenSet = true;
342 m_dateNextRun = std::forward<DateNextRunT>(value);
343 }
344 template <typename DateNextRunT = Aws::String>
345 ImagePipeline& WithDateNextRun(DateNextRunT&& value) {
346 SetDateNextRun(std::forward<DateNextRunT>(value));
347 return *this;
348 }
350
352
355 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
356 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
357 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
358 void SetTags(TagsT&& value) {
359 m_tagsHasBeenSet = true;
360 m_tags = std::forward<TagsT>(value);
361 }
362 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
363 ImagePipeline& WithTags(TagsT&& value) {
364 SetTags(std::forward<TagsT>(value));
365 return *this;
366 }
367 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
368 ImagePipeline& AddTags(TagsKeyT&& key, TagsValueT&& value) {
369 m_tagsHasBeenSet = true;
370 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
371 return *this;
372 }
374
376
379 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
380 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
381 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
382 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) {
383 m_imageScanningConfigurationHasBeenSet = true;
384 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
385 }
386 template <typename ImageScanningConfigurationT = ImageScanningConfiguration>
387 ImagePipeline& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) {
388 SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value));
389 return *this;
390 }
392
394
398 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
399 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
400 template <typename ExecutionRoleT = Aws::String>
401 void SetExecutionRole(ExecutionRoleT&& value) {
402 m_executionRoleHasBeenSet = true;
403 m_executionRole = std::forward<ExecutionRoleT>(value);
404 }
405 template <typename ExecutionRoleT = Aws::String>
406 ImagePipeline& WithExecutionRole(ExecutionRoleT&& value) {
407 SetExecutionRole(std::forward<ExecutionRoleT>(value));
408 return *this;
409 }
411
413
416 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
417 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
418 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
419 void SetWorkflows(WorkflowsT&& value) {
420 m_workflowsHasBeenSet = true;
421 m_workflows = std::forward<WorkflowsT>(value);
422 }
423 template <typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
424 ImagePipeline& WithWorkflows(WorkflowsT&& value) {
425 SetWorkflows(std::forward<WorkflowsT>(value));
426 return *this;
427 }
428 template <typename WorkflowsT = WorkflowConfiguration>
429 ImagePipeline& AddWorkflows(WorkflowsT&& value) {
430 m_workflowsHasBeenSet = true;
431 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
432 return *this;
433 }
435
437
440 inline const PipelineLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
441 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
442 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
443 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
444 m_loggingConfigurationHasBeenSet = true;
445 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
446 }
447 template <typename LoggingConfigurationT = PipelineLoggingConfiguration>
448 ImagePipeline& WithLoggingConfiguration(LoggingConfigurationT&& value) {
449 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
450 return *this;
451 }
453
455
469 inline int GetConsecutiveFailures() const { return m_consecutiveFailures; }
470 inline bool ConsecutiveFailuresHasBeenSet() const { return m_consecutiveFailuresHasBeenSet; }
471 inline void SetConsecutiveFailures(int value) {
472 m_consecutiveFailuresHasBeenSet = true;
473 m_consecutiveFailures = value;
474 }
477 return *this;
478 }
480 private:
481 Aws::String m_arn;
482
483 Aws::String m_name;
484
485 Aws::String m_description;
486
487 Platform m_platform{Platform::NOT_SET};
488
489 bool m_enhancedImageMetadataEnabled{false};
490
491 Aws::String m_imageRecipeArn;
492
493 Aws::String m_containerRecipeArn;
494
495 Aws::String m_infrastructureConfigurationArn;
496
497 Aws::String m_distributionConfigurationArn;
498
499 ImageTestsConfiguration m_imageTestsConfiguration;
500
501 Schedule m_schedule;
502
504
505 Aws::String m_dateCreated;
506
507 Aws::String m_dateUpdated;
508
509 Aws::String m_dateLastRun;
510
511 ImageStatus m_lastRunStatus{ImageStatus::NOT_SET};
512
513 Aws::String m_dateNextRun;
514
516
517 ImageScanningConfiguration m_imageScanningConfiguration;
518
519 Aws::String m_executionRole;
520
522
523 PipelineLoggingConfiguration m_loggingConfiguration;
524
525 int m_consecutiveFailures{0};
526 bool m_arnHasBeenSet = false;
527 bool m_nameHasBeenSet = false;
528 bool m_descriptionHasBeenSet = false;
529 bool m_platformHasBeenSet = false;
530 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
531 bool m_imageRecipeArnHasBeenSet = false;
532 bool m_containerRecipeArnHasBeenSet = false;
533 bool m_infrastructureConfigurationArnHasBeenSet = false;
534 bool m_distributionConfigurationArnHasBeenSet = false;
535 bool m_imageTestsConfigurationHasBeenSet = false;
536 bool m_scheduleHasBeenSet = false;
537 bool m_statusHasBeenSet = false;
538 bool m_dateCreatedHasBeenSet = false;
539 bool m_dateUpdatedHasBeenSet = false;
540 bool m_dateLastRunHasBeenSet = false;
541 bool m_lastRunStatusHasBeenSet = false;
542 bool m_dateNextRunHasBeenSet = false;
543 bool m_tagsHasBeenSet = false;
544 bool m_imageScanningConfigurationHasBeenSet = false;
545 bool m_executionRoleHasBeenSet = false;
546 bool m_workflowsHasBeenSet = false;
547 bool m_loggingConfigurationHasBeenSet = false;
548 bool m_consecutiveFailuresHasBeenSet = false;
549};
550
551} // namespace Model
552} // namespace imagebuilder
553} // namespace Aws
ImagePipeline & WithDistributionConfigurationArn(DistributionConfigurationArnT &&value)
const Aws::String & GetArn() const
const Aws::String & GetContainerRecipeArn() const
void SetImageTestsConfiguration(ImageTestsConfigurationT &&value)
ImagePipeline & AddTags(TagsKeyT &&key, TagsValueT &&value)
ImagePipeline & WithTags(TagsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDistributionConfigurationArn() const
void SetLastRunStatus(ImageStatus value)
ImagePipeline & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
ImagePipeline & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
const Aws::String & GetDescription() const
AWS_IMAGEBUILDER_API ImagePipeline(Aws::Utils::Json::JsonView jsonValue)
void SetDateLastRun(DateLastRunT &&value)
ImagePipeline & WithDateCreated(DateCreatedT &&value)
const ImageTestsConfiguration & GetImageTestsConfiguration() const
ImagePipeline & AddWorkflows(WorkflowsT &&value)
ImagePipeline & WithPlatform(Platform value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ImagePipeline & WithWorkflows(WorkflowsT &&value)
ImagePipeline & WithDescription(DescriptionT &&value)
ImagePipeline & WithArn(ArnT &&value)
ImagePipeline & WithDateLastRun(DateLastRunT &&value)
const Aws::String & GetExecutionRole() const
const Aws::String & GetDateLastRun() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImagePipeline & WithDateNextRun(DateNextRunT &&value)
ImagePipeline & WithConsecutiveFailures(int value)
ImagePipeline & WithLastRunStatus(ImageStatus value)
ImagePipeline & WithLoggingConfiguration(LoggingConfigurationT &&value)
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
ImagePipeline & WithContainerRecipeArn(ContainerRecipeArnT &&value)
const Aws::String & GetImageRecipeArn() const
void SetDateCreated(DateCreatedT &&value)
const Aws::String & GetDateNextRun() const
void SetDateUpdated(DateUpdatedT &&value)
ImagePipeline & WithImageRecipeArn(ImageRecipeArnT &&value)
const Aws::String & GetDateCreated() const
ImagePipeline & WithEnhancedImageMetadataEnabled(bool value)
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
void SetStatus(PipelineStatus value)
ImagePipeline & WithStatus(PipelineStatus value)
void SetExecutionRole(ExecutionRoleT &&value)
AWS_IMAGEBUILDER_API ImagePipeline()=default
void SetDateNextRun(DateNextRunT &&value)
void SetImageRecipeArn(ImageRecipeArnT &&value)
ImagePipeline & WithName(NameT &&value)
const PipelineLoggingConfiguration & GetLoggingConfiguration() const
AWS_IMAGEBUILDER_API ImagePipeline & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDateUpdated() const
ImagePipeline & WithDateUpdated(DateUpdatedT &&value)
ImagePipeline & WithImageScanningConfiguration(ImageScanningConfigurationT &&value)
void SetWorkflows(WorkflowsT &&value)
ImagePipeline & WithExecutionRole(ExecutionRoleT &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
ImagePipeline & WithSchedule(ScheduleT &&value)
const Aws::String & GetName() const
const Aws::String & GetInfrastructureConfigurationArn() const
void SetContainerRecipeArn(ContainerRecipeArnT &&value)
void SetDistributionConfigurationArn(DistributionConfigurationArnT &&value)
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
Aws::Utils::Json::JsonValue JsonValue