Class RecordSetInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.dns.fluent.models.RecordSetInner
-
public final class RecordSetInner extends com.azure.core.management.ProxyResourceDescribes a DNS record set (a collection of DNS records with the same name and type).
-
-
Constructor Summary
Constructors Constructor Description RecordSetInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AaaaRecord>aaaaRecords()Get the aaaaRecords property: The list of AAAA records in the record set.List<ARecord>aRecords()Get the aRecords property: The list of A records in the record set.List<CaaRecord>caaRecords()Get the caaRecords property: The list of CAA records in the record set.CnameRecordcnameRecord()Get the cnameRecord property: The CNAME record in the record set.Stringetag()Get the etag property: The etag of the record set.Stringfqdn()Get the fqdn property: Fully qualified domain name of the record set.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.List<NsRecord>nsRecords()Get the nsRecords property: The list of NS records in the record set.StringprovisioningState()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.SoaRecordsoaRecord()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.com.azure.core.management.SubResourcetargetResource()Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.Longttl()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.voidvalidate()Validates the instance.RecordSetInnerwithAaaaRecords(List<AaaaRecord> aaaaRecords)Set the aaaaRecords property: The list of AAAA records in the record set.RecordSetInnerwithARecords(List<ARecord> aRecords)Set the aRecords property: The list of A records in the record set.RecordSetInnerwithCaaRecords(List<CaaRecord> caaRecords)Set the caaRecords property: The list of CAA records in the record set.RecordSetInnerwithCnameRecord(CnameRecord cnameRecord)Set the cnameRecord property: The CNAME record in the record set.RecordSetInnerwithEtag(String etag)Set the etag property: The etag of the record set.RecordSetInnerwithMetadata(Map<String,String> metadata)Set the metadata property: The metadata attached to the record set.RecordSetInnerwithMxRecords(List<MxRecord> mxRecords)Set the mxRecords property: The list of MX records in the record set.RecordSetInnerwithNsRecords(List<NsRecord> nsRecords)Set the nsRecords property: The list of NS records in the record set.RecordSetInnerwithPtrRecords(List<PtrRecord> ptrRecords)Set the ptrRecords property: The list of PTR records in the record set.RecordSetInnerwithSoaRecord(SoaRecord soaRecord)Set the soaRecord property: The SOA record in the record set.RecordSetInnerwithSrvRecords(List<SrvRecord> srvRecords)Set the srvRecords property: The list of SRV records in the record set.RecordSetInnerwithTargetResource(com.azure.core.management.SubResource targetResource)Set the targetResource property: A reference to an azure resource from where the dns resource value is taken.RecordSetInnerwithTtl(Long ttl)Set the ttl property: The TTL (time-to-live) of the records in the record set.RecordSetInnerwithTxtRecords(List<TxtRecord> txtRecords)Set the txtRecords property: The list of TXT records in the record set.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: The etag of the record set.- Returns:
- the etag value.
-
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.
-
metadata
public Map<String,String> metadata()
Get the metadata property: The metadata attached to the record set.- Returns:
- the metadata value.
-
withMetadata
public RecordSetInner withMetadata(Map<String,String> metadata)
Set the metadata property: The metadata attached to the record set.- Parameters:
metadata- the metadata value to set.- Returns:
- the RecordSetInner object itself.
-
ttl
public Long ttl()
Get the ttl property: The TTL (time-to-live) of the records in the record set.- Returns:
- the ttl value.
-
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.
-
fqdn
public String fqdn()
Get the fqdn property: Fully qualified domain name of the record set.- Returns:
- the fqdn value.
-
provisioningState
public String provisioningState()
Get the provisioningState property: provisioning State of the record set.- Returns:
- the provisioningState value.
-
targetResource
public com.azure.core.management.SubResource targetResource()
Get the targetResource property: A reference to an azure resource from where the dns resource value is taken.- Returns:
- the targetResource value.
-
withTargetResource
public RecordSetInner withTargetResource(com.azure.core.management.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.
-
aRecords
public List<ARecord> aRecords()
Get the aRecords property: The list of A records in the record set.- Returns:
- the aRecords value.
-
withARecords
public RecordSetInner withARecords(List<ARecord> 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.
-
aaaaRecords
public List<AaaaRecord> aaaaRecords()
Get the aaaaRecords property: The list of AAAA records in the record set.- Returns:
- the aaaaRecords value.
-
withAaaaRecords
public RecordSetInner withAaaaRecords(List<AaaaRecord> 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.
-
mxRecords
public List<MxRecord> mxRecords()
Get the mxRecords property: The list of MX records in the record set.- Returns:
- the mxRecords value.
-
withMxRecords
public RecordSetInner withMxRecords(List<MxRecord> 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.
-
nsRecords
public List<NsRecord> nsRecords()
Get the nsRecords property: The list of NS records in the record set.- Returns:
- the nsRecords value.
-
withNsRecords
public RecordSetInner withNsRecords(List<NsRecord> 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.
-
ptrRecords
public List<PtrRecord> ptrRecords()
Get the ptrRecords property: The list of PTR records in the record set.- Returns:
- the ptrRecords value.
-
withPtrRecords
public RecordSetInner withPtrRecords(List<PtrRecord> 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.
-
srvRecords
public List<SrvRecord> srvRecords()
Get the srvRecords property: The list of SRV records in the record set.- Returns:
- the srvRecords value.
-
withSrvRecords
public RecordSetInner withSrvRecords(List<SrvRecord> 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.
-
txtRecords
public List<TxtRecord> txtRecords()
Get the txtRecords property: The list of TXT records in the record set.- Returns:
- the txtRecords value.
-
withTxtRecords
public RecordSetInner withTxtRecords(List<TxtRecord> 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.
-
cnameRecord
public CnameRecord cnameRecord()
Get the cnameRecord property: The CNAME record in the record set.- Returns:
- the cnameRecord value.
-
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.
-
soaRecord
public SoaRecord soaRecord()
Get the soaRecord property: The SOA record in the record set.- Returns:
- the soaRecord value.
-
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.
-
caaRecords
public List<CaaRecord> caaRecords()
Get the caaRecords property: The list of CAA records in the record set.- Returns:
- the caaRecords value.
-
withCaaRecords
public RecordSetInner withCaaRecords(List<CaaRecord> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-