Class VirtualNetworkRule
java.lang.Object
com.azure.resourcemanager.elasticsan.models.VirtualNetworkRule
Virtual Network rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: The action of virtual network rule.state()
Get the state property: Gets the state of virtual network rule.void
validate()
Validates the instance.Get the virtualNetworkResourceId property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.withAction
(Action action) Set the action property: The action of virtual network rule.withVirtualNetworkResourceId
(String virtualNetworkResourceId) Set the virtualNetworkResourceId property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
-
Constructor Details
-
VirtualNetworkRule
public VirtualNetworkRule()Creates an instance of VirtualNetworkRule class.
-
-
Method Details
-
virtualNetworkResourceId
Get the virtualNetworkResourceId property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.- Returns:
- the virtualNetworkResourceId value.
-
withVirtualNetworkResourceId
Set the virtualNetworkResourceId property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.- Parameters:
virtualNetworkResourceId
- the virtualNetworkResourceId value to set.- Returns:
- the VirtualNetworkRule object itself.
-
action
Get the action property: The action of virtual network rule.- Returns:
- the action value.
-
withAction
Set the action property: The action of virtual network rule.- Parameters:
action
- the action value to set.- Returns:
- the VirtualNetworkRule object itself.
-
state
Get the state property: Gets the state of virtual network rule.- Returns:
- the state value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-