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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TCPHealthCheck() |
Modifier and Type | Method and Description |
---|---|
TCPHealthCheck |
clone() |
Integer |
getPort()
The TCP port number to which the health check prober sends packets.
|
String |
getPortName()
Not supported.
|
String |
getPortSpecification()
Specifies how a port is selected for health checking.
|
String |
getProxyHeader()
Specifies the type of proxy header to append before sending data to the backend, either NONE or
PROXY_V1.
|
String |
getRequest()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length,
after establishing the TCP connection.
|
String |
getResponse()
Creates a content-based TCP health check.
|
TCPHealthCheck |
set(String fieldName,
Object value) |
TCPHealthCheck |
setPort(Integer port)
The TCP port number to which the health check prober sends packets.
|
TCPHealthCheck |
setPortName(String portName)
Not supported.
|
TCPHealthCheck |
setPortSpecification(String portSpecification)
Specifies how a port is selected for health checking.
|
TCPHealthCheck |
setProxyHeader(String proxyHeader)
Specifies the type of proxy header to append before sending data to the backend, either NONE or
PROXY_V1.
|
TCPHealthCheck |
setRequest(String request)
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length,
after establishing the TCP connection.
|
TCPHealthCheck |
setResponse(String response)
Creates a content-based TCP health check.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Integer getPort()
null
for nonepublic TCPHealthCheck setPort(Integer port)
port
- port or null
for nonepublic String getPortName()
null
for nonepublic TCPHealthCheck setPortName(String portName)
portName
- portName or null
for nonepublic String getPortSpecification()
null
for nonepublic TCPHealthCheck setPortSpecification(String portSpecification)
portSpecification
- portSpecification or null
for nonepublic String getProxyHeader()
null
for nonepublic TCPHealthCheck setProxyHeader(String proxyHeader)
proxyHeader
- proxyHeader or null
for nonepublic String getRequest()
null
for nonepublic TCPHealthCheck setRequest(String request)
request
- request or null
for nonepublic String getResponse()
null
for nonepublic TCPHealthCheck setResponse(String response)
response
- response or null
for nonepublic TCPHealthCheck set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public TCPHealthCheck clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.