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/ImageLoggingConfiguration.h>
14#include <aws/imagebuilder/model/ImageScanningConfiguration.h>
15#include <aws/imagebuilder/model/ImageTestsConfiguration.h>
16#include <aws/imagebuilder/model/WorkflowConfiguration.h>
21namespace imagebuilder {
45 template <
typename ImageRecipeArnT = Aws::String>
47 m_imageRecipeArnHasBeenSet =
true;
48 m_imageRecipeArn = std::forward<ImageRecipeArnT>(value);
50 template <
typename ImageRecipeArnT = Aws::String>
64 template <
typename ContainerRecipeArnT = Aws::String>
66 m_containerRecipeArnHasBeenSet =
true;
67 m_containerRecipeArn = std::forward<ContainerRecipeArnT>(value);
69 template <
typename ContainerRecipeArnT = Aws::String>
83 template <
typename DistributionConfigurationArnT = Aws::String>
85 m_distributionConfigurationArnHasBeenSet =
true;
86 m_distributionConfigurationArn = std::forward<DistributionConfigurationArnT>(value);
88 template <
typename DistributionConfigurationArnT = Aws::String>
102 template <
typename InfrastructureConfigurationArnT = Aws::String>
104 m_infrastructureConfigurationArnHasBeenSet =
true;
105 m_infrastructureConfigurationArn = std::forward<InfrastructureConfigurationArnT>(value);
107 template <
typename InfrastructureConfigurationArnT = Aws::String>
120 template <
typename ImageTestsConfigurationT = ImageTestsConfiguration>
122 m_imageTestsConfigurationHasBeenSet =
true;
123 m_imageTestsConfiguration = std::forward<ImageTestsConfigurationT>(value);
125 template <
typename ImageTestsConfigurationT = ImageTestsConfiguration>
142 m_enhancedImageMetadataEnabledHasBeenSet =
true;
143 m_enhancedImageMetadataEnabled = value;
157 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 m_tagsHasBeenSet =
true;
160 m_tags = std::forward<TagsT>(value);
162 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 SetTags(std::forward<TagsT>(value));
167 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
169 m_tagsHasBeenSet =
true;
170 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
184 template <
typename ClientTokenT = Aws::String>
186 m_clientTokenHasBeenSet =
true;
187 m_clientToken = std::forward<ClientTokenT>(value);
189 template <
typename ClientTokenT = Aws::String>
202 template <
typename ImageScanningConfigurationT = ImageScanningConfiguration>
204 m_imageScanningConfigurationHasBeenSet =
true;
205 m_imageScanningConfiguration = std::forward<ImageScanningConfigurationT>(value);
207 template <
typename ImageScanningConfigurationT = ImageScanningConfiguration>
220 template <
typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
222 m_workflowsHasBeenSet =
true;
223 m_workflows = std::forward<WorkflowsT>(value);
225 template <
typename WorkflowsT = Aws::Vector<WorkflowConfiguration>>
230 template <
typename WorkflowsT = WorkflowConfiguration>
232 m_workflowsHasBeenSet =
true;
233 m_workflows.emplace_back(std::forward<WorkflowsT>(value));
245 template <
typename ExecutionRoleT = Aws::String>
247 m_executionRoleHasBeenSet =
true;
248 m_executionRole = std::forward<ExecutionRoleT>(value);
250 template <
typename ExecutionRoleT = Aws::String>
263 template <
typename LoggingConfigurationT = ImageLoggingConfiguration>
265 m_loggingConfigurationHasBeenSet =
true;
266 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
268 template <
typename LoggingConfigurationT = ImageLoggingConfiguration>
283 ImageTestsConfiguration m_imageTestsConfiguration;
285 bool m_enhancedImageMetadataEnabled{
false};
291 ImageScanningConfiguration m_imageScanningConfiguration;
297 ImageLoggingConfiguration m_loggingConfiguration;
298 bool m_imageRecipeArnHasBeenSet =
false;
299 bool m_containerRecipeArnHasBeenSet =
false;
300 bool m_distributionConfigurationArnHasBeenSet =
false;
301 bool m_infrastructureConfigurationArnHasBeenSet =
false;
302 bool m_imageTestsConfigurationHasBeenSet =
false;
303 bool m_enhancedImageMetadataEnabledHasBeenSet =
false;
304 bool m_tagsHasBeenSet =
false;
305 bool m_clientTokenHasBeenSet =
true;
306 bool m_imageScanningConfigurationHasBeenSet =
false;
307 bool m_workflowsHasBeenSet =
false;
308 bool m_executionRoleHasBeenSet =
false;
309 bool m_loggingConfigurationHasBeenSet =
false;
static Aws::Utils::UUID PseudoRandomUUID()
bool ContainerRecipeArnHasBeenSet() const
const Aws::String & GetExecutionRole() const
CreateImageRequest & WithImageTestsConfiguration(ImageTestsConfigurationT &&value)
CreateImageRequest & WithWorkflows(WorkflowsT &&value)
CreateImageRequest & WithClientToken(ClientTokenT &&value)
bool ImageTestsConfigurationHasBeenSet() const
AWS_IMAGEBUILDER_API CreateImageRequest()=default
const Aws::Vector< WorkflowConfiguration > & GetWorkflows() const
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
const Aws::String & GetInfrastructureConfigurationArn() const
bool LoggingConfigurationHasBeenSet() const
const Aws::String & GetClientToken() const
void SetClientToken(ClientTokenT &&value)
void SetImageTestsConfiguration(ImageTestsConfigurationT &&value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
void SetDistributionConfigurationArn(DistributionConfigurationArnT &&value)
bool DistributionConfigurationArnHasBeenSet() const
const ImageTestsConfiguration & GetImageTestsConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateImageRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
CreateImageRequest & WithImageScanningConfiguration(ImageScanningConfigurationT &&value)
const Aws::String & GetImageRecipeArn() const
void SetContainerRecipeArn(ContainerRecipeArnT &&value)
const ImageLoggingConfiguration & GetLoggingConfiguration() const
void SetImageRecipeArn(ImageRecipeArnT &&value)
CreateImageRequest & WithContainerRecipeArn(ContainerRecipeArnT &&value)
void SetEnhancedImageMetadataEnabled(bool value)
CreateImageRequest & AddWorkflows(WorkflowsT &&value)
void SetImageScanningConfiguration(ImageScanningConfigurationT &&value)
bool ClientTokenHasBeenSet() const
bool InfrastructureConfigurationArnHasBeenSet() const
bool EnhancedImageMetadataEnabledHasBeenSet() const
CreateImageRequest & WithExecutionRole(ExecutionRoleT &&value)
CreateImageRequest & WithEnhancedImageMetadataEnabled(bool value)
CreateImageRequest & WithInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetInfrastructureConfigurationArn(InfrastructureConfigurationArnT &&value)
bool ExecutionRoleHasBeenSet() const
bool GetEnhancedImageMetadataEnabled() const
bool ImageRecipeArnHasBeenSet() const
bool TagsHasBeenSet() const
bool WorkflowsHasBeenSet() const
const Aws::String & GetContainerRecipeArn() const
const ImageScanningConfiguration & GetImageScanningConfiguration() const
CreateImageRequest & WithTags(TagsT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
bool ImageScanningConfigurationHasBeenSet() const
void SetTags(TagsT &&value)
CreateImageRequest & WithImageRecipeArn(ImageRecipeArnT &&value)
CreateImageRequest & WithDistributionConfigurationArn(DistributionConfigurationArnT &&value)
const Aws::String & GetDistributionConfigurationArn() const
void SetWorkflows(WorkflowsT &&value)
CreateImageRequest & AddTags(TagsKeyT &&key, TagsValueT &&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