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