public static class HealthCheck.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HealthCheck |
build() |
HealthCheck.Builder |
clone() |
Integer |
getCheckIntervalSec()
How often (in seconds) to send a health check.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
Integer |
getHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes.
|
Http2HealthCheck |
getHttp2HealthCheck() |
HttpHealthCheck |
getHttpHealthCheck() |
HttpSHealthCheck |
getHttpsHealthCheck() |
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
Type of the resource.
|
String |
getName()
Name of the resource.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
SSLHealthCheck |
getSslHealthCheck() |
TCPHealthCheck |
getTcpHealthCheck() |
Integer |
getTimeoutSec()
How long (in seconds) to wait before claiming failure.
|
String |
getType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
Integer |
getUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures.
|
HealthCheck.Builder |
mergeFrom(HealthCheck other) |
HealthCheck.Builder |
setCheckIntervalSec(Integer checkIntervalSec)
How often (in seconds) to send a health check.
|
HealthCheck.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in 3339 text format.
|
HealthCheck.Builder |
setDescription(String description)
An optional description of this resource.
|
HealthCheck.Builder |
setHealthyThreshold(Integer healthyThreshold)
A so-far unhealthy instance will be marked healthy after this many consecutive successes.
|
HealthCheck.Builder |
setHttp2HealthCheck(Http2HealthCheck http2HealthCheck) |
HealthCheck.Builder |
setHttpHealthCheck(HttpHealthCheck httpHealthCheck) |
HealthCheck.Builder |
setHttpsHealthCheck(HttpSHealthCheck httpsHealthCheck) |
HealthCheck.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
HealthCheck.Builder |
setKind(String kind)
Type of the resource.
|
HealthCheck.Builder |
setName(String name)
Name of the resource.
|
HealthCheck.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
HealthCheck.Builder |
setSslHealthCheck(SSLHealthCheck sslHealthCheck) |
HealthCheck.Builder |
setTcpHealthCheck(TCPHealthCheck tcpHealthCheck) |
HealthCheck.Builder |
setTimeoutSec(Integer timeoutSec)
How long (in seconds) to wait before claiming failure.
|
HealthCheck.Builder |
setType(String type)
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
HealthCheck.Builder |
setUnhealthyThreshold(Integer unhealthyThreshold)
A so-far healthy instance will be marked unhealthy after this many consecutive failures.
|
public HealthCheck.Builder mergeFrom(HealthCheck other)
public Integer getCheckIntervalSec()
public HealthCheck.Builder setCheckIntervalSec(Integer checkIntervalSec)
public String getCreationTimestamp()
public HealthCheck.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public HealthCheck.Builder setDescription(String description)
public Integer getHealthyThreshold()
public HealthCheck.Builder setHealthyThreshold(Integer healthyThreshold)
public Http2HealthCheck getHttp2HealthCheck()
public HealthCheck.Builder setHttp2HealthCheck(Http2HealthCheck http2HealthCheck)
public HttpHealthCheck getHttpHealthCheck()
public HealthCheck.Builder setHttpHealthCheck(HttpHealthCheck httpHealthCheck)
public HttpSHealthCheck getHttpsHealthCheck()
public HealthCheck.Builder setHttpsHealthCheck(HttpSHealthCheck httpsHealthCheck)
public String getId()
public HealthCheck.Builder setId(String id)
public String getKind()
public HealthCheck.Builder setKind(String kind)
public String getName()
public HealthCheck.Builder setName(String name)
public String getSelfLink()
public HealthCheck.Builder setSelfLink(String selfLink)
public SSLHealthCheck getSslHealthCheck()
public HealthCheck.Builder setSslHealthCheck(SSLHealthCheck sslHealthCheck)
public TCPHealthCheck getTcpHealthCheck()
public HealthCheck.Builder setTcpHealthCheck(TCPHealthCheck tcpHealthCheck)
public Integer getTimeoutSec()
public HealthCheck.Builder setTimeoutSec(Integer timeoutSec)
public String getType()
public HealthCheck.Builder setType(String type)
public Integer getUnhealthyThreshold()
public HealthCheck.Builder setUnhealthyThreshold(Integer unhealthyThreshold)
public HealthCheck build()
public HealthCheck.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.