RecordSetInner Class

public final class RecordSetInner
extends ProxyResource

Describes a DNS record set (a collection of DNS records with the same name and type).

Constructor Summary

Constructor Description
RecordSetInner()

Creates an instance of RecordSetInner class.

Method Summary

Modifier and Type Method and Description
List<ARecord> aRecords()

Get the aRecords property: The list of A records in the record set.

List<AaaaRecord> aaaaRecords()

Get the aaaaRecords property: The list of AAAA records in the record set.

List<CaaRecord> caaRecords()

Get the caaRecords property: The list of CAA records in the record set.

CnameRecord cnameRecord()

Get the cnameRecord property: The CNAME record in the record set.

String etag()

Get the etag property: The etag of the record set.

String fqdn()

Get the fqdn property: Fully qualified domain name of the record set.

static RecordSetInner fromJson(JsonReader jsonReader)

Reads an instance of RecordSetInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Map<String,String> metadata()

Get the metadata property: The metadata attached to the record set.

List<MxRecord> mxRecords()

Get the mxRecords property: The list of MX records in the record set.

String name()

Get the name property: The name of the resource.

List<NsRecord> nsRecords()

Get the nsRecords property: The list of NS records in the record set.

String provisioningState()

Get the provisioningState property: provisioning State of the record set.

List<PtrRecord> ptrRecords()

Get the ptrRecords property: The list of PTR records in the record set.

SoaRecord soaRecord()

Get the soaRecord property: The SOA record in the record set.

List<SrvRecord> srvRecords()

Get the srvRecords property: The list of SRV records in the record set.

SubResource targetResource()

Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.

JsonWriter toJson(JsonWriter jsonWriter)
Long ttl()

Get the ttl property: The TTL (time-to-live) of the records in the record set.

List<TxtRecord> txtRecords()

Get the txtRecords property: The list of TXT records in the record set.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RecordSetInner withARecords(List<ARecord> aRecords)

Set the aRecords property: The list of A records in the record set.

RecordSetInner withAaaaRecords(List<AaaaRecord> aaaaRecords)

Set the aaaaRecords property: The list of AAAA records in the record set.

RecordSetInner withCaaRecords(List<CaaRecord> caaRecords)

Set the caaRecords property: The list of CAA records in the record set.

RecordSetInner withCnameRecord(CnameRecord cnameRecord)

Set the cnameRecord property: The CNAME record in the record set.

RecordSetInner withEtag(String etag)

Set the etag property: The etag of the record set.

RecordSetInner withMetadata(Map<String,String> metadata)

Set the metadata property: The metadata attached to the record set.

RecordSetInner withMxRecords(List<MxRecord> mxRecords)

Set the mxRecords property: The list of MX records in the record set.

RecordSetInner withNsRecords(List<NsRecord> nsRecords)

Set the nsRecords property: The list of NS records in the record set.

RecordSetInner withPtrRecords(List<PtrRecord> ptrRecords)

Set the ptrRecords property: The list of PTR records in the record set.

RecordSetInner withSoaRecord(SoaRecord soaRecord)

Set the soaRecord property: The SOA record in the record set.

RecordSetInner withSrvRecords(List<SrvRecord> srvRecords)

Set the srvRecords property: The list of SRV records in the record set.

RecordSetInner withTargetResource(SubResource targetResource)

Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.

RecordSetInner withTtl(Long ttl)

Set the ttl property: The TTL (time-to-live) of the records in the record set.

RecordSetInner withTxtRecords(List<TxtRecord> txtRecords)

Set the txtRecords property: The list of TXT records in the record set.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RecordSetInner

public RecordSetInner()

Creates an instance of RecordSetInner class.

Method Details

aRecords

public List aRecords()

Get the aRecords property: The list of A records in the record set.

Returns:

the aRecords value.

aaaaRecords

public List aaaaRecords()

Get the aaaaRecords property: The list of AAAA records in the record set.

Returns:

the aaaaRecords value.

caaRecords

public List caaRecords()

Get the caaRecords property: The list of CAA records in the record set.

Returns:

the caaRecords value.

cnameRecord

public CnameRecord cnameRecord()

Get the cnameRecord property: The CNAME record in the record set.

Returns:

the cnameRecord value.

etag

public String etag()

Get the etag property: The etag of the record set.

Returns:

the etag value.

fqdn

public String fqdn()

Get the fqdn property: Fully qualified domain name of the record set.

Returns:

the fqdn value.

fromJson

public static RecordSetInner fromJson(JsonReader jsonReader)

Reads an instance of RecordSetInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RecordSetInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RecordSetInner.id()

