Class HttpHealthCheckCreationOptions.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.options.HttpHealthCheckCreationOptions.Builder
-
- Enclosing class:
- HttpHealthCheckCreationOptions
public static class HttpHealthCheckCreationOptions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHealthCheckCreationOptionsbuildForPatch()Useful when performing a PATCH operation and you do not want to overwrite unspecified values with the default values.HttpHealthCheckCreationOptionsbuildWithDefaults()Fields left as null will be replaced with their default before the request is made.HttpHealthCheckCreationOptions.BuildercheckIntervalSec(Integer checkIntervalSec)How often (in seconds) to send a health check.HttpHealthCheckCreationOptions.Builderdescription(String description)An optional textual description of the TargetPool.HttpHealthCheckCreationOptions.BuilderhealthyThreshold(Integer healthyThreshold)An unhealthy VM will be marked healthy after this many consecutive successes.HttpHealthCheckCreationOptions.Builderhost(String host)The value of the host header in the HTTP health check request.HttpHealthCheckCreationOptions.Builderport(Integer port)The TCP port number for the HTTP health check request.HttpHealthCheckCreationOptions.BuilderrequestPath(String requestPath)The request path of the HTTP health check request.HttpHealthCheckCreationOptions.BuildertimeoutSec(Integer timeoutSec)How long (in seconds) to wait before claiming failure.HttpHealthCheckCreationOptions.BuilderunhealthyThreshold(Integer unhealthyThreshold)A so-far healthy VM will be marked unhealthy after this many consecutive failures.
-
-
-
Method Detail
-
host
public HttpHealthCheckCreationOptions.Builder host(String host)
The value of the host header in the HTTP health check request.
-
requestPath
public HttpHealthCheckCreationOptions.Builder requestPath(String requestPath)
The request path of the HTTP health check request. The default value is "/".
-
port
public HttpHealthCheckCreationOptions.Builder port(Integer port)
The TCP port number for the HTTP health check request. The default value is 80.
-
checkIntervalSec
public HttpHealthCheckCreationOptions.Builder checkIntervalSec(Integer checkIntervalSec)
How often (in seconds) to send a health check. The default value is 5 seconds.
-
timeoutSec
public HttpHealthCheckCreationOptions.Builder timeoutSec(Integer timeoutSec)
How long (in seconds) to wait before claiming failure. The default value is 5 seconds.
-
unhealthyThreshold
public HttpHealthCheckCreationOptions.Builder unhealthyThreshold(Integer unhealthyThreshold)
A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
-
healthyThreshold
public HttpHealthCheckCreationOptions.Builder healthyThreshold(Integer healthyThreshold)
An unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
-
description
public HttpHealthCheckCreationOptions.Builder description(String description)
An optional textual description of the TargetPool.
-
buildWithDefaults
public HttpHealthCheckCreationOptions buildWithDefaults()
Fields left as null will be replaced with their default before the request is made.
-
buildForPatch
public HttpHealthCheckCreationOptions buildForPatch()
Useful when performing a PATCH operation and you do not want to overwrite unspecified values with the default values.
-
-