Class CfnImage.ImageTestsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImage.ImageTestsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImage.ImageTestsConfigurationProperty>
- Enclosing interface:
CfnImage.ImageTestsConfigurationProperty
@Stability(Stable)
public static final class CfnImage.ImageTestsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImage.ImageTestsConfigurationProperty>
A builder for
CfnImage.ImageTestsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.imageTestsEnabled
(Boolean imageTestsEnabled) Sets the value ofCfnImage.ImageTestsConfigurationProperty.getImageTestsEnabled()
imageTestsEnabled
(IResolvable imageTestsEnabled) Sets the value ofCfnImage.ImageTestsConfigurationProperty.getImageTestsEnabled()
timeoutMinutes
(Number timeoutMinutes) Sets the value ofCfnImage.ImageTestsConfigurationProperty.getTimeoutMinutes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageTestsEnabled
@Stability(Stable) public CfnImage.ImageTestsConfigurationProperty.Builder imageTestsEnabled(Boolean imageTestsEnabled) Sets the value ofCfnImage.ImageTestsConfigurationProperty.getImageTestsEnabled()
- Parameters:
imageTestsEnabled
- Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.- Returns:
this
-
imageTestsEnabled
@Stability(Stable) public CfnImage.ImageTestsConfigurationProperty.Builder imageTestsEnabled(IResolvable imageTestsEnabled) Sets the value ofCfnImage.ImageTestsConfigurationProperty.getImageTestsEnabled()
- Parameters:
imageTestsEnabled
- Determines if tests should run after building the image. Image Builder defaults to enable tests to run following the image build, before image distribution.- Returns:
this
-
timeoutMinutes
@Stability(Stable) public CfnImage.ImageTestsConfigurationProperty.Builder timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnImage.ImageTestsConfigurationProperty.getTimeoutMinutes()
- Parameters:
timeoutMinutes
- The maximum time in minutes that tests are permitted to run.The timeoutMinutes attribute is not currently active. This value is ignored.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImage.ImageTestsConfigurationProperty>
- Returns:
- a new instance of
CfnImage.ImageTestsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-