Skip to content

RecordProps

Properties for defining a Record.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-record

Initializer

import com.aliyun.ros.cdk.esa.RecordProps;
RecordProps.builder()
    .data(IResolvable)
    .data(DataProperty)
    .recordName(java.lang.String)
    .recordName(IResolvable)
    .recordType(java.lang.String)
    .recordType(IResolvable)
    .siteId(java.lang.Number)
    .siteId(IResolvable)
//  .authConf(IResolvable)
//  .authConf(AuthConfProperty)
//  .bizName(java.lang.String)
//  .bizName(IResolvable)
//  .comment(java.lang.String)
//  .comment(IResolvable)
//  .hostPolicy(java.lang.String)
//  .hostPolicy(IResolvable)
//  .proxied(java.lang.Boolean)
//  .proxied(IResolvable)
//  .sourceType(java.lang.String)
//  .sourceType(IResolvable)
//  .ttl(java.lang.Number)
//  .ttl(IResolvable)
    .build();

Properties

Name Type Description
data com.aliyun.ros.cdk.core.IResolvable OR DataProperty Property data: The DNS record information.
recordName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property recordName: The record name.
recordType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT.
siteId java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property siteId: The website ID.
authConf com.aliyun.ros.cdk.core.IResolvable OR AuthConfProperty Property authConf: The origin authentication information of the CNAME record.
bizName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property bizName: The business scenario of the record for acceleration.
comment java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property comment: The comment of the record.
hostPolicy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property hostPolicy: The origin host policy.
proxied java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property proxied: Specifies whether to proxy the record.
sourceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sourceType: The origin type for the CNAME record.
ttl java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property ttl: The TTL of the record.

dataRequired

public java.lang.Object getData();

Property data: The DNS record information.

The format of this field varies based on the record type. For more information, see [References] https://www.alibabacloud.com/help/doc-detail/2708761.html?spm=openapi-amp.newDocPublishment.0.0.6a0f281feoeVWr.


recordNameRequired

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

Property recordName: The record name.

This parameter specifies a filter condition for the query.


recordTypeRequired

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

Property recordType: The type of the DNS record, such as A\/AAAA, CNAME, and TXT.


siteIdRequired

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

Property siteId: The website ID.


authConfOptional

public java.lang.Object getAuthConf();

Property authConf: The origin authentication information of the CNAME record.


bizNameOptional

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

Property bizName: The business scenario of the record for acceleration.

Leave the parameter empty if your record is not proxied. Valid values: image_video: video and image. api: API. web: web page.


commentOptional

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

Property comment: The comment of the record.

The maximum length is 100 characters.


hostPolicyOptional

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

Property hostPolicy: The origin host policy.

This policy takes effect when the record type is CNAME. You can set the policy in two modes: follow_hostname: Follow the host record. follow_origin_domain: match the origin's domain name.


proxiedOptional

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

Property proxied: Specifies whether to proxy the record.

Only CNAME and A/AAAA records can be proxied. Valid values: true false.


sourceTypeOptional

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

Property sourceType: The origin type for the CNAME record.

This parameter is required when you add a CNAME record. Valid values: OSS: OSS bucket. S3: S3 bucket. LB: load balancer. OP: origin pool. Domain: domain name. If you do not pass this parameter or if you leave its value empty, Domain is used by default.


ttlOptional

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

Property ttl: The TTL of the record.

Unit: seconds. If the value is 1, the TTL of the record is determined by the system.