public static class TCPHealthCheck.Builder extends Object
Modifier and Type | Method and Description |
---|---|
TCPHealthCheck |
build() |
TCPHealthCheck.Builder |
clone() |
Integer |
getPort()
The TCP port number for the health check request.
|
String |
getPortName()
Port name as defined in InstanceGroup#NamedPort#name.
|
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.
|
String |
getProxyHeader()
Specifies the type of proxy header to append before sending data to the backend, either NONE
or PROXY_V1.
|
String |
getRequest()
The application data to send once the TCP connection has been established (default value is
empty).
|
String |
getResponse()
The bytes to match against the beginning of the response data.
|
TCPHealthCheck.Builder |
mergeFrom(TCPHealthCheck other) |
TCPHealthCheck.Builder |
setPort(Integer port)
The TCP port number for the health check request.
|
TCPHealthCheck.Builder |
setPortName(String portName)
Port name as defined in InstanceGroup#NamedPort#name.
|
TCPHealthCheck.Builder |
setPortSpecification(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.Builder |
setProxyHeader(String proxyHeader)
Specifies the type of proxy header to append before sending data to the backend, either NONE
or PROXY_V1.
|
TCPHealthCheck.Builder |
setRequest(String request)
The application data to send once the TCP connection has been established (default value is
empty).
|
TCPHealthCheck.Builder |
setResponse(String response)
The bytes to match against the beginning of the response data.
|
public TCPHealthCheck.Builder mergeFrom(TCPHealthCheck other)
public Integer getPort()
public TCPHealthCheck.Builder setPort(Integer port)
public String getPortName()
public TCPHealthCheck.Builder setPortName(String portName)
public String getPortSpecification()
If not specified, TCP health check follows behavior specified in port and portName fields.
public TCPHealthCheck.Builder setPortSpecification(String portSpecification)
If not specified, TCP health check follows behavior specified in port and portName fields.
public String getProxyHeader()
public TCPHealthCheck.Builder setProxyHeader(String proxyHeader)
public String getRequest()
public TCPHealthCheck.Builder setRequest(String request)
public String getResponse()
public TCPHealthCheck.Builder setResponse(String response)
public TCPHealthCheck build()
public TCPHealthCheck.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.