Class VirtualGatewayHealthCheckPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.appmesh.model.VirtualGatewayHealthCheckPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VirtualGatewayHealthCheckPolicy.Builder,VirtualGatewayHealthCheckPolicy>
@Generated("software.amazon.awssdk:codegen") public final class VirtualGatewayHealthCheckPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VirtualGatewayHealthCheckPolicy.Builder,VirtualGatewayHealthCheckPolicy>
An object that represents the health check policy for a virtual gateway's listener.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVirtualGatewayHealthCheckPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VirtualGatewayHealthCheckPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerhealthyThreshold()The number of consecutive successful health checks that must occur before declaring the listener healthy.LongintervalMillis()The time period in milliseconds between each health check execution.Stringpath()The destination path for the health check request.Integerport()The destination port for the health check request.VirtualGatewayPortProtocolprotocol()The protocol for the health check request.StringprotocolAsString()The protocol for the health check request.List<SdkField<?>>sdkFields()static Class<? extends VirtualGatewayHealthCheckPolicy.Builder>serializableBuilderClass()LongtimeoutMillis()The amount of time to wait when receiving a response from the health check, in milliseconds.VirtualGatewayHealthCheckPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegerunhealthyThreshold()The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.-
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 successful health checks that must occur before declaring the listener healthy.
- Returns:
- The number of consecutive successful health checks that must occur before declaring the listener healthy.
-
intervalMillis
public final Long intervalMillis()
The time period in milliseconds between each health check execution.
- Returns:
- The time period in milliseconds between each health check execution.
-
path
public final String path()
The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
- Returns:
- The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.
-
port
public final Integer port()
The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
- Returns:
- The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.
-
protocol
public final VirtualGatewayPortProtocol protocol()
The protocol for the health check request. If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol.If the service returns an enum value that is not available in the current SDK version,
protocolwill returnVirtualGatewayPortProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol for the health check request. If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol. - See Also:
VirtualGatewayPortProtocol
-
protocolAsString
public final String protocolAsString()
The protocol for the health check request. If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol.If the service returns an enum value that is not available in the current SDK version,
protocolwill returnVirtualGatewayPortProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol for the health check request. If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol. - See Also:
VirtualGatewayPortProtocol
-
timeoutMillis
public final Long timeoutMillis()
The amount of time to wait when receiving a response from the health check, in milliseconds.
- Returns:
- The amount of time to wait when receiving a response from the health check, in milliseconds.
-
unhealthyThreshold
public final Integer unhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.
- Returns:
- The number of consecutive failed health checks that must occur before declaring a virtual gateway unhealthy.
-
toBuilder
public VirtualGatewayHealthCheckPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<VirtualGatewayHealthCheckPolicy.Builder,VirtualGatewayHealthCheckPolicy>
-
builder
public static VirtualGatewayHealthCheckPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends VirtualGatewayHealthCheckPolicy.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.
-
-