@Stability(value=Stable) public static final class CommandProbeOptions.Builder extends Object implements software.amazon.jsii.Builder<CommandProbeOptions>
CommandProbeOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CommandProbeOptions |
build()
Builds the configured instance.
|
CommandProbeOptions.Builder |
failureThreshold(Number failureThreshold)
Sets the value of
ProbeOptions.getFailureThreshold() |
CommandProbeOptions.Builder |
initialDelaySeconds(org.cdk8s.Duration initialDelaySeconds)
Sets the value of
ProbeOptions.getInitialDelaySeconds() |
CommandProbeOptions.Builder |
periodSeconds(org.cdk8s.Duration periodSeconds)
Sets the value of
ProbeOptions.getPeriodSeconds() |
CommandProbeOptions.Builder |
successThreshold(Number successThreshold)
Sets the value of
ProbeOptions.getSuccessThreshold() |
CommandProbeOptions.Builder |
timeoutSeconds(org.cdk8s.Duration timeoutSeconds)
Sets the value of
ProbeOptions.getTimeoutSeconds() |
@Stability(value=Stable) public CommandProbeOptions.Builder failureThreshold(Number failureThreshold)
ProbeOptions.getFailureThreshold()failureThreshold - Minimum consecutive failures for the probe to be considered failed after having succeeded.
Defaults to 3. Minimum value is 1.this@Stability(value=Stable) public CommandProbeOptions.Builder initialDelaySeconds(org.cdk8s.Duration initialDelaySeconds)
ProbeOptions.getInitialDelaySeconds()initialDelaySeconds - Number of seconds after the container has started before liveness probes are initiated.this@Stability(value=Stable) public CommandProbeOptions.Builder periodSeconds(org.cdk8s.Duration periodSeconds)
ProbeOptions.getPeriodSeconds()periodSeconds - How often (in seconds) to perform the probe.
Default to 10 seconds. Minimum value is 1.this@Stability(value=Stable) public CommandProbeOptions.Builder successThreshold(Number successThreshold)
ProbeOptions.getSuccessThreshold()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.this@Stability(value=Stable) public CommandProbeOptions.Builder timeoutSeconds(org.cdk8s.Duration timeoutSeconds)
ProbeOptions.getTimeoutSeconds()timeoutSeconds - Number of seconds after which the probe times out.
Defaults to 1 second. Minimum value is 1.this@Stability(value=Stable) public CommandProbeOptions build()
build in interface software.amazon.jsii.Builder<CommandProbeOptions>CommandProbeOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.