AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ImagePipeline.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/Platform.h>
10#include <aws/imagebuilder/model/ImageTestsConfiguration.h>
11#include <aws/imagebuilder/model/Schedule.h>
12#include <aws/imagebuilder/model/PipelineStatus.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/imagebuilder/model/WorkflowConfiguration.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace imagebuilder
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_IMAGEBUILDER_API ImagePipeline() = default;
43 AWS_IMAGEBUILDER_API ImagePipeline(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IMAGEBUILDER_API ImagePipeline& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 ImagePipeline& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 ImagePipeline& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 ImagePipeline& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
88 inline Platform GetPlatform() const { return m_platform; }
89 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
90 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
91 inline ImagePipeline& WithPlatform(Platform value) { SetPlatform(value); return *this;}
93
95
101 inline bool GetEnhancedImageMetadataEnabled() const { return m_enhancedImageMetadataEnabled; }
102 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
103 inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; }
106
108
112 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
113 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
114 template<typename ImageRecipeArnT = Aws::String>
115 void SetImageRecipeArn(ImageRecipeArnT&& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = std::forward<ImageRecipeArnT>(value); }
116 template<typename ImageRecipeArnT = Aws::String>
117 ImagePipeline& WithImageRecipeArn(ImageRecipeArnT&& value) { SetImageRecipeArn(std::forward<ImageRecipeArnT>(value)); return *this;}
119
121
125 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
126 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
127 template<typename ContainerRecipeArnT = Aws::String>
128 void SetContainerRecipeArn(ContainerRecipeArnT&& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value); }
129 template<typename ContainerRecipeArnT = Aws::String>
130 ImagePipeline& WithContainerRecipeArn(ContainerRecipeArnT&& value) { SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value)); return *this;}
132
134
138 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
139 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
140 template<typename InfrastructureConfigurationArnT = Aws::String>
141 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value); }
142 template<typename InfrastructureConfigurationArnT = Aws::String>
143 ImagePipeline& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value)); return *this;}
145
147
151 inline const Aws::String& GetDistributionConfigurationArn() const { return m_distributionConfigurationArn; }
152 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
153 template<typename DistributionConfigurationArnT = Aws::String>
154 void SetDistributionConfigurationArn(DistributionConfigurationArnT&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value); }
155 template<typename DistributionConfigurationArnT = Aws::String>
156 ImagePipeline& WithDistributionConfigurationArn(DistributionConfigurationArnT&& value) { SetDistributionConfigurationArn(std::forward<DistributionConfigurationArnT>(value)); return *this;}
158
160
163 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const { return m_imageTestsConfiguration; }
164 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
165 template<typename ImageTestsConfigurationT = ImageTestsConfiguration>
166 void SetImageTestsConfiguration(ImageTestsConfigurationT&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value); }
167 template<typename ImageTestsConfigurationT = ImageTestsConfiguration>
168 ImagePipeline& WithImageTestsConfiguration(ImageTestsConfigurationT&& value) { SetImageTestsConfiguration(std::forward<ImageTestsConfigurationT>(value)); return *this;}
170
172
175 inline const Schedule& GetSchedule() const { return m_schedule; }
176 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
177 template<typename ScheduleT = Schedule>
178 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
179 template<typename ScheduleT = Schedule>
180 ImagePipeline& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
182
184
187 inline PipelineStatus GetStatus() const { return m_status; }
188 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
189 inline void SetStatus(PipelineStatus value) { m_statusHasBeenSet = true; m_status = value; }
190 inline ImagePipeline& WithStatus(PipelineStatus value) { SetStatus(value); return *this;}
192
194
197 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
198 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
199 template<typename DateCreatedT = Aws::String>
200 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
201 template<typename DateCreatedT = Aws::String>
202 ImagePipeline& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
204
206
209 inline const Aws::String& GetDateUpdated() const { return m_dateUpdated; }
210 inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; }
211 template<typename DateUpdatedT = Aws::String>
212 void SetDateUpdated(DateUpdatedT&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::forward<DateUpdatedT>(value); }
213 template<typename DateUpdatedT = Aws::String>
214 ImagePipeline& WithDateUpdated(DateUpdatedT&& value) { SetDateUpdated(std::forward<DateUpdatedT>(value)); return *this;}
216
218
221 inline const Aws::String& GetDateLastRun() const { return m_dateLastRun; }
222 inline bool DateLastRunHasBeenSet() const { return m_dateLastRunHasBeenSet; }
223 template<typename DateLastRunT = Aws::String>
224 void SetDateLastRun(DateLastRunT&& value) { m_dateLastRunHasBeenSet = true; m_dateLastRun = std::forward<DateLastRunT>(value); }
225 template<typename DateLastRunT = Aws::String>
226 ImagePipeline& WithDateLastRun(DateLastRunT&& value) { SetDateLastRun(std::forward<DateLastRunT>(value)); return *this;}
228
230
233 inline const Aws::String& GetDateNextRun() const { return m_dateNextRun; }
234 inline bool DateNextRunHasBeenSet() const { return m_dateNextRunHasBeenSet; }
235 template<typename DateNextRunT = Aws::String>
236 void SetDateNextRun(DateNextRunT&& value) { m_dateNextRunHasBeenSet = true; m_dateNextRun = std::forward<DateNextRunT>(value); }
237 template<typename DateNextRunT = Aws::String>
238 ImagePipeline& WithDateNextRun(DateNextRunT&& value) { SetDateNextRun(std::forward<DateNextRunT>(value)); return *this;}
240
242
245 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
246 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
247 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
248 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
249 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
250 ImagePipeline& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
251 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
252 ImagePipeline& AddTags(TagsKeyT&& key, TagsValueT&& value) {
253 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
254 }
256
258
261 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
262 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
263 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
264 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value); }
265 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
266 ImagePipeline& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) { SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value)); return *this;}
268
270
274 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
275 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
276 template<typename ExecutionRoleT = Aws::String>
277 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
278 template<typename ExecutionRoleT = Aws::String>
279 ImagePipeline& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
281
283
286 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
287 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
288 template<typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
289 void SetWorkflows(WorkflowsT&& value) { m_workflowsHasBeenSet = true; m_workflows = std::forward<WorkflowsT>(value); }
290 template<typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
291 ImagePipeline& WithWorkflows(WorkflowsT&& value) { SetWorkflows(std::forward<WorkflowsT>(value)); return *this;}
292 template<typename WorkflowsT = WorkflowConfiguration>
293 ImagePipeline& AddWorkflows(WorkflowsT&& value) { m_workflowsHasBeenSet = true; m_workflows.emplace_back(std::forward<WorkflowsT>(value)); return *this; }
295 private:
296
297 Aws::String m_arn;
298 bool m_arnHasBeenSet = false;
299
300 Aws::String m_name;
301 bool m_nameHasBeenSet = false;
302
303 Aws::String m_description;
304 bool m_descriptionHasBeenSet = false;
305
306 Platform m_platform{Platform::NOT_SET};
307 bool m_platformHasBeenSet = false;
308
309 bool m_enhancedImageMetadataEnabled{false};
310 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
311
312 Aws::String m_imageRecipeArn;
313 bool m_imageRecipeArnHasBeenSet = false;
314
315 Aws::String m_containerRecipeArn;
316 bool m_containerRecipeArnHasBeenSet = false;
317
318 Aws::String m_infrastructureConfigurationArn;
319 bool m_infrastructureConfigurationArnHasBeenSet = false;
320
321 Aws::String m_distributionConfigurationArn;
322 bool m_distributionConfigurationArnHasBeenSet = false;
323
324 ImageTestsConfiguration m_imageTestsConfiguration;
325 bool m_imageTestsConfigurationHasBeenSet = false;
326
327 Schedule m_schedule;
328 bool m_scheduleHasBeenSet = false;
329
331 bool m_statusHasBeenSet = false;
332
333 Aws::String m_dateCreated;
334 bool m_dateCreatedHasBeenSet = false;
335
336 Aws::String m_dateUpdated;
337 bool m_dateUpdatedHasBeenSet = false;
338
339 Aws::String m_dateLastRun;
340 bool m_dateLastRunHasBeenSet = false;
341
342 Aws::String m_dateNextRun;
343 bool m_dateNextRunHasBeenSet = false;
344
346 bool m_tagsHasBeenSet = false;
347
348 ImageScanningConfiguration m_imageScanningConfiguration;
349 bool m_imageScanningConfigurationHasBeenSet = false;
350
351 Aws::String m_executionRole;
352 bool m_executionRoleHasBeenSet = false;
353
355 bool m_workflowsHasBeenSet = false;
356 };
357
358} // namespace Model
359} // namespace imagebuilder
360} // 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
ImagePipeline & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
ImagePipeline & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&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)
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)
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