Class DnsResolverInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.dnsresolver.fluent.models.DnsResolverInner
-
public final class DnsResolverInner extends com.azure.core.management.Resource
Describes a DNS resolver.
-
-
Constructor Summary
Constructors Constructor Description DnsResolverInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsResolverState
dnsResolverState()
Get the dnsResolverState property: The current status of the DNS resolver.String
etag()
Get the etag property: ETag of the DNS resolver.ProvisioningState
provisioningState()
Get the provisioningState property: The current provisioning state of the DNS resolver.String
resourceGuid()
Get the resourceGuid property: The resourceGuid property of the DNS resolver resource.com.azure.core.management.SystemData
systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.void
validate()
Validates the instance.com.azure.core.management.SubResource
virtualNetwork()
Get the virtualNetwork property: The reference to the virtual network.DnsResolverInner
withLocation(String location)
DnsResolverInner
withTags(Map<String,String> tags)
DnsResolverInner
withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork)
Set the virtualNetwork property: The reference to the virtual network.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: ETag of the DNS resolver.- Returns:
- the etag value.
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
withLocation
public DnsResolverInner withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public DnsResolverInner withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
virtualNetwork
public com.azure.core.management.SubResource virtualNetwork()
Get the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.- Returns:
- the virtualNetwork value.
-
withVirtualNetwork
public DnsResolverInner withVirtualNetwork(com.azure.core.management.SubResource virtualNetwork)
Set the virtualNetwork property: The reference to the virtual network. This cannot be changed after creation.- Parameters:
virtualNetwork
- the virtualNetwork value to set.- Returns:
- the DnsResolverInner object itself.
-
dnsResolverState
public DnsResolverState dnsResolverState()
Get the dnsResolverState property: The current status of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the dnsResolverState value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The current provisioning state of the DNS resolver. This is a read-only property and any attempt to set this value will be ignored.- Returns:
- the provisioningState value.
-
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resourceGuid property of the DNS resolver resource.- Returns:
- the resourceGuid value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-