AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateImagePipelineRequest.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/imagebuilder/model/ImageScanningConfiguration.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/imagebuilder/model/WorkflowConfiguration.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace imagebuilder
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IMAGEBUILDER_API UpdateImagePipelineRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateImagePipeline"; }
38
39 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetImagePipelineArn() const { return m_imagePipelineArn; }
48 inline bool ImagePipelineArnHasBeenSet() const { return m_imagePipelineArnHasBeenSet; }
49 template<typename ImagePipelineArnT = Aws::String>
50 void SetImagePipelineArn(ImagePipelineArnT&& value) { m_imagePipelineArnHasBeenSet = true; m_imagePipelineArn = std::forward<ImagePipelineArnT>(value); }
51 template<typename ImagePipelineArnT = Aws::String>
52 UpdateImagePipelineRequest& WithImagePipelineArn(ImagePipelineArnT&& value) { SetImagePipelineArn(std::forward<ImagePipelineArnT>(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 UpdateImagePipelineRequest& 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 UpdateImagePipelineRequest& WithImageRecipeArn(ImageRecipeArnT&& value) { SetImageRecipeArn(std::forward<ImageRecipeArnT>(value)); return *this;}
79
81
84 inline const Aws::String& GetContainerRecipeArn() const { return m_containerRecipeArn; }
85 inline bool ContainerRecipeArnHasBeenSet() const { return m_containerRecipeArnHasBeenSet; }
86 template<typename ContainerRecipeArnT = Aws::String>
87 void SetContainerRecipeArn(ContainerRecipeArnT&& value) { m_containerRecipeArnHasBeenSet = true; m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value); }
88 template<typename ContainerRecipeArnT = Aws::String>
89 UpdateImagePipelineRequest& WithContainerRecipeArn(ContainerRecipeArnT&& value) { SetContainerRecipeArn(std::forward<ContainerRecipeArnT>(value)); return *this;}
91
93
97 inline const Aws::String& GetInfrastructureConfigurationArn() const { return m_infrastructureConfigurationArn; }
98 inline bool InfrastructureConfigurationArnHasBeenSet() const { return m_infrastructureConfigurationArnHasBeenSet; }
99 template<typename InfrastructureConfigurationArnT = Aws::String>
100 void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { m_infrastructureConfigurationArnHasBeenSet = true; m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value); }
101 template<typename InfrastructureConfigurationArnT = Aws::String>
102 UpdateImagePipelineRequest& WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT&& value) { SetInfrastructureConfigurationArn(std::forward<InfrastructureConfigurationArnT>(value)); return *this;}
104
106
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 UpdateImagePipelineRequest& 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 UpdateImagePipelineRequest& 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 UpdateImagePipelineRequest& 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 UpdateImagePipelineRequest& WithStatus(PipelineStatus value) { SetStatus(value); return *this;}
165
167
173 inline const Aws::String& GetClientToken() const { return m_clientToken; }
174 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
175 template<typename ClientTokenT = Aws::String>
176 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
177 template<typename ClientTokenT = Aws::String>
178 UpdateImagePipelineRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
180
182
185 inline const ImageScanningConfiguration& GetImageScanningConfiguration() const { return m_imageScanningConfiguration; }
186 inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
187 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
188 void SetImageScanningConfiguration(ImageScanningConfigurationT&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value); }
189 template<typename ImageScanningConfigurationT = ImageScanningConfiguration>
190 UpdateImagePipelineRequest& WithImageScanningConfiguration(ImageScanningConfigurationT&& value) { SetImageScanningConfiguration(std::forward<ImageScanningConfigurationT>(value)); return *this;}
192
194
197 inline const Aws::Vector<WorkflowConfiguration>& GetWorkflows() const { return m_workflows; }
198 inline bool WorkflowsHasBeenSet() const { return m_workflowsHasBeenSet; }
199 template<typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
200 void SetWorkflows(WorkflowsT&& value) { m_workflowsHasBeenSet = true; m_workflows = std::forward<WorkflowsT>(value); }
201 template<typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
202 UpdateImagePipelineRequest& WithWorkflows(WorkflowsT&& value) { SetWorkflows(std::forward<WorkflowsT>(value)); return *this;}
203 template<typename WorkflowsT = WorkflowConfiguration>
204 UpdateImagePipelineRequest& AddWorkflows(WorkflowsT&& value) { m_workflowsHasBeenSet = true; m_workflows.emplace_back(std::forward<WorkflowsT>(value)); return *this; }
206
208
212 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
213 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
214 template<typename ExecutionRoleT = Aws::String>
215 void SetExecutionRole(ExecutionRoleT&& value) { m_executionRoleHasBeenSet = true; m_executionRole = std::forward<ExecutionRoleT>(value); }
216 template<typename ExecutionRoleT = Aws::String>
217 UpdateImagePipelineRequest& WithExecutionRole(ExecutionRoleT&& value) { SetExecutionRole(std::forward<ExecutionRoleT>(value)); return *this;}
219 private:
220
221 Aws::String m_imagePipelineArn;
222 bool m_imagePipelineArnHasBeenSet = false;
223
224 Aws::String m_description;
225 bool m_descriptionHasBeenSet = false;
226
227 Aws::String m_imageRecipeArn;
228 bool m_imageRecipeArnHasBeenSet = false;
229
230 Aws::String m_containerRecipeArn;
231 bool m_containerRecipeArnHasBeenSet = false;
232
233 Aws::String m_infrastructureConfigurationArn;
234 bool m_infrastructureConfigurationArnHasBeenSet = false;
235
236 Aws::String m_distributionConfigurationArn;
237 bool m_distributionConfigurationArnHasBeenSet = false;
238
239 ImageTestsConfiguration m_imageTestsConfiguration;
240 bool m_imageTestsConfigurationHasBeenSet = false;
241
242 bool m_enhancedImageMetadataEnabled{false};
243 bool m_enhancedImageMetadataEnabledHasBeenSet = false;
244
245 Schedule m_schedule;
246 bool m_scheduleHasBeenSet = false;
247
249 bool m_statusHasBeenSet = false;
250
252 bool m_clientTokenHasBeenSet = true;
253
254 ImageScanningConfiguration m_imageScanningConfiguration;
255 bool m_imageScanningConfigurationHasBeenSet = false;
256
258 bool m_workflowsHasBeenSet = false;
259
260 Aws::String m_executionRole;
261 bool m_executionRoleHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace imagebuilder
266} // 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 & 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector