Package org.cdk8s.plus23
Class CommandProbeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus23.CommandProbeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommandProbeOptions>
- Enclosing interface:
- CommandProbeOptions
@Stability(Stable) public static final class CommandProbeOptions.Builder extends Object implements software.amazon.jsii.Builder<CommandProbeOptions>
A builder forCommandProbeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandProbeOptions
build()
Builds the configured instance.CommandProbeOptions.Builder
failureThreshold(Number failureThreshold)
Sets the value ofProbeOptions.getFailureThreshold()
CommandProbeOptions.Builder
initialDelaySeconds(org.cdk8s.Duration initialDelaySeconds)
Sets the value ofProbeOptions.getInitialDelaySeconds()
CommandProbeOptions.Builder
periodSeconds(org.cdk8s.Duration periodSeconds)
Sets the value ofProbeOptions.getPeriodSeconds()
CommandProbeOptions.Builder
successThreshold(Number successThreshold)
Sets the value ofProbeOptions.getSuccessThreshold()
CommandProbeOptions.Builder
timeoutSeconds(org.cdk8s.Duration timeoutSeconds)
Sets the value ofProbeOptions.getTimeoutSeconds()
-
-
-
Method Detail
-
failureThreshold
@Stability(Stable) public CommandProbeOptions.Builder failureThreshold(Number failureThreshold)
Sets the value ofProbeOptions.getFailureThreshold()
- Parameters:
failureThreshold
- Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.- Returns:
this
-
initialDelaySeconds
@Stability(Stable) public CommandProbeOptions.Builder initialDelaySeconds(org.cdk8s.Duration initialDelaySeconds)
Sets the value ofProbeOptions.getInitialDelaySeconds()
- Parameters:
initialDelaySeconds
- Number of seconds after the container has started before liveness probes are initiated.- Returns:
this
-
periodSeconds
@Stability(Stable) public CommandProbeOptions.Builder periodSeconds(org.cdk8s.Duration periodSeconds)
Sets the value ofProbeOptions.getPeriodSeconds()
- Parameters:
periodSeconds
- How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.- Returns:
this
-
successThreshold
@Stability(Stable) public CommandProbeOptions.Builder successThreshold(Number successThreshold)
Sets the value ofProbeOptions.getSuccessThreshold()
- Parameters:
successThreshold
- Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.- Returns:
this
-
timeoutSeconds
@Stability(Stable) public CommandProbeOptions.Builder timeoutSeconds(org.cdk8s.Duration timeoutSeconds)
Sets the value ofProbeOptions.getTimeoutSeconds()
- Parameters:
timeoutSeconds
- Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1.- Returns:
this
-
build
@Stability(Stable) public CommandProbeOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CommandProbeOptions>
- Returns:
- a new instance of
CommandProbeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-