public static class HttpHealthCheckCreationOptions.Builder extends Object
Constructor and Description |
---|
HttpHealthCheckCreationOptions.Builder() |
Modifier and Type | Method and Description |
---|---|
HttpHealthCheckCreationOptions |
buildForPatch()
Useful when performing a PATCH operation and you do not want to overwrite
unspecified values with the default values.
|
HttpHealthCheckCreationOptions |
buildWithDefaults()
Fields left as null will be replaced with their default before the request
is made.
|
HttpHealthCheckCreationOptions.Builder |
checkIntervalSec(Integer checkIntervalSec)
How often (in seconds) to send a health check.
|
HttpHealthCheckCreationOptions.Builder |
description(String description)
An optional textual description of the TargetPool.
|
HttpHealthCheckCreationOptions.Builder |
healthyThreshold(Integer healthyThreshold)
An unhealthy VM will be marked healthy after this many consecutive successes.
|
HttpHealthCheckCreationOptions.Builder |
host(String host)
The value of the host header in the HTTP health check request.
|
HttpHealthCheckCreationOptions.Builder |
port(Integer port)
The TCP port number for the HTTP health check request.
|
HttpHealthCheckCreationOptions.Builder |
requestPath(String requestPath)
The request path of the HTTP health check request.
|
HttpHealthCheckCreationOptions.Builder |
timeoutSec(Integer timeoutSec)
How long (in seconds) to wait before claiming failure.
|
HttpHealthCheckCreationOptions.Builder |
unhealthyThreshold(Integer unhealthyThreshold)
A so-far healthy VM will be marked unhealthy after this many consecutive failures.
|
public HttpHealthCheckCreationOptions.Builder()
public HttpHealthCheckCreationOptions.Builder host(String host)
public HttpHealthCheckCreationOptions.Builder requestPath(String requestPath)
public HttpHealthCheckCreationOptions.Builder port(Integer port)
public HttpHealthCheckCreationOptions.Builder checkIntervalSec(Integer checkIntervalSec)
public HttpHealthCheckCreationOptions.Builder timeoutSec(Integer timeoutSec)
public HttpHealthCheckCreationOptions.Builder unhealthyThreshold(Integer unhealthyThreshold)
public HttpHealthCheckCreationOptions.Builder healthyThreshold(Integer healthyThreshold)
public HttpHealthCheckCreationOptions.Builder description(String description)
public HttpHealthCheckCreationOptions buildWithDefaults()
requestPath
- Defaults to when null.port
- Defaults to when null.checkIntervalSec
- Defaults to when null.timeoutSec
- Defaults to when null.unhealthyThreshold
- Defaults to when null.healthyThreshold
- Defaults to when null.public HttpHealthCheckCreationOptions buildForPatch()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.