public static final class ModifyHealthCheckConfigRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyHealthCheckConfigRequest |
build() |
ModifyHealthCheckConfigRequest.Builder |
forwardProtocol(String forwardProtocol)
The forwarding protocol.
|
ModifyHealthCheckConfigRequest.Builder |
frontendPort(Integer frontendPort)
The forwarding port.
|
ModifyHealthCheckConfigRequest.Builder |
healthCheck(String healthCheck)
The details of the health check configuration.
|
ModifyHealthCheckConfigRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
ModifyHealthCheckConfigRequest.Builder |
regionId(String regionId)
RegionId.
|
public ModifyHealthCheckConfigRequest.Builder regionId(String regionId)
public ModifyHealthCheckConfigRequest.Builder forwardProtocol(String forwardProtocol)
The forwarding protocol. Valid values:
This parameter is required.
example:tcp
public ModifyHealthCheckConfigRequest.Builder frontendPort(Integer frontendPort)
The forwarding port.
This parameter is required.
example:8080
public ModifyHealthCheckConfigRequest.Builder healthCheck(String healthCheck)
The details of the health check configuration. This parameter is a JSON string. The string contains the following fields:
Type: the protocol type. This field is required and must be of the STRING type. Valid values: tcp (Layer 4) and http (Layer 7).
Domain: the domain name, which must be of the STRING type.
**
NoteThis parameter is returned only when the Layer 7 health check configuration is queried.
Uri: the check path, which must be of the STRING type.
**
NoteThis parameter is returned only when the Layer 7 health check configuration is queried.
Timeout: the response timeout period, which must be of the INTEGER type. Valid values: 1 to 30. Unit: seconds.
Port: the port on which you want to perform the health check, which must be of the INTEGER type.
Interval: the health check interval, which must be of the INTEGER type. Valid values: 1 to 30. Unit: seconds.
Up: the number of consecutive successful health checks that must occur before declaring a port healthy, which must be of the INTEGER type. Valid values: 1 to 10.
Down: the number of consecutive failed health checks that must occur before declaring a port unhealthy, which must be of the INTEGER type. Valid values: 1 to 10.
This parameter is required.
example:{"Type":"tcp","Timeout":10,"Port":8080,"Interval":10,"Up":10,"Down":40}
public ModifyHealthCheckConfigRequest.Builder instanceId(String instanceId)
The ID of the instance.
You can call the DescribeInstanceIds operation to query the IDs of all instances.
This parameter is required.
example:ddoscoo-cn-mp91j1ao****
public ModifyHealthCheckConfigRequest build()
Copyright © 2026. All rights reserved.