public final class HealthCheck
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
HealthCheck() |
Modifier and Type | Method and Description |
---|---|
HealthCheck |
clone() |
java.lang.Integer |
getCheckIntervalSec()
How often (in seconds) to send a health check.
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in 3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.lang.Integer |
getHealthyThreshold()
A so-far unhealthy instance will be marked healthy after this many consecutive successes.
|
HTTP2HealthCheck |
getHttp2HealthCheck() |
HTTPHealthCheck |
getHttpHealthCheck() |
HTTPSHealthCheck |
getHttpsHealthCheck() |
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
Type of the resource.
|
java.lang.String |
getName()
Name of the resource.
|
java.lang.String |
getRegion()
[Output Only] Region where the health check resides.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
SSLHealthCheck |
getSslHealthCheck() |
TCPHealthCheck |
getTcpHealthCheck() |
java.lang.Integer |
getTimeoutSec()
How long (in seconds) to wait before claiming failure.
|
java.lang.String |
getType()
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
java.lang.Integer |
getUnhealthyThreshold()
A so-far healthy instance will be marked unhealthy after this many consecutive failures.
|
HealthCheck |
set(java.lang.String fieldName,
java.lang.Object value) |
HealthCheck |
setCheckIntervalSec(java.lang.Integer checkIntervalSec)
How often (in seconds) to send a health check.
|
HealthCheck |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in 3339 text format.
|
HealthCheck |
setDescription(java.lang.String description)
An optional description of this resource.
|
HealthCheck |
setHealthyThreshold(java.lang.Integer healthyThreshold)
A so-far unhealthy instance will be marked healthy after this many consecutive successes.
|
HealthCheck |
setHttp2HealthCheck(HTTP2HealthCheck http2HealthCheck) |
HealthCheck |
setHttpHealthCheck(HTTPHealthCheck httpHealthCheck) |
HealthCheck |
setHttpsHealthCheck(HTTPSHealthCheck httpsHealthCheck) |
HealthCheck |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
HealthCheck |
setKind(java.lang.String kind)
Type of the resource.
|
HealthCheck |
setName(java.lang.String name)
Name of the resource.
|
HealthCheck |
setRegion(java.lang.String region)
[Output Only] Region where the health check resides.
|
HealthCheck |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
HealthCheck |
setSslHealthCheck(SSLHealthCheck sslHealthCheck) |
HealthCheck |
setTcpHealthCheck(TCPHealthCheck tcpHealthCheck) |
HealthCheck |
setTimeoutSec(java.lang.Integer timeoutSec)
How long (in seconds) to wait before claiming failure.
|
HealthCheck |
setType(java.lang.String type)
Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2.
|
HealthCheck |
setUnhealthyThreshold(java.lang.Integer unhealthyThreshold)
A so-far healthy instance will be marked unhealthy after this many consecutive failures.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Integer getCheckIntervalSec()
null
for nonepublic HealthCheck setCheckIntervalSec(java.lang.Integer checkIntervalSec)
checkIntervalSec
- checkIntervalSec or null
for nonepublic java.lang.String getCreationTimestamp()
null
for nonepublic HealthCheck setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic java.lang.String getDescription()
null
for nonepublic HealthCheck setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Integer getHealthyThreshold()
null
for nonepublic HealthCheck setHealthyThreshold(java.lang.Integer healthyThreshold)
healthyThreshold
- healthyThreshold or null
for nonepublic HTTP2HealthCheck getHttp2HealthCheck()
null
for nonepublic HealthCheck setHttp2HealthCheck(HTTP2HealthCheck http2HealthCheck)
http2HealthCheck
- http2HealthCheck or null
for nonepublic HTTPHealthCheck getHttpHealthCheck()
null
for nonepublic HealthCheck setHttpHealthCheck(HTTPHealthCheck httpHealthCheck)
httpHealthCheck
- httpHealthCheck or null
for nonepublic HTTPSHealthCheck getHttpsHealthCheck()
null
for nonepublic HealthCheck setHttpsHealthCheck(HTTPSHealthCheck httpsHealthCheck)
httpsHealthCheck
- httpsHealthCheck or null
for nonepublic java.math.BigInteger getId()
null
for nonepublic HealthCheck setId(java.math.BigInteger id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic HealthCheck setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getName()
null
for nonepublic HealthCheck setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getRegion()
null
for nonepublic HealthCheck setRegion(java.lang.String region)
region
- region or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic HealthCheck setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic SSLHealthCheck getSslHealthCheck()
null
for nonepublic HealthCheck setSslHealthCheck(SSLHealthCheck sslHealthCheck)
sslHealthCheck
- sslHealthCheck or null
for nonepublic TCPHealthCheck getTcpHealthCheck()
null
for nonepublic HealthCheck setTcpHealthCheck(TCPHealthCheck tcpHealthCheck)
tcpHealthCheck
- tcpHealthCheck or null
for nonepublic java.lang.Integer getTimeoutSec()
null
for nonepublic HealthCheck setTimeoutSec(java.lang.Integer timeoutSec)
timeoutSec
- timeoutSec or null
for nonepublic java.lang.String getType()
null
for nonepublic HealthCheck setType(java.lang.String type)
type
- type or null
for nonepublic java.lang.Integer getUnhealthyThreshold()
null
for nonepublic HealthCheck setUnhealthyThreshold(java.lang.Integer unhealthyThreshold)
unhealthyThreshold
- unhealthyThreshold or null
for nonepublic HealthCheck set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public HealthCheck clone()
clone
in class com.google.api.client.json.GenericJson