public class DnsRecord extends AbstractModel
header, skipSign| Constructor and Description |
|---|
DnsRecord() |
DnsRecord(DnsRecord 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 |
getCreatedOn()
Get Creation time.
note: createdon is only used as an output parameter and cannot be used as an input parameter in modifydnsrecords. |
String |
getLocation()
Get DNS record resolution route, if not specified, defaults to default, indicating the default resolution route, effective in all regions.
resolution route configuration only applies when type (dns record type) is a, aaaa, or cname. for valid values, refer to: [resolution routes and corresponding code enumeration](https://intl.cloud.tencent.com/document/product/1552/112542?from_cn_redirect=1). |
String |
getModifiedOn()
Get Modification time.
note: modifiedon is for output parameter only and cannot be used as an input parameter in modifydnsrecords. |
String |
getName()
Get DNS record name.
|
Long |
getPriority()
Get MX record priority.
|
String |
getRecordId()
Get DNS record id.
|
String |
getStatus()
Get DNS record parsing status.
|
Long |
getTTL()
Get Cache time.
|
String |
getType()
Get DNS record type.
|
Long |
getWeight()
Get DNS record weight.
|
String |
getZoneId()
Get Zone id.
note: zoneid is for output parameter use only and cannot be used as an input parameter in modifydnsrecords. |
void |
setContent(String Content)
Set DNS record content.
|
void |
setCreatedOn(String CreatedOn)
Set Creation time.
note: createdon is only used as an output parameter and cannot be used as an input parameter in modifydnsrecords. |
void |
setLocation(String Location)
Set DNS record resolution route, if not specified, defaults to default, indicating the default resolution route, effective in all regions.
resolution route configuration only applies when type (dns record type) is a, aaaa, or cname. for valid values, refer to: [resolution routes and corresponding code enumeration](https://intl.cloud.tencent.com/document/product/1552/112542?from_cn_redirect=1). |
void |
setModifiedOn(String ModifiedOn)
Set Modification time.
note: modifiedon is for output parameter only and cannot be used as an input parameter in modifydnsrecords. |
void |
setName(String Name)
Set DNS record name.
|
void |
setPriority(Long Priority)
Set MX record priority.
|
void |
setRecordId(String RecordId)
Set DNS record id.
|
void |
setStatus(String Status)
Set DNS record parsing status.
|
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.
note: zoneid is for output parameter use only and cannot be used as an input parameter in modifydnsrecords. |
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DnsRecord()
public DnsRecord(DnsRecord source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId - Zone id.public String getRecordId()
public void setRecordId(String RecordId)
RecordId - DNS record id.public String getName()
public void setName(String Name)
Name - DNS record name.public String getType()
public void setType(String Type)
Type - DNS record type. valid values are:.
public String getLocation()
public void setLocation(String Location)
Location - DNS record resolution route, if not specified, defaults to default, indicating the default resolution route, effective in all regions.public String getContent()
public void setContent(String Content)
Content - DNS record content. fill in the corresponding content based on the type value.public Long getTTL()
public void setTTL(Long TTL)
TTL - Cache time. value range: 60–86400. the smaller the value, the faster the record modification will take effect globally. unit: seconds.public Long getWeight()
public void setWeight(Long Weight)
Weight - DNS record weight. value range: -1–100. a value of -1 means no weight is assigned, and 0 means no parsing. 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. value range: 0–50. the smaller the value, the higher the priority.public String getStatus()
public void setStatus(String Status)
Status - DNS record parsing status. valid values are: public String getCreatedOn()
public void setCreatedOn(String CreatedOn)
CreatedOn - Creation time.public String getModifiedOn()
public void setModifiedOn(String ModifiedOn)
ModifiedOn - Modification time.Copyright © 2025. All rights reserved.