Class AssetProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.AssetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssetProps>
- Enclosing interface:
AssetProps
@Stability(Experimental)
public static final class AssetProps.Builder
extends Object
implements software.amazon.jsii.Builder<AssetProps>
A builder for
AssetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasset
(DockerImageAsset asset) Sets the value ofAssetProps.getAsset()
build()
Builds the configured instance.imageConfiguration
(ImageConfiguration imageConfiguration) Sets the value ofAssetProps.getImageConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
asset
Sets the value ofAssetProps.getAsset()
- Parameters:
asset
- Represents the docker image asset. This parameter is required.- Returns:
this
-
imageConfiguration
@Stability(Experimental) public AssetProps.Builder imageConfiguration(ImageConfiguration imageConfiguration) Sets the value ofAssetProps.getImageConfiguration()
- Parameters:
imageConfiguration
- The image configuration for the image built from the asset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AssetProps>
- Returns:
- a new instance of
AssetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-