Class VirtualNetworkLinkInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.privatedns.fluent.models.VirtualNetworkLinkInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class VirtualNetworkLinkInner
extends com.azure.core.management.Resource
Describes a link to virtual network for a Private DNS zone.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualNetworkLinkInner class. -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: The ETag of the virtual network link.static VirtualNetworkLinkInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkLinkInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.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?.Get the resolutionPolicy property: The resolution policy on the virtual network link.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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.Set the etag property: The ETag of the virtual network link.withLocation(String location) withRegistrationEnabled(Boolean registrationEnabled) Set the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.withResolutionPolicy(ResolutionPolicy resolutionPolicy) Set the resolutionPolicy property: The resolution policy on the virtual network link.withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork) Set the virtualNetwork property: The reference of the virtual network.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods 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
-
VirtualNetworkLinkInner
public VirtualNetworkLinkInner()Creates an instance of VirtualNetworkLinkInner class.
-
-
Method Details
-
etag
Get the etag property: The ETag of the virtual network link.- Returns:
- the etag value.
-
withEtag
Set the etag property: The ETag of the virtual network link.- Parameters:
etag- the etag value to set.- Returns:
- the VirtualNetworkLinkInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
virtualNetwork
public com.azure.core.management.SubResource virtualNetwork()Get the virtualNetwork property: The reference of the virtual network.- Returns:
- the virtualNetwork value.
-
withVirtualNetwork
public VirtualNetworkLinkInner 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 VirtualNetworkLinkInner 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 VirtualNetworkLinkInner object itself.
-
resolutionPolicy
Get the resolutionPolicy property: The resolution policy on the virtual network link. Only applicable for virtual network links to privatelink zones, and for A,AAAA,CNAME queries. When set to 'NxDomainRedirect', Azure DNS resolver falls back to public resolution if private dns query resolution results in non-existent domain response.- Returns:
- the resolutionPolicy value.
-
withResolutionPolicy
Set the resolutionPolicy property: The resolution policy on the virtual network link. Only applicable for virtual network links to privatelink zones, and for A,AAAA,CNAME queries. When set to 'NxDomainRedirect', Azure DNS resolver falls back to public resolution if private dns query resolution results in non-existent domain response.- Parameters:
resolutionPolicy- the resolutionPolicy value to set.- Returns:
- the VirtualNetworkLinkInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static VirtualNetworkLinkInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualNetworkLinkInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualNetworkLinkInner 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 VirtualNetworkLinkInner.
-