public static final class AddDnsCacheDomainRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddDnsCacheDomainRequest |
build() |
AddDnsCacheDomainRequest.Builder |
cacheTtlMax(Integer cacheTtlMax)
The maximum TTL period of the cached data retrieved from the origin DNS server.
|
AddDnsCacheDomainRequest.Builder |
cacheTtlMin(Integer cacheTtlMin)
The minimum time-to-live (TTL) period of the cached data retrieved from the origin Domain Name System (DNS) server.
|
AddDnsCacheDomainRequest.Builder |
domainName(String domainName)
The domain name.
|
AddDnsCacheDomainRequest.Builder |
instanceId(String instanceId)
The instance ID of the cache-accelerated domain name.
|
AddDnsCacheDomainRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
AddDnsCacheDomainRequest.Builder |
remark(String remark)
The remarks.
|
AddDnsCacheDomainRequest.Builder |
sourceDnsServer(List<AddDnsCacheDomainRequest.SourceDnsServer> sourceDnsServer)
The origin DNS servers.
|
AddDnsCacheDomainRequest.Builder |
sourceEdns(String sourceEdns)
Specifies whether the origin DNS server supports Extension Mechanisms for DNS (EDNS).
|
AddDnsCacheDomainRequest.Builder |
sourceProtocol(String sourceProtocol)
The origin protocol policy.
|
public AddDnsCacheDomainRequest.Builder cacheTtlMax(Integer cacheTtlMax)
The maximum TTL period of the cached data retrieved from the origin DNS server. Unit: seconds. Valid values: 30 to 86400.
This parameter is required.
example:86400
public AddDnsCacheDomainRequest.Builder cacheTtlMin(Integer cacheTtlMin)
The minimum time-to-live (TTL) period of the cached data retrieved from the origin Domain Name System (DNS) server. Unit: seconds. Valid values: 30 to 86400.
This parameter is required.
example:30
public AddDnsCacheDomainRequest.Builder domainName(String domainName)
The domain name. You can call the DescribeDomains operation to obtain the domain name.
This parameter is required.
example:dns.example.com
public AddDnsCacheDomainRequest.Builder instanceId(String instanceId)
The instance ID of the cache-accelerated domain name. You can call the ListCloudGtmInstances operation to obtain the instance ID.
This parameter is required.
example:dns-cn-j6666
public AddDnsCacheDomainRequest.Builder lang(String lang)
The language of the content within the request and response. Valid values:
en
public AddDnsCacheDomainRequest.Builder remark(String remark)
The remarks.
example:test
public AddDnsCacheDomainRequest.Builder sourceDnsServer(List<AddDnsCacheDomainRequest.SourceDnsServer> sourceDnsServer)
The origin DNS servers. A maximum of 10 origin DNS servers are supported.
This parameter is required.
public AddDnsCacheDomainRequest.Builder sourceEdns(String sourceEdns)
Specifies whether the origin DNS server supports Extension Mechanisms for DNS (EDNS). Valid values: NOT_SUPPORT and SUPPORT.
This parameter is required.
example:SUPPORT
public AddDnsCacheDomainRequest.Builder sourceProtocol(String sourceProtocol)
The origin protocol policy. Valid values: TCP and UDP. Default value: UDP.
This parameter is required.
example:UDP
public AddDnsCacheDomainRequest build()
Copyright © 2026. All rights reserved.