Class CfnRepository.ImageScanningConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.CfnRepository.ImageScanningConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepository.ImageScanningConfigurationProperty>
- Enclosing interface:
CfnRepository.ImageScanningConfigurationProperty
@Stability(Stable)
public static final class CfnRepository.ImageScanningConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepository.ImageScanningConfigurationProperty>
A builder for
CfnRepository.ImageScanningConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.scanOnPush
(Boolean scanOnPush) Sets the value ofCfnRepository.ImageScanningConfigurationProperty.getScanOnPush()
scanOnPush
(IResolvable scanOnPush) Sets the value ofCfnRepository.ImageScanningConfigurationProperty.getScanOnPush()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scanOnPush
@Stability(Stable) public CfnRepository.ImageScanningConfigurationProperty.Builder scanOnPush(Boolean scanOnPush) Sets the value ofCfnRepository.ImageScanningConfigurationProperty.getScanOnPush()
- Parameters:
scanOnPush
- The setting that determines whether images are scanned after being pushed to a repository. If set totrue
, images will be scanned after being pushed. If this parameter is not specified, it will default tofalse
and images will not be scanned unless a scan is manually started.- Returns:
this
-
scanOnPush
@Stability(Stable) public CfnRepository.ImageScanningConfigurationProperty.Builder scanOnPush(IResolvable scanOnPush) Sets the value ofCfnRepository.ImageScanningConfigurationProperty.getScanOnPush()
- Parameters:
scanOnPush
- The setting that determines whether images are scanned after being pushed to a repository. If set totrue
, images will be scanned after being pushed. If this parameter is not specified, it will default tofalse
and images will not be scanned unless a scan is manually started.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRepository.ImageScanningConfigurationProperty>
- Returns:
- a new instance of
CfnRepository.ImageScanningConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-