Interface ImageScanningConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageScanningConfiguration.Builder,
,ImageScanningConfiguration> SdkBuilder<ImageScanningConfiguration.Builder,
,ImageScanningConfiguration> SdkPojo
- Enclosing class:
ImageScanningConfiguration
public static interface ImageScanningConfiguration.Builder
extends SdkPojo, CopyableBuilder<ImageScanningConfiguration.Builder,ImageScanningConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionecrConfiguration
(Consumer<EcrConfiguration.Builder> ecrConfiguration) Contains Amazon ECR settings for vulnerability scans.ecrConfiguration
(EcrConfiguration ecrConfiguration) Contains Amazon ECR settings for vulnerability scans.imageScanningEnabled
(Boolean imageScanningEnabled) A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
imageScanningEnabled
A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
- Parameters:
imageScanningEnabled
- A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecrConfiguration
Contains Amazon ECR settings for vulnerability scans.
- Parameters:
ecrConfiguration
- Contains Amazon ECR settings for vulnerability scans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecrConfiguration
default ImageScanningConfiguration.Builder ecrConfiguration(Consumer<EcrConfiguration.Builder> ecrConfiguration) Contains Amazon ECR settings for vulnerability scans.
This is a convenience method that creates an instance of theEcrConfiguration.Builder
avoiding the need to create one manually viaEcrConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toecrConfiguration(EcrConfiguration)
.- Parameters:
ecrConfiguration
- a consumer that will call methods onEcrConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-