Class VirtualNetworkLinkInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.privatedns.fluent.models.VirtualNetworkLinkInner
-
public final class VirtualNetworkLinkInner extends com.azure.core.management.ResourceDescribes a link to virtual network for a Private DNS zone.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkLinkInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringetag()Get the etag property: The ETag of the virtual network link.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the resource.BooleanregistrationEnabled()Get the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.voidvalidate()Validates the instance.com.azure.core.management.SubResourcevirtualNetwork()Get the virtualNetwork property: The reference of the virtual network.VirtualNetworkLinkStatevirtualNetworkLinkState()Get the virtualNetworkLinkState property: The status of the virtual network link to the Private DNS zone.VirtualNetworkLinkInnerwithEtag(String etag)Set the etag property: The ETag of the virtual network link.VirtualNetworkLinkInnerwithLocation(String location)VirtualNetworkLinkInnerwithRegistrationEnabled(Boolean registrationEnabled)Set the registrationEnabled property: Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?.VirtualNetworkLinkInnerwithTags(Map<String,String> tags)VirtualNetworkLinkInnerwithVirtualNetwork(com.azure.core.management.SubResource virtualNetwork)Set the virtualNetwork property: The reference of the virtual network.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: The ETag of the virtual network link.- Returns:
- the etag value.
-
withEtag
public VirtualNetworkLinkInner withEtag(String etag)
Set the etag property: The ETag of the virtual network link.- Parameters:
etag- the etag value to set.- Returns:
- the VirtualNetworkLinkInner object itself.
-
withLocation
public VirtualNetworkLinkInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public VirtualNetworkLinkInner withTags(Map<String,String> tags)
- 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
public Boolean 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
public VirtualNetworkLinkInner withRegistrationEnabled(Boolean registrationEnabled)
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.
-
virtualNetworkLinkState
public VirtualNetworkLinkState 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
public ProvisioningState 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.
-
-