Package org.cdk8s.plus25
Class HttpGetProbeOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus25.HttpGetProbeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpGetProbeOptions>
- Enclosing interface:
- HttpGetProbeOptions
@Stability(Stable) public static final class HttpGetProbeOptions.Builder extends Object implements software.amazon.jsii.Builder<HttpGetProbeOptions>
A builder forHttpGetProbeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpGetProbeOptionsbuild()Builds the configured instance.HttpGetProbeOptions.BuilderfailureThreshold(Number failureThreshold)Sets the value ofProbeOptions.getFailureThreshold()HttpGetProbeOptions.BuilderinitialDelaySeconds(org.cdk8s.Duration initialDelaySeconds)Sets the value ofProbeOptions.getInitialDelaySeconds()HttpGetProbeOptions.BuilderperiodSeconds(org.cdk8s.Duration periodSeconds)Sets the value ofProbeOptions.getPeriodSeconds()HttpGetProbeOptions.Builderport(Number port)Sets the value ofHttpGetProbeOptions.getPort()HttpGetProbeOptions.Builderscheme(ConnectionScheme scheme)Sets the value ofHttpGetProbeOptions.getScheme()HttpGetProbeOptions.BuildersuccessThreshold(Number successThreshold)Sets the value ofProbeOptions.getSuccessThreshold()HttpGetProbeOptions.BuildertimeoutSeconds(org.cdk8s.Duration timeoutSeconds)Sets the value ofProbeOptions.getTimeoutSeconds()
-
-
-
Method Detail
-
port
@Stability(Stable) public HttpGetProbeOptions.Builder port(Number port)
Sets the value ofHttpGetProbeOptions.getPort()- Parameters:
port- The TCP port to use when sending the GET request.- Returns:
this
-
scheme
@Stability(Stable) public HttpGetProbeOptions.Builder scheme(ConnectionScheme scheme)
Sets the value ofHttpGetProbeOptions.getScheme()- Parameters:
scheme- Scheme to use for connecting to the host (HTTP or HTTPS).- Returns:
this
-
failureThreshold
@Stability(Stable) public HttpGetProbeOptions.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 HttpGetProbeOptions.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 HttpGetProbeOptions.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 HttpGetProbeOptions.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 HttpGetProbeOptions.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 HttpGetProbeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpGetProbeOptions>- Returns:
- a new instance of
HttpGetProbeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-