Package org.cdk8s.plus25.k8s
Class LifecycleHandler.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.LifecycleHandler.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LifecycleHandler>
- Enclosing interface:
- LifecycleHandler
@Stability(Stable) public static final class LifecycleHandler.Builder extends Object implements software.amazon.jsii.Builder<LifecycleHandler>
A builder forLifecycleHandler
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LifecycleHandlerbuild()Builds the configured instance.LifecycleHandler.Builderexec(ExecAction exec)Sets the value ofLifecycleHandler.getExec()LifecycleHandler.BuilderhttpGet(HttpGetAction httpGet)Sets the value ofLifecycleHandler.getHttpGet()LifecycleHandler.BuildertcpSocket(TcpSocketAction tcpSocket)Sets the value ofLifecycleHandler.getTcpSocket()
-
-
-
Method Detail
-
exec
@Stability(Stable) public LifecycleHandler.Builder exec(ExecAction exec)
Sets the value ofLifecycleHandler.getExec()- Parameters:
exec- Exec specifies the action to take.- Returns:
this
-
httpGet
@Stability(Stable) public LifecycleHandler.Builder httpGet(HttpGetAction httpGet)
Sets the value ofLifecycleHandler.getHttpGet()- Parameters:
httpGet- HTTPGet specifies the http request to perform.- Returns:
this
-
tcpSocket
@Stability(Stable) public LifecycleHandler.Builder tcpSocket(TcpSocketAction tcpSocket)
Sets the value ofLifecycleHandler.getTcpSocket()- Parameters:
tcpSocket- Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.- Returns:
this
-
build
@Stability(Stable) public LifecycleHandler build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LifecycleHandler>- Returns:
- a new instance of
LifecycleHandler - Throws:
NullPointerException- if any required attribute was not provided
-
-