Class ContainerServiceHealthCheckConfig
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.ContainerServiceHealthCheckConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContainerServiceHealthCheckConfig.Builder,ContainerServiceHealthCheckConfig>
@Generated("software.amazon.awssdk:codegen") public final class ContainerServiceHealthCheckConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerServiceHealthCheckConfig.Builder,ContainerServiceHealthCheckConfig>
Describes the health check configuration of an Amazon Lightsail container service.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContainerServiceHealthCheckConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContainerServiceHealthCheckConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerhealthyThreshold()The number of consecutive health checks successes required before moving the container to theHealthystate.IntegerintervalSeconds()The approximate interval, in seconds, between health checks of an individual container.Stringpath()The path on the container on which to perform the health check.List<SdkField<?>>sdkFields()static Class<? extends ContainerServiceHealthCheckConfig.Builder>serializableBuilderClass()StringsuccessCodes()The HTTP codes to use when checking for a successful response from a container.IntegertimeoutSeconds()The amount of time, in seconds, during which no response means a failed health check.ContainerServiceHealthCheckConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerunhealthyThreshold()The number of consecutive health check failures required before moving the container to theUnhealthystate.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
healthyThreshold
public final Integer healthyThreshold()
The number of consecutive health checks successes required before moving the container to the
Healthystate. The default value is2.- Returns:
- The number of consecutive health checks successes required before moving the container to the
Healthystate. The default value is2.
-
unhealthyThreshold
public final Integer unhealthyThreshold()
The number of consecutive health check failures required before moving the container to the
Unhealthystate. The default value is2.- Returns:
- The number of consecutive health check failures required before moving the container to the
Unhealthystate. The default value is2.
-
timeoutSeconds
public final Integer timeoutSeconds()
The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is
2.- Returns:
- The amount of time, in seconds, during which no response means a failed health check. You can specify
between 2 and 60 seconds. The default value is
2.
-
intervalSeconds
public final Integer intervalSeconds()
The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is
5.- Returns:
- The approximate interval, in seconds, between health checks of an individual container. You can specify
between 5 and 300 seconds. The default value is
5.
-
path
public final String path()
The path on the container on which to perform the health check. The default value is
/.- Returns:
- The path on the container on which to perform the health check. The default value is
/.
-
successCodes
public final String successCodes()
The HTTP codes to use when checking for a successful response from a container. You can specify values between
200and499. You can specify multiple values (for example,200,202) or a range of values (for example,200-299).- Returns:
- The HTTP codes to use when checking for a successful response from a container. You can specify values
between
200and499. You can specify multiple values (for example,200,202) or a range of values (for example,200-299).
-
toBuilder
public ContainerServiceHealthCheckConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContainerServiceHealthCheckConfig.Builder,ContainerServiceHealthCheckConfig>
-
builder
public static ContainerServiceHealthCheckConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContainerServiceHealthCheckConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-