Interface HealthCheckConfig.Builder

All Superinterfaces:
Buildable, CopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>, SdkBuilder<HealthCheckConfig.Builder,HealthCheckConfig>, SdkPojo
Enclosing class:
HealthCheckConfig

public static interface HealthCheckConfig.Builder extends SdkPojo, CopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
  • Method Details

    • enabled

      Indicates whether health checking is enabled.

      Parameters:
      enabled - Indicates whether health checking is enabled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthCheckIntervalSeconds

      HealthCheckConfig.Builder healthCheckIntervalSeconds(Integer healthCheckIntervalSeconds)

      The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.

      Parameters:
      healthCheckIntervalSeconds - The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthCheckTimeoutSeconds

      HealthCheckConfig.Builder healthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds)

      The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.

      Parameters:
      healthCheckTimeoutSeconds - The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • healthyThresholdCount

      HealthCheckConfig.Builder healthyThresholdCount(Integer healthyThresholdCount)

      The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.

      Parameters:
      healthyThresholdCount - The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matcher

      The codes to use when checking for a successful response from a target. These are called Success codes in the console.

      Parameters:
      matcher - The codes to use when checking for a successful response from a target. These are called Success codes in the console.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matcher

      The codes to use when checking for a successful response from a target. These are called Success codes in the console.

      This is a convenience method that creates an instance of the Matcher.Builder avoiding the need to create one manually via Matcher.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to matcher(Matcher).

      Parameters:
      matcher - a consumer that will call methods on Matcher.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • path

      The destination for health checks on the targets. If the protocol version is HTTP/1.1 or HTTP/2, specify a valid URI (for example, /path?query). The default path is /. Health checks are not supported if the protocol version is gRPC, however, you can choose HTTP/1.1 or HTTP/2 and specify a valid URI.

      Parameters:
      path - The destination for health checks on the targets. If the protocol version is HTTP/1.1 or HTTP/2, specify a valid URI (for example, /path?query). The default path is /. Health checks are not supported if the protocol version is gRPC, however, you can choose HTTP/1.1 or HTTP/2 and specify a valid URI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • port

      The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.

      Parameters:
      port - The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protocol

      HealthCheckConfig.Builder protocol(String protocol)

      The protocol used when performing health checks on targets. The possible protocols are HTTP and HTTPS. The default is HTTP.

      Parameters:
      protocol - The protocol used when performing health checks on targets. The possible protocols are HTTP and HTTPS. The default is HTTP.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocol

      The protocol used when performing health checks on targets. The possible protocols are HTTP and HTTPS. The default is HTTP.

      Parameters:
      protocol - The protocol used when performing health checks on targets. The possible protocols are HTTP and HTTPS. The default is HTTP.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocolVersion

      HealthCheckConfig.Builder protocolVersion(String protocolVersion)

      The protocol version used when performing health checks on targets. The possible protocol versions are HTTP1 and HTTP2.

      Parameters:
      protocolVersion - The protocol version used when performing health checks on targets. The possible protocol versions are HTTP1 and HTTP2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocolVersion

      HealthCheckConfig.Builder protocolVersion(HealthCheckProtocolVersion protocolVersion)

      The protocol version used when performing health checks on targets. The possible protocol versions are HTTP1 and HTTP2.

      Parameters:
      protocolVersion - The protocol version used when performing health checks on targets. The possible protocol versions are HTTP1 and HTTP2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unhealthyThresholdCount

      HealthCheckConfig.Builder unhealthyThresholdCount(Integer unhealthyThresholdCount)

      The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.

      Parameters:
      unhealthyThresholdCount - The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.