Package org.cdk8s.plus25.k8s
Class TcpSocketAction.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.TcpSocketAction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TcpSocketAction>
- Enclosing interface:
- TcpSocketAction
@Stability(Stable) public static final class TcpSocketAction.Builder extends Object implements software.amazon.jsii.Builder<TcpSocketAction>
A builder forTcpSocketAction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpSocketActionbuild()Builds the configured instance.TcpSocketAction.Builderhost(String host)Sets the value ofTcpSocketAction.getHost()TcpSocketAction.Builderport(IntOrString port)Sets the value ofTcpSocketAction.getPort()
-
-
-
Method Detail
-
port
@Stability(Stable) public TcpSocketAction.Builder port(IntOrString port)
Sets the value ofTcpSocketAction.getPort()- Parameters:
port- Number or name of the port to access on the container. This parameter is required. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.- Returns:
this
-
host
@Stability(Stable) public TcpSocketAction.Builder host(String host)
Sets the value ofTcpSocketAction.getHost()- Parameters:
host- Optional: Host name to connect to, defaults to the pod IP.- Returns:
this
-
build
@Stability(Stable) public TcpSocketAction build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TcpSocketAction>- Returns:
- a new instance of
TcpSocketAction - Throws:
NullPointerException- if any required attribute was not provided
-
-