public final class TCPHealthCheck
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 |
---|
TCPHealthCheck() |
Modifier and Type | Method and Description |
---|---|
TCPHealthCheck |
clone() |
java.lang.Integer |
getPort()
The TCP port number for the health check request.
|
java.lang.String |
getPortName()
Port name as defined in InstanceGroup#NamedPort#name.
|
java.lang.String |
getPortSpecification()
Specifies how port is selected for health checking, can be one of following values:
USE_FIXED_PORT: The port number in port is used for health checking.
|
java.lang.String |
getProxyHeader()
Specifies the type of proxy header to append before sending data to the backend, either NONE or
PROXY_V1.
|
java.lang.String |
getRequest()
The application data to send once the TCP connection has been established (default value is
empty).
|
java.lang.String |
getResponse()
The bytes to match against the beginning of the response data.
|
TCPHealthCheck |
set(java.lang.String fieldName,
java.lang.Object value) |
TCPHealthCheck |
setPort(java.lang.Integer port)
The TCP port number for the health check request.
|
TCPHealthCheck |
setPortName(java.lang.String portName)
Port name as defined in InstanceGroup#NamedPort#name.
|
TCPHealthCheck |
setPortSpecification(java.lang.String portSpecification)
Specifies how port is selected for health checking, can be one of following values:
USE_FIXED_PORT: The port number in port is used for health checking.
|
TCPHealthCheck |
setProxyHeader(java.lang.String proxyHeader)
Specifies the type of proxy header to append before sending data to the backend, either NONE or
PROXY_V1.
|
TCPHealthCheck |
setRequest(java.lang.String request)
The application data to send once the TCP connection has been established (default value is
empty).
|
TCPHealthCheck |
setResponse(java.lang.String response)
The bytes to match against the beginning of the response data.
|
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 getPort()
null
for nonepublic TCPHealthCheck setPort(java.lang.Integer port)
port
- port or null
for nonepublic java.lang.String getPortName()
null
for nonepublic TCPHealthCheck setPortName(java.lang.String portName)
portName
- portName or null
for nonepublic java.lang.String getPortSpecification()
null
for nonepublic TCPHealthCheck setPortSpecification(java.lang.String portSpecification)
portSpecification
- portSpecification or null
for nonepublic java.lang.String getProxyHeader()
null
for nonepublic TCPHealthCheck setProxyHeader(java.lang.String proxyHeader)
proxyHeader
- proxyHeader or null
for nonepublic java.lang.String getRequest()
null
for nonepublic TCPHealthCheck setRequest(java.lang.String request)
request
- request or null
for nonepublic java.lang.String getResponse()
null
for nonepublic TCPHealthCheck setResponse(java.lang.String response)
response
- response or null
for nonepublic TCPHealthCheck set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TCPHealthCheck clone()
clone
in class com.google.api.client.json.GenericJson