Class TarballImageAssetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.assets.TarballImageAssetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TarballImageAssetProps>
- Enclosing interface:
TarballImageAssetProps
@Stability(Stable)
public static final class TarballImageAssetProps.Builder
extends Object
implements software.amazon.jsii.Builder<TarballImageAssetProps>
A builder for
TarballImageAssetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.displayName(String displayName) Sets the value ofTarballImageAssetProps.getDisplayName()tarballFile(String tarballFile) Sets the value ofTarballImageAssetProps.getTarballFile()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tarballFile
Sets the value ofTarballImageAssetProps.getTarballFile()- Parameters:
tarballFile- Absolute path to the tarball. This parameter is required. It is recommended to to use the script running directory (e.g.__dirnamein Node.js projects or dirname of__file__in Python) if your tarball is located as a resource inside your project.- Returns:
this
-
displayName
Sets the value ofTarballImageAssetProps.getDisplayName()- Parameters:
displayName- A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used.The default is the construct path of the
TarballImageAssetconstruct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such aslambda.Code.fromAssetImage()), this will look likeMyFunction/AssetImage.We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like
/MyBetaStack/MyFunction/Codewhen you are actually deploying to production.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TarballImageAssetProps>- Returns:
- a new instance of
TarballImageAssetProps - Throws:
NullPointerException- if any required attribute was not provided
-