public static class HttpHealthCheck.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpHealthCheck |
build() |
HttpHealthCheck.Builder |
clone() |
String |
getHost()
The value of the host header in the HTTP health check request.
|
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 |
getRequestPath()
The request path of the HTTP health check request.
|
String |
getResponse()
The string to match anywhere in the first 1024 bytes of the response body.
|
HttpHealthCheck.Builder |
mergeFrom(HttpHealthCheck other) |
HttpHealthCheck.Builder |
setHost(String host)
The value of the host header in the HTTP health check request.
|
HttpHealthCheck.Builder |
setPort(Integer port)
The TCP port number for the health check request.
|
HttpHealthCheck.Builder |
setPortName(String portName)
Port name as defined in InstanceGroup#NamedPort#name.
|
HttpHealthCheck.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.
|
HttpHealthCheck.Builder |
setProxyHeader(String proxyHeader)
Specifies the type of proxy header to append before sending data to the backend, either NONE
or PROXY_V1.
|
HttpHealthCheck.Builder |
setRequestPath(String requestPath)
The request path of the HTTP health check request.
|
HttpHealthCheck.Builder |
setResponse(String response)
The string to match anywhere in the first 1024 bytes of the response body.
|
public HttpHealthCheck.Builder mergeFrom(HttpHealthCheck other)
public String getHost()
public HttpHealthCheck.Builder setHost(String host)
public Integer getPort()
public HttpHealthCheck.Builder setPort(Integer port)
public String getPortName()
public HttpHealthCheck.Builder setPortName(String portName)
public String getPortSpecification()
If not specified, HTTP health check follows behavior specified in port and portName fields.
public HttpHealthCheck.Builder setPortSpecification(String portSpecification)
If not specified, HTTP health check follows behavior specified in port and portName fields.
public String getProxyHeader()
public HttpHealthCheck.Builder setProxyHeader(String proxyHeader)
public String getRequestPath()
public HttpHealthCheck.Builder setRequestPath(String requestPath)
public String getResponse()
public HttpHealthCheck.Builder setResponse(String response)
public HttpHealthCheck build()
public HttpHealthCheck.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.