public final class HttpHealthCheck extends 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: http://code.google.com/p/google-api-java-client/wiki/Json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
HttpHealthCheck() |
Modifier and Type | Method and Description |
---|---|
HttpHealthCheck |
clone() |
Integer |
getCheckIntervalSec()
How often (in seconds) to send a health check.
|
String |
getCreationTimestamp()
Creation timestamp in RFC3339 text format (output only).
|
String |
getDescription()
An optional textual description of the resource; provided by the client when the resource is
created.
|
Integer |
getHealthyThreshold()
A so-far unhealthy VM will be marked healthy after this many consecutive successes.
|
String |
getHost()
The value of the host header in the HTTP health check request.
|
BigInteger |
getId()
Unique identifier for the resource; defined by the server (output only).
|
String |
getKind()
Type of the resource.
|
String |
getName()
Name of the resource; provided by the client when the resource is created.
|
Integer |
getPort()
The TCP port number for the HTTP health check request.
|
String |
getRequestPath()
The request path of the HTTP health check request.
|
String |
getSelfLink()
Server defined URL for the resource (output only).
|
Integer |
getTimeoutSec()
How long (in seconds) to wait before claiming failure.
|
Integer |
getUnhealthyThreshold()
A so-far healthy VM will be marked unhealthy after this many consecutive failures.
|
HttpHealthCheck |
set(String fieldName,
Object value) |
HttpHealthCheck |
setCheckIntervalSec(Integer checkIntervalSec)
How often (in seconds) to send a health check.
|
HttpHealthCheck |
setCreationTimestamp(String creationTimestamp)
Creation timestamp in RFC3339 text format (output only).
|
HttpHealthCheck |
setDescription(String description)
An optional textual description of the resource; provided by the client when the resource is
created.
|
HttpHealthCheck |
setHealthyThreshold(Integer healthyThreshold)
A so-far unhealthy VM will be marked healthy after this many consecutive successes.
|
HttpHealthCheck |
setHost(String host)
The value of the host header in the HTTP health check request.
|
HttpHealthCheck |
setId(BigInteger id)
Unique identifier for the resource; defined by the server (output only).
|
HttpHealthCheck |
setKind(String kind)
Type of the resource.
|
HttpHealthCheck |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
HttpHealthCheck |
setPort(Integer port)
The TCP port number for the HTTP health check request.
|
HttpHealthCheck |
setRequestPath(String requestPath)
The request path of the HTTP health check request.
|
HttpHealthCheck |
setSelfLink(String selfLink)
Server defined URL for the resource (output only).
|
HttpHealthCheck |
setTimeoutSec(Integer timeoutSec)
How long (in seconds) to wait before claiming failure.
|
HttpHealthCheck |
setUnhealthyThreshold(Integer unhealthyThreshold)
A so-far healthy VM 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 Integer getCheckIntervalSec()
null
for nonepublic HttpHealthCheck setCheckIntervalSec(Integer checkIntervalSec)
checkIntervalSec
- checkIntervalSec or null
for nonepublic String getCreationTimestamp()
null
for nonepublic HttpHealthCheck setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic HttpHealthCheck setDescription(String description)
description
- description or null
for nonepublic Integer getHealthyThreshold()
null
for nonepublic HttpHealthCheck setHealthyThreshold(Integer healthyThreshold)
healthyThreshold
- healthyThreshold or null
for nonepublic String getHost()
null
for nonepublic HttpHealthCheck setHost(String host)
host
- host or null
for nonepublic BigInteger getId()
null
for nonepublic HttpHealthCheck setId(BigInteger id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic HttpHealthCheck setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic HttpHealthCheck setName(String name)
name
- name or null
for nonepublic Integer getPort()
null
for nonepublic HttpHealthCheck setPort(Integer port)
port
- port or null
for nonepublic String getRequestPath()
null
for nonepublic HttpHealthCheck setRequestPath(String requestPath)
requestPath
- requestPath or null
for nonepublic String getSelfLink()
null
for nonepublic HttpHealthCheck setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic Integer getTimeoutSec()
null
for nonepublic HttpHealthCheck setTimeoutSec(Integer timeoutSec)
timeoutSec
- timeoutSec or null
for nonepublic Integer getUnhealthyThreshold()
null
for nonepublic HttpHealthCheck setUnhealthyThreshold(Integer unhealthyThreshold)
unhealthyThreshold
- unhealthyThreshold or null
for nonepublic HttpHealthCheck set(String fieldName, Object value)
set
in class GenericJson
public HttpHealthCheck clone()
clone
in class GenericJson