Interface ContainerHealthCheck.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContainerHealthCheck.Builder,
,ContainerHealthCheck> SdkBuilder<ContainerHealthCheck.Builder,
,ContainerHealthCheck> SdkPojo
- Enclosing class:
ContainerHealthCheck
public static interface ContainerHealthCheck.Builder
extends SdkPojo, CopyableBuilder<ContainerHealthCheck.Builder,ContainerHealthCheck>
-
Method Summary
Modifier and TypeMethodDescriptionA string array that specifies the command that the container runs to determine if it's healthy.command
(Collection<String> command) A string array that specifies the command that the container runs to determine if it's healthy.The time period (in seconds) between each health check.The number of times to retry a failed health check before the container is considered unhealthy.startPeriod
(Integer startPeriod) The optional grace period (in seconds) to give a container time to bootstrap before the first failed health check counts toward the number of retries.The time period (in seconds) to wait for a health check to succeed before a failed health check is counted.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
command
A string array that specifies the command that the container runs to determine if it's healthy.
- Parameters:
command
- A string array that specifies the command that the container runs to determine if it's healthy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
A string array that specifies the command that the container runs to determine if it's healthy.
- Parameters:
command
- A string array that specifies the command that the container runs to determine if it's healthy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interval
The time period (in seconds) between each health check.
- Parameters:
interval
- The time period (in seconds) between each health check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
The time period (in seconds) to wait for a health check to succeed before a failed health check is counted.
- Parameters:
timeout
- The time period (in seconds) to wait for a health check to succeed before a failed health check is counted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retries
The number of times to retry a failed health check before the container is considered unhealthy. The first run of the command does not count as a retry.
- Parameters:
retries
- The number of times to retry a failed health check before the container is considered unhealthy. The first run of the command does not count as a retry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startPeriod
The optional grace period (in seconds) to give a container time to bootstrap before the first failed health check counts toward the number of retries.
- Parameters:
startPeriod
- The optional grace period (in seconds) to give a container time to bootstrap before the first failed health check counts toward the number of retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-