Package io.github.cdklabs.projen.gitlab
Class Image.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Image.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Imagebuild()Builds the configured instance.Image.Builderentrypoint(List<? extends Object> entrypoint)Sets the value ofImage.getEntrypoint()Image.Buildername(String name)Sets the value ofImage.getName()
-
-
-
Method Detail
-
name
@Stability(Experimental) public Image.Builder name(String name)
Sets the value ofImage.getName()- Parameters:
name- Full name of the image that should be used. This parameter is required. It should contain the Registry part if needed.- Returns:
this
-
entrypoint
@Stability(Experimental) public Image.Builder entrypoint(List<? extends Object> entrypoint)
Sets the value ofImage.getEntrypoint()- Parameters:
entrypoint- Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array.- Returns:
this
-
build
@Stability(Experimental) public Image build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Image>- Returns:
- a new instance of
Image - Throws:
NullPointerException- if any required attribute was not provided
-
-