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)
* **tcp** * **udp**
public ModifyHealthCheckConfigRequest.Builder frontendPort(Integer frontendPort)
public ModifyHealthCheckConfigRequest.Builder healthCheck(String healthCheck)
* **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. ** **Note**This parameter is returned only when the Layer 7 health check configuration is queried. * **Uri**: the check path, which must be of the STRING type. ** **Note**This 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**.
public ModifyHealthCheckConfigRequest.Builder instanceId(String instanceId)
> You can call the [DescribeInstanceIds](~~157459~~) operation to query the IDs of all instances.
public ModifyHealthCheckConfigRequest build()
Copyright © 2023. All rights reserved.