Package io.github.cdklabs.projen
Class GitpodPort.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.GitpodPort.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitpodPort>
- Enclosing interface:
- GitpodPort
@Stability(Experimental) public static final class GitpodPort.Builder extends Object implements software.amazon.jsii.Builder<GitpodPort>
A builder forGitpodPort
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitpodPortbuild()Builds the configured instance.GitpodPort.BuilderonOpen(GitpodOnOpen onOpen)Sets the value ofGitpodPort.getOnOpen()GitpodPort.Builderport(String port)Sets the value ofGitpodPort.getPort()GitpodPort.Buildervisibility(GitpodPortVisibility visibility)Sets the value ofGitpodPort.getVisibility()
-
-
-
Method Detail
-
onOpen
@Stability(Experimental) public GitpodPort.Builder onOpen(GitpodOnOpen onOpen)
Sets the value ofGitpodPort.getOnOpen()- Parameters:
onOpen- What to do when a service on a port is detected.- Returns:
this
-
port
@Stability(Experimental) public GitpodPort.Builder port(String port)
Sets the value ofGitpodPort.getPort()- Parameters:
port- A port that should be exposed (forwarded) from the container.- Returns:
this
-
visibility
@Stability(Experimental) public GitpodPort.Builder visibility(GitpodPortVisibility visibility)
Sets the value ofGitpodPort.getVisibility()- Parameters:
visibility- Whether the port visibility should be private or public.- Returns:
this
-
build
@Stability(Experimental) public GitpodPort build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitpodPort>- Returns:
- a new instance of
GitpodPort - Throws:
NullPointerException- if any required attribute was not provided
-
-