Returns:

the id value.

metadata

public Map metadata()

Get the metadata property: The metadata attached to the record set.

Returns:

the metadata value.

mxRecords

public List mxRecords()

Get the mxRecords property: The list of MX records in the record set.

Returns:

the mxRecords value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RecordSetInner.name()

Returns:

the name value.

nsRecords

public List nsRecords()

Get the nsRecords property: The list of NS records in the record set.

Returns:

the nsRecords value.

provisioningState

public String provisioningState()

Get the provisioningState property: provisioning State of the record set.

Returns:

the provisioningState value.

ptrRecords

public List ptrRecords()

Get the ptrRecords property: The list of PTR records in the record set.

Returns:

the ptrRecords value.

soaRecord

public SoaRecord soaRecord()

Get the soaRecord property: The SOA record in the record set.

Returns:

the soaRecord value.

srvRecords

public List srvRecords()

Get the srvRecords property: The list of SRV records in the record set.

Returns:

the srvRecords value.

targetResource

public SubResource targetResource()

Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.

Returns:

the targetResource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RecordSetInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

ttl

public Long ttl()

Get the ttl property: The TTL (time-to-live) of the records in the record set.

Returns:

the ttl value.

txtRecords

public List txtRecords()

Get the txtRecords property: The list of TXT records in the record set.

Returns:

the txtRecords value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

RecordSetInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withARecords

public RecordSetInner withARecords(List aRecords)

Set the aRecords property: The list of A records in the record set.

Parameters:

aRecords - the aRecords value to set.

Returns:

the RecordSetInner object itself.

withAaaaRecords

public RecordSetInner withAaaaRecords(List aaaaRecords)

Set the aaaaRecords property: The list of AAAA records in the record set.

Parameters:

aaaaRecords - the aaaaRecords value to set.

Returns:

the RecordSetInner object itself.

withCaaRecords

public RecordSetInner withCaaRecords(List caaRecords)

Set the caaRecords property: The list of CAA records in the record set.

Parameters:

caaRecords - the caaRecords value to set.

Returns:

the RecordSetInner object itself.

withCnameRecord

public RecordSetInner withCnameRecord(CnameRecord cnameRecord)

Set the cnameRecord property: The CNAME record in the record set.

Parameters:

cnameRecord - the cnameRecord value to set.

Returns:

the RecordSetInner object itself.

withEtag

public RecordSetInner withEtag(String etag)

Set the etag property: The etag of the record set.

Parameters:

etag - the etag value to set.

Returns:

the RecordSetInner object itself.

withMetadata

public RecordSetInner withMetadata(Map metadata)

Set the metadata property: The metadata attached to the record set.

Parameters:

metadata - the metadata value to set.

Returns:

the RecordSetInner object itself.

withMxRecords

public RecordSetInner withMxRecords(List mxRecords)

Set the mxRecords property: The list of MX records in the record set.

Parameters:

mxRecords - the mxRecords value to set.

Returns:

the RecordSetInner object itself.

withNsRecords

public RecordSetInner withNsRecords(List nsRecords)

Set the nsRecords property: The list of NS records in the record set.

Parameters:

nsRecords - the nsRecords value to set.

Returns:

the RecordSetInner object itself.

withPtrRecords

public RecordSetInner withPtrRecords(List ptrRecords)

Set the ptrRecords property: The list of PTR records in the record set.

Parameters:

ptrRecords - the ptrRecords value to set.

Returns:

the RecordSetInner object itself.

withSoaRecord

public RecordSetInner withSoaRecord(SoaRecord soaRecord)

Set the soaRecord property: The SOA record in the record set.

Parameters:

soaRecord - the soaRecord value to set.

Returns:

the RecordSetInner object itself.

withSrvRecords

public RecordSetInner withSrvRecords(List srvRecords)

Set the srvRecords property: The list of SRV records in the record set.

Parameters:

srvRecords - the srvRecords value to set.

Returns:

the RecordSetInner object itself.

withTargetResource

public RecordSetInner withTargetResource(SubResource targetResource)

Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.

Parameters:

targetResource - the targetResource value to set.

Returns:

the RecordSetInner object itself.

withTtl

public RecordSetInner withTtl(Long ttl)

Set the ttl property: The TTL (time-to-live) of the records in the record set.

Parameters:

ttl - the ttl value to set.

Returns:

the RecordSetInner object itself.

withTxtRecords

public RecordSetInner withTxtRecords(List txtRecords)

Set the txtRecords property: The list of TXT records in the record set.

Parameters:

txtRecords - the txtRecords value to set.

Returns:

the RecordSetInner object itself.

Applies to