public static final class UpdateGatewayServiceCheckRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateGatewayServiceCheckRequest.Builder |
acceptLanguage(String acceptLanguage)
The language in which you want to display the results.
|
UpdateGatewayServiceCheckRequest |
build() |
UpdateGatewayServiceCheckRequest.Builder |
check(Boolean check)
Specifies whether to enable the health check.
|
UpdateGatewayServiceCheckRequest.Builder |
expectedStatuses(List<Integer> expectedStatuses)
The expected status code, which is required if the health check protocol is HTTP.
|
UpdateGatewayServiceCheckRequest.Builder |
gatewayUniqueId(String gatewayUniqueId)
The unique ID of the gateway.
|
UpdateGatewayServiceCheckRequest.Builder |
healthyThreshold(Integer healthyThreshold)
The healthy threshold of the health check.
|
UpdateGatewayServiceCheckRequest.Builder |
httpHost(String httpHost)
The health check domain name, which is optional if the health check protocol is HTTP.
|
UpdateGatewayServiceCheckRequest.Builder |
httpPath(String httpPath)
The health check path, which is required if the health check protocol is HTTP.
|
UpdateGatewayServiceCheckRequest.Builder |
interval(Integer interval)
The interval at which the health check is performed.
|
UpdateGatewayServiceCheckRequest.Builder |
protocol(String protocol)
The health check protocol.
|
UpdateGatewayServiceCheckRequest.Builder |
serviceId(String serviceId)
The ID of the service.
|
UpdateGatewayServiceCheckRequest.Builder |
timeout(Integer timeout)
The timeout period of responses to the health check.
|
UpdateGatewayServiceCheckRequest.Builder |
unhealthyThreshold(Integer unhealthyThreshold)
The unhealthy threshold of the health check.
|
public UpdateGatewayServiceCheckRequest.Builder acceptLanguage(String acceptLanguage)
The language in which you want to display the results. Valid values: zh and en. zh indicates Chinese, which is the default value. en indicates English.
example:zh
public UpdateGatewayServiceCheckRequest.Builder check(Boolean check)
Specifies whether to enable the health check.
example:true
public UpdateGatewayServiceCheckRequest.Builder expectedStatuses(List<Integer> expectedStatuses)
The expected status code, which is required if the health check protocol is HTTP.
public UpdateGatewayServiceCheckRequest.Builder gatewayUniqueId(String gatewayUniqueId)
The unique ID of the gateway.
example:gw-8d410698bd7f4628ab76b*****72dd1d
public UpdateGatewayServiceCheckRequest.Builder healthyThreshold(Integer healthyThreshold)
The healthy threshold of the health check.
example:2
public UpdateGatewayServiceCheckRequest.Builder httpHost(String httpHost)
The health check domain name, which is optional if the health check protocol is HTTP.
example:example.com
public UpdateGatewayServiceCheckRequest.Builder httpPath(String httpPath)
The health check path, which is required if the health check protocol is HTTP.
example:/healthz
public UpdateGatewayServiceCheckRequest.Builder interval(Integer interval)
The interval at which the health check is performed.
example:2
public UpdateGatewayServiceCheckRequest.Builder protocol(String protocol)
The health check protocol. Valid values:
HTTP
public UpdateGatewayServiceCheckRequest.Builder serviceId(String serviceId)
The ID of the service.
example:12
public UpdateGatewayServiceCheckRequest.Builder timeout(Integer timeout)
The timeout period of responses to the health check. Unit: seconds.
example:5
public UpdateGatewayServiceCheckRequest.Builder unhealthyThreshold(Integer unhealthyThreshold)
The unhealthy threshold of the health check.
example:2
public UpdateGatewayServiceCheckRequest build()
Copyright © 2026. All rights reserved.