public class ModifyHealthCheckConfigRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
forwardProtocol
The forwarding protocol.
|
Integer |
frontendPort
The forwarding port.
|
String |
healthCheck
The details of the health check configuration.
|
String |
instanceId
The ID of the instance.
|
| 构造器和说明 |
|---|
ModifyHealthCheckConfigRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ModifyHealthCheckConfigRequest |
build(Map<String,?> map) |
String |
getForwardProtocol() |
Integer |
getFrontendPort() |
String |
getHealthCheck() |
String |
getInstanceId() |
ModifyHealthCheckConfigRequest |
setForwardProtocol(String forwardProtocol) |
ModifyHealthCheckConfigRequest |
setFrontendPort(Integer frontendPort) |
ModifyHealthCheckConfigRequest |
setHealthCheck(String healthCheck) |
ModifyHealthCheckConfigRequest |
setInstanceId(String instanceId) |
@NameInMap(value="ForwardProtocol") public String forwardProtocol
The forwarding protocol. Valid values:
This parameter is required.
example:tcp
@NameInMap(value="FrontendPort") public Integer frontendPort
The forwarding port.
This parameter is required.
example:8080
@NameInMap(value="HealthCheck") public 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}
@NameInMap(value="InstanceId") public 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 static ModifyHealthCheckConfigRequest build(Map<String,?> map) throws Exception
Exceptionpublic ModifyHealthCheckConfigRequest setForwardProtocol(String forwardProtocol)
public String getForwardProtocol()
public ModifyHealthCheckConfigRequest setFrontendPort(Integer frontendPort)
public Integer getFrontendPort()
public ModifyHealthCheckConfigRequest setHealthCheck(String healthCheck)
public String getHealthCheck()
public ModifyHealthCheckConfigRequest setInstanceId(String instanceId)
public String getInstanceId()
Copyright © 2026. All rights reserved.