Skip to content

DomainRecordProps

Properties for defining a DomainRecord.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dns-domainrecord

Initializer

import com.aliyun.ros.cdk.dns.DomainRecordProps;
DomainRecordProps.builder()
    .domainName(java.lang.String)
    .domainName(IResolvable)
    .rr(java.lang.String)
    .rr(IResolvable)
    .type(java.lang.String)
    .type(IResolvable)
    .value(java.lang.String)
    .value(IResolvable)
//  .line(java.lang.String)
//  .line(IResolvable)
//  .priority(java.lang.Number)
//  .priority(IResolvable)
//  .ttl(java.lang.Number)
//  .ttl(IResolvable)
    .build();

Properties

Name Type Description
domainName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property domainName: Domain name.
rr java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property rr: The host record.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: Parse record type, see parsing record type format.
value java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property value: Record value.
line java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property line: Parse the line, the default is default.
priority java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property priority: The priority of the MX record.
ttl java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property ttl: The time to live (TTL) value of the Domain Name System (DNS) record.

domainNameRequired

public java.lang.Object getDomainName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property domainName: Domain name.


rrRequired

public java.lang.Object getRr();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property rr: The host record.

To resolve example.com, set the host record to "@" instead of leaving it empty.


typeRequired

public java.lang.Object getType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property type: Parse record type, see parsing record type format.


valueRequired

public java.lang.Object getValue();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property value: Record value.


lineOptional

public java.lang.Object getLine();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property line: Parse the line, the default is default.

See parsing line enumeration


priorityOptional

public java.lang.Object getPriority();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property priority: The priority of the MX record.

Valid values: [1,50]. This parameter is required if the record type is MX. A smaller value indicates a higher priority.


ttlOptional

public java.lang.Object getTtl();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property ttl: The time to live (TTL) value of the Domain Name System (DNS) record.

Default value: 600. Unit: seconds.