Class VirtualNetworkLinkProperties
java.lang.Object
com.azure.resourcemanager.privatedns.fluent.models.VirtualNetworkLinkProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualNetworkLinkProperties>
public final class VirtualNetworkLinkProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualNetworkLinkProperties>
Represents the properties of the Private DNS zone.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkLinkProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNetworkLinkPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkLinkProperties from the JsonReader.Get the provisioningState property: The provisioning state of the resource.Get the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.com.azure.core.management.SubResourceGet the virtualNetwork property: The reference of the virtual network.Get the virtualNetworkLinkState property: The status of the virtual network link to the Private DNS zone.withRegistrationEnabled(Boolean registrationEnabled) Set the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork) Set the virtualNetwork property: The reference of the virtual network.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
-
VirtualNetworkLinkProperties
public VirtualNetworkLinkProperties()Creates an instance of VirtualNetworkLinkProperties class.
-
-
Method Details
-
virtualNetwork
public com.azure.core.management.SubResource virtualNetwork()Get the virtualNetwork property: The reference of the virtual network.- Returns:
- the virtualNetwork value.
-
withVirtualNetwork
public VirtualNetworkLinkProperties withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork) Set the virtualNetwork property: The reference of the virtual network.- Parameters:
virtualNetwork- the virtualNetwork value to set.- Returns:
- the VirtualNetworkLinkProperties object itself.
-
registrationEnabled
Get the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.- Returns:
- the registrationEnabled value.
-
withRegistrationEnabled
Set the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.- Parameters:
registrationEnabled- the registrationEnabled value to set.- Returns:
- the VirtualNetworkLinkProperties object itself.
-
virtualNetworkLinkState
Get the virtualNetworkLinkState property: The status of the virtual network link to the Private DNS zone. Possible values are 'InProgress' and 'Done'. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the virtualNetworkLinkState value.
-
provisioningState
Get the provisioningState property: The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualNetworkLinkProperties>- Throws:
IOException
-
fromJson
public static VirtualNetworkLinkProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualNetworkLinkProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualNetworkLinkProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the VirtualNetworkLinkProperties.
-