Package org.cdk8s.plus23.k8s
Class ExecAction.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.ExecAction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExecAction>
- Enclosing interface:
- ExecAction
@Stability(Stable) public static final class ExecAction.Builder extends Object implements software.amazon.jsii.Builder<ExecAction>
A builder forExecAction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecAction
build()
Builds the configured instance.ExecAction.Builder
command(List<String> command)
Sets the value ofExecAction.getCommand()
-
-
-
Method Detail
-
command
@Stability(Stable) public ExecAction.Builder command(List<String> command)
Sets the value ofExecAction.getCommand()
- Parameters:
command
- Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.- Returns:
this
-
build
@Stability(Stable) public ExecAction build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ExecAction>
- Returns:
- a new instance of
ExecAction
- Throws:
NullPointerException
- if any required attribute was not provided
-
-