public static final class AddDnsGtmAddressPoolRequest.Builder extends Object
public AddDnsGtmAddressPoolRequest.Builder addr(List<AddDnsGtmAddressPoolRequest.Addr> addr)
The address pools.
This parameter is required.
public AddDnsGtmAddressPoolRequest.Builder evaluationCount(Integer evaluationCount)
The number of consecutive failures.
example:1
public AddDnsGtmAddressPoolRequest.Builder instanceId(String instanceId)
The instance ID.
This parameter is required.
example:instance1
public AddDnsGtmAddressPoolRequest.Builder interval(Integer interval)
The health check interval. Unit: seconds.
example:1
public AddDnsGtmAddressPoolRequest.Builder ispCityNode(List<AddDnsGtmAddressPoolRequest.IspCityNode> ispCityNode)
The nodes for monitoring.
public AddDnsGtmAddressPoolRequest.Builder lang(String lang)
The language of the values of specific response parameters. Default value: en. Valid values: en, zh, and ja.
example:en
public AddDnsGtmAddressPoolRequest.Builder lbaStrategy(String lbaStrategy)
The load balancing policy of the address pool. Valid values:
This parameter is required.
example:all_rr
public AddDnsGtmAddressPoolRequest.Builder monitorExtendInfo(String monitorExtendInfo)
The extended information. The required parameters vary based on the health check protocol.
HTTP or HTTPS:
port: the port that you want to check
host: the host settings
path: the URL
code: the return code. The health check result is deemed abnormal if the returned value is greater than the specified value. Valid values: 400 and 500.
failureRate: the failure rate
sni: specifies whether to enable Server Name Indication (SNI). This parameter is available only when ProtocolType is set to HTTPS. Valid values:
nodeType: the type of the node for monitoring when Type is set to DOMAIN. Valid values:
ping:
failureRate: the failure rate
packetNum: the number of ping packets
packetLossRate: the loss rate of ping packets
nodeType: the type of the node for monitoring when Type is set to DOMAIN. Valid values:
TCP:
port: the port that you want to check
failureRate: the failure rate
nodeType: the type of the node for monitoring when Type is set to DOMAIN. Valid values:
{"code":200,"path":"\index.htm","host":"aliyun.com"}
public AddDnsGtmAddressPoolRequest.Builder monitorStatus(String monitorStatus)
Specifies whether to enable the health check feature. If you set this parameter to OPEN, the system verifies the health check configurations. If you set this parameter to CLOSE, the system discards the health check configurations. Default value: CLOSE. Valid values:
open
public AddDnsGtmAddressPoolRequest.Builder name(String name)
The name of the address pool.
This parameter is required.
example:test
public AddDnsGtmAddressPoolRequest.Builder protocolType(String protocolType)
The health check protocol. Valid values:
http
public AddDnsGtmAddressPoolRequest.Builder timeout(Integer timeout)
The timeout period. Unit: milliseconds.
example:1
public AddDnsGtmAddressPoolRequest.Builder type(String type)
The type of the address pool. Valid values:
This parameter is required.
example:ipv4
public AddDnsGtmAddressPoolRequest build()
Copyright © 2026. All rights reserved.