Class ZoneProperties
- java.lang.Object
-
- com.azure.resourcemanager.dns.fluent.models.ZoneProperties
-
public final class ZoneProperties extends Object
Represents the properties of the zone.
-
-
Constructor Summary
Constructors Constructor Description ZoneProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongmaxNumberOfRecordSets()Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone.LongmaxNumberOfRecordsPerRecordSet()Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created in this DNS zone.List<String>nameServers()Get the nameServers property: The name servers for this DNS zone.LongnumberOfRecordSets()Get the numberOfRecordSets property: The current number of record sets in this DNS zone.List<com.azure.core.management.SubResource>registrationVirtualNetworks()Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone.List<com.azure.core.management.SubResource>resolutionVirtualNetworks()Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone.voidvalidate()Validates the instance.ZonePropertieswithRegistrationVirtualNetworks(List<com.azure.core.management.SubResource> registrationVirtualNetworks)Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone.ZonePropertieswithResolutionVirtualNetworks(List<com.azure.core.management.SubResource> resolutionVirtualNetworks)Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone.ZonePropertieswithZoneType(ZoneType zoneType)Set the zoneType property: The type of this DNS zone (Public or Private).ZoneTypezoneType()Get the zoneType property: The type of this DNS zone (Public or Private).
-
-
-
Method Detail
-
maxNumberOfRecordSets
public Long maxNumberOfRecordSets()
Get the maxNumberOfRecordSets property: The maximum number of record sets that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the maxNumberOfRecordSets value.
-
maxNumberOfRecordsPerRecordSet
public Long maxNumberOfRecordsPerRecordSet()
Get the maxNumberOfRecordsPerRecordSet property: The maximum number of records per record set that can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the maxNumberOfRecordsPerRecordSet value.
-
numberOfRecordSets
public Long numberOfRecordSets()
Get the numberOfRecordSets property: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the numberOfRecordSets value.
-
nameServers
public List<String> nameServers()
Get the nameServers property: The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the nameServers value.
-
zoneType
public ZoneType zoneType()
Get the zoneType property: The type of this DNS zone (Public or Private).- Returns:
- the zoneType value.
-
withZoneType
public ZoneProperties withZoneType(ZoneType zoneType)
Set the zoneType property: The type of this DNS zone (Public or Private).- Parameters:
zoneType- the zoneType value to set.- Returns:
- the ZoneProperties object itself.
-
registrationVirtualNetworks
public List<com.azure.core.management.SubResource> registrationVirtualNetworks()
Get the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.- Returns:
- the registrationVirtualNetworks value.
-
withRegistrationVirtualNetworks
public ZoneProperties withRegistrationVirtualNetworks(List<com.azure.core.management.SubResource> registrationVirtualNetworks)
Set the registrationVirtualNetworks property: A list of references to virtual networks that register hostnames in this DNS zone. This is a only when ZoneType is Private.- Parameters:
registrationVirtualNetworks- the registrationVirtualNetworks value to set.- Returns:
- the ZoneProperties object itself.
-
resolutionVirtualNetworks
public List<com.azure.core.management.SubResource> resolutionVirtualNetworks()
Get the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.- Returns:
- the resolutionVirtualNetworks value.
-
withResolutionVirtualNetworks
public ZoneProperties withResolutionVirtualNetworks(List<com.azure.core.management.SubResource> resolutionVirtualNetworks)
Set the resolutionVirtualNetworks property: A list of references to virtual networks that resolve records in this DNS zone. This is a only when ZoneType is Private.- Parameters:
resolutionVirtualNetworks- the resolutionVirtualNetworks value to set.- Returns:
- the ZoneProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-