AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateImagePipelineRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace imagebuilder
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_IMAGEBUILDER_API CreateImagePipelineRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateImagePipeline"; }
39
40 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateImagePipelineRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateImagePipelineRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
72 inline const Aws::String& GetImageRecipeArn() const { return m_imageRecipeArn; }
73 inline bool ImageRecipeArnHasBeenSet() const { return m_imageRecipeArnHasBeenSet; }
74 template<typename ImageRecipeArnT = Aws::String>
75 void SetImageRecipeArn(ImageRecipeArnT&& value) { m_imageRecipeArnHasBeenSet = true; m_imageRecipeArn = std::forward<ImageRecipeArnT>(value); }
76 template<typename ImageRecipeArnT = Aws::String>
77 CreateImagePipelineRequest& WithImageRecipeArn(ImageRecipeArnT&& value) { SetImageRecipeArn(std::forward<ImageRecipeArnT>(value)); return *this;}
79
81
85 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
86 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
87 template<typename ContainerRecipeArnT = Aws::String>
88 void SetContainerRecipeArn(ContainerRecipeArnT&& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value); }
89 template<typename ContainerRecipeArnT = Aws::String>
90 CreateImagePipelineRequest& WithContainerRecipeArn(ContainerRecipeArnT&& value) { SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value)); return *this;}
92
94
98 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
99 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
100 template<typename InfrastructureConfigurationArnT = Aws::String>
101 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value); }
102 template<typename InfrastructureConfigurationArnT = Aws::String>
103 CreateImagePipelineRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value)); return *this;}
105
107
111 inline const Aws::String& GetDistributionConfigurationArn() const { return m_distributionConfigurationArn; }
112 inline bool DistributionConfigurationArnHasBeenSet() const { return m_distributionConfigurationArnHasBeenSet; }
113 template<typename DistributionConfigurationArnT = Aws::String>
114 void SetDistributionConfigurationArn(DistributionConfigurationArnT&& value) { m_distributionConfigurationArnHasBeenSet = true; m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value); }
115 template<typename DistributionConfigurationArnT = Aws::String>
116 CreateImagePipelineRequest& WithDistributionConfigurationArn(DistributionConfigurationArnT&& value) { SetDistributionConfigurationArn(std::forward<DistributionConfigurationArnT>(value)); return *this;}
118
120
123 inline const ImageTestsConfiguration& GetImageTestsConfiguration() const { return m_imageTestsConfiguration; }
124 inline bool ImageTestsConfigurationHasBeenSet() const { return m_imageTestsConfigurationHasBeenSet; }
125 template<typename ImageTestsConfigurationT = ImageTestsConfiguration>
126 void SetImageTestsConfiguration(ImageTestsConfigurationT&& value) { m_imageTestsConfigurationHasBeenSet = true; m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value); }
127 template<typename ImageTestsConfigurationT = ImageTestsConfiguration>
128 CreateImagePipelineRequest& WithImageTestsConfiguration(ImageTestsConfigurationT&& value) { SetImageTestsConfiguration(std::forward<ImageTestsConfigurationT>(value)); return *this;}
130
132
138 inline bool GetEnhancedImageMetadataEnabled() const { return m_enhancedImageMetadataEnabled; }
139 inline bool EnhancedImageMetadataEnabledHasBeenSet() const { return m_enhancedImageMetadataEnabledHasBeenSet; }
140 inline void SetEnhancedImageMetadataEnabled(bool value) { m_enhancedImageMetadataEnabledHasBeenSet = true; m_enhancedImageMetadataEnabled = value; }
143
145
148 inline const Schedule& GetSchedule() const { return m_schedule; }
149 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
150 template<typename ScheduleT = Schedule>
151 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
152 template<typename ScheduleT = Schedule>
153 CreateImagePipelineRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
155
157
160 inline PipelineStatus GetStatus() const { return m_status; }
161 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
162 inline void SetStatus(PipelineStatus value) { m_statusHasBeenSet = true; m_status = value; }
163 inline CreateImagePipelineRequest& WithStatus(PipelineStatus value) { SetStatus(value); return *this;}
165
167
170 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 CreateImagePipelineRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
176 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
177 CreateImagePipelineRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
178 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
179 }
181
183
189 inline const Aws::String& GetClientToken() const { return m_clientToken; }
190 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
191 template<typename ClientTokenT = Aws::String>
192 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
193 template<typename ClientTokenT = Aws::String>
194 CreateImagePipelineRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
196
198
201 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
202 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
203 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
204 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value); }
205 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
206 CreateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) { SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value)); return *this;}
208
210
213 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
214 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
215 template<typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
216 void SetWorkflows(WorkflowsT&& value) { m_workflowsHasBeenSet = true; m_workflows = std::forward<WorkflowsT>(value); }
217 template<typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
218 CreateImagePipelineRequest& WithWorkflows(WorkflowsT&& value) { SetWorkflows(std::forward<WorkflowsT>(value)); return *this;}
219 template<typename WorkflowsT = WorkflowConfiguration>
220 CreateImagePipelineRequest& AddWorkflows(WorkflowsT&& value) { m_workflowsHasBeenSet = true; m_workflows.emplace_back(std::forward<WorkflowsT>(value)); return *this; }
222
224
228 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
229 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
230 template<typename ExecutionRoleT = Aws::String>
231 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
232 template<typename ExecutionRoleT = Aws::String>
233 CreateImagePipelineRequest& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
235 private:
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 Aws::String m_imageRecipeArn;
244 bool m_imageRecipeArnHasBeenSet = false;
245
246 Aws::String m_containerRecipeArn;
247 bool m_containerRecipeArnHasBeenSet = false;
248
249 Aws::String m_infrastructureConfigurationArn;
250 bool m_infrastructureConfigurationArnHasBeenSet = false;
251
252 Aws::String m_distributionConfigurationArn;
253 bool m_distributionConfigurationArnHasBeenSet = false;
254
255 ImageTestsConfiguration m_imageTestsConfiguration;
256 bool m_imageTestsConfigurationHasBeenSet = false;
257
258 bool m_enhancedImageMetadataEnabled{false};
259 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
260
261 Schedule m_schedule;
262 bool m_scheduleHasBeenSet = false;
263
265 bool m_statusHasBeenSet = false;
266
268 bool m_tagsHasBeenSet = false;
269
271 bool m_clientTokenHasBeenSet = true;
272
273 ImageScanningConfiguration m_imageScanningConfiguration;
274 bool m_imageScanningConfigurationHasBeenSet = false;
275
277 bool m_workflowsHasBeenSet = false;
278
279 Aws::String m_executionRole;
280 bool m_executionRoleHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace imagebuilder
285} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetDistributionConfigurationArn(DistributionConfigurationArnT &&value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
AWS_IMAGEBUILDER_API CreateImagePipelineRequest()=default
CreateImagePipelineRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateImagePipelineRequest & WithWorkflows(WorkflowsT &&value)
CreateImagePipelineRequest & WithImageRecipeArn(ImageRecipeArnT &&value)
CreateImagePipelineRequest & WithExecutionRole(ExecutionRoleT &&value)
CreateImagePipelineRequest & WithContainerRecipeArn(ContainerRecipeArnT &&value)
CreateImagePipelineRequest & WithTags(TagsT &&value)
CreateImagePipelineRequest & WithImageScanningConfiguration(ImageScanningConfigurationT &&value)
CreateImagePipelineRequest & WithDistributionConfigurationArn(DistributionConfigurationArnT &&value)
CreateImagePipelineRequest & WithDescription(DescriptionT &&value)
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
void SetImageTestsConfiguration(ImageTestsConfigurationT &&value)
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
CreateImagePipelineRequest & AddWorkflows(WorkflowsT &&value)
CreateImagePipelineRequest & WithName(NameT &&value)
CreateImagePipelineRequest & WithEnhancedImageMetadataEnabled(bool value)
CreateImagePipelineRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
const ImageScanningConfiguration & GetImageScanningConfiguration() const
CreateImagePipelineRequest & WithSchedule(ScheduleT &&value)
CreateImagePipelineRequest & WithStatus(PipelineStatus value)
CreateImagePipelineRequest & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
CreateImagePipelineRequest & WithClientToken(ClientTokenT &&value)
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
const ImageTestsConfiguration & GetImageTestsConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() 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