Class RecordSetInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.dns.fluent.models.RecordSetInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class RecordSetInner
extends com.azure.core.management.ProxyResource
Describes a DNS record set (a collection of DNS records with the same name and type).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aaaaRecords property: The list of AAAA records in the record set.aRecords()Get the aRecords property: The list of A records in the record set.Get the caaRecords property: The list of CAA records in the record set.Get the cnameRecord property: The CNAME record in the record set.etag()Get the etag property: The etag of the record set.fqdn()Get the fqdn property: Fully qualified domain name of the record set.static RecordSetInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecordSetInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.metadata()Get the metadata property: The metadata attached to the record set.Get the mxRecords property: The list of MX records in the record set.name()Get the name property: The name of the resource.Get the nsRecords property: The list of NS records in the record set.Get the provisioningState property: provisioning State of the record set.Get the ptrRecords property: The list of PTR records in the record set.Get the soaRecord property: The SOA record in the record set.Get the srvRecords property: The list of SRV records in the record set.com.azure.core.management.SubResourceGet the targetResource property: A reference to an azure resource from where the dns resource value is taken.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) ttl()Get the ttl property: The TTL (time-to-live) of the records in the record set.Get the txtRecords property: The list of TXT records in the record set.type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAaaaRecords(List<AaaaRecord> aaaaRecords) Set the aaaaRecords property: The list of AAAA records in the record set.withARecords(List<ARecord> aRecords) Set the aRecords property: The list of A records in the record set.withCaaRecords(List<CaaRecord> caaRecords) Set the caaRecords property: The list of CAA records in the record set.withCnameRecord(CnameRecord cnameRecord) Set the cnameRecord property: The CNAME record in the record set.Set the etag property: The etag of the record set.withMetadata(Map<String, String> metadata) Set the metadata property: The metadata attached to the record set.withMxRecords(List<MxRecord> mxRecords) Set the mxRecords property: The list of MX records in the record set.withNsRecords(List<NsRecord> nsRecords) Set the nsRecords property: The list of NS records in the record set.withPtrRecords(List<PtrRecord> ptrRecords) Set the ptrRecords property: The list of PTR records in the record set.withSoaRecord(SoaRecord soaRecord) Set the soaRecord property: The SOA record in the record set.withSrvRecords(List<SrvRecord> srvRecords) Set the srvRecords property: The list of SRV records in the record set.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.Set the ttl property: The TTL (time-to-live) of the records in the record set.withTxtRecords(List<TxtRecord> txtRecords) Set the txtRecords property: The list of TXT records in the record set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecordSetInner
public RecordSetInner()Creates an instance of RecordSetInner class.
-
-
Method Details
-
etag
Get the etag property: The etag of the record set.- Returns:
- the etag value.
-
withEtag
Set the etag property: The etag of the record set.- Parameters:
etag- the etag value to set.- Returns:
- the RecordSetInner object itself.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
metadata
Get the metadata property: The metadata attached to the record set.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: The metadata attached to the record set.- Parameters:
metadata- the metadata value to set.- Returns:
- the RecordSetInner object itself.
-
ttl
Get the ttl property: The TTL (time-to-live) of the records in the record set.- Returns:
- the ttl value.
-
withTtl
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
Get the fqdn property: Fully qualified domain name of the record set.- Returns:
- the fqdn value.
-
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
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
Get the aRecords property: The list of A records in the record set.- Returns:
- the aRecords value.
-
withARecords
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
Get the aaaaRecords property: The list of AAAA records in the record set.- Returns:
- the aaaaRecords value.
-
withAaaaRecords
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
Get the mxRecords property: The list of MX records in the record set.- Returns:
- the mxRecords value.
-
withMxRecords
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
Get the nsRecords property: The list of NS records in the record set.- Returns:
- the nsRecords value.
-
withNsRecords
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
Get the ptrRecords property: The list of PTR records in the record set.- Returns:
- the ptrRecords value.
-
withPtrRecords
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
Get the srvRecords property: The list of SRV records in the record set.- Returns:
- the srvRecords value.
-
withSrvRecords
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
Get the txtRecords property: The list of TXT records in the record set.- Returns:
- the txtRecords value.
-
withTxtRecords
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
Get the cnameRecord property: The CNAME record in the record set.- Returns:
- the cnameRecord value.
-
withCnameRecord
Set the cnameRecord property: The CNAME record in the record set.- Parameters:
cnameRecord- the cnameRecord value to set.- Returns:
- the RecordSetInner object itself.
-
soaRecord
Get the soaRecord property: The SOA record in the record set.- Returns:
- the soaRecord value.
-
withSoaRecord
Set the soaRecord property: The SOA record in the record set.- Parameters:
soaRecord- the soaRecord value to set.- Returns:
- the RecordSetInner object itself.
-
caaRecords
Get the caaRecords property: The list of CAA records in the record set.- Returns:
- the caaRecords value.
-
withCaaRecords
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RecordSetInner.
-