public class CreateDnsRecordRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateDnsRecordRequest() |
CreateDnsRecordRequest(CreateDnsRecordRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Get DNS record content.
|
String |
getLocation()
Get DNS record resolution route.
|
String |
getName()
Get DNS record name.
|
Long |
getPriority()
Get MX record priority, which takes effect only when type (dns record type) is mx.
|
Long |
getTTL()
Get Cache time.
|
String |
getType()
Get DNS record type.
|
Long |
getWeight()
Get DNS record weight.
|
String |
getZoneId()
Get Zone id.
|
void |
setContent(String Content)
Set DNS record content.
|
void |
setLocation(String Location)
Set DNS record resolution route.
|
void |
setName(String Name)
Set DNS record name.
|
void |
setPriority(Long Priority)
Set MX record priority, which takes effect only when type (dns record type) is mx.
|
void |
setTTL(Long TTL)
Set Cache time.
|
void |
setType(String Type)
Set DNS record type.
|
void |
setWeight(Long Weight)
Set DNS record weight.
|
void |
setZoneId(String ZoneId)
Set Zone id.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateDnsRecordRequest()
public CreateDnsRecordRequest(CreateDnsRecordRequest source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId
- Zone id.public String getName()
public void setName(String Name)
Name
- DNS record name. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.public String getType()
public void setType(String Type)
Type
- DNS record type. valid values are: public String getContent()
public void setContent(String Content)
Content
- DNS record content. fill in the corresponding content according to the type value. if the domain name is in chinese, korean, or japanese, it needs to be converted to punycode before input.public String getLocation()
public void setLocation(String Location)
Location
- DNS record resolution route. if not specified, the default is default, which means the default resolution route and is effective in all regions.
- resolution route configuration is only applicable when type (dns record type) is a, aaaa, or cname.
- resolution route configuration is only applicable to standard version and enterprise edition packages. for valid values, please refer to: [resolution routes and corresponding code enumeration](https://intl.cloud.tencent.com/document/product/1552/112542?from_cn_redirect=1).public Long getTTL()
public void setTTL(Long TTL)
TTL
- Cache time. users can specify a value range of 60-86400. the smaller the value, the faster the modification records will take effect in all regions. default value: 300. unit: seconds.public Long getWeight()
public void setWeight(Long Weight)
Weight
- DNS record weight. users can specify a value range of -1 to 100. a value of 0 means no resolution. if not specified, the default is -1, which means no weight is set. weight configuration is only applicable when type (dns record type) is a, aaaa, or cname.public Long getPriority()
public void setPriority(Long Priority)
Priority
- MX record priority, which takes effect only when type (dns record type) is mx. the smaller the value, the higher the priority. users can specify a value range of 0–50. the default value is 0 if not specified.Copyright © 2025. All rights reserved.