Class VirtualNetworkRule
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.VirtualNetworkRule
-
public final class VirtualNetworkRule extends Object
Virtual Network rule.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionaction()Get the action property: The action of virtual network rule.Statestate()Get the state property: Gets the state of virtual network rule.voidvalidate()Validates the instance.StringvirtualNetworkResourceId()Get the virtualNetworkResourceId property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.VirtualNetworkRulewithAction(Action action)Set the action property: The action of virtual network rule.VirtualNetworkRulewithState(State state)Set the state property: Gets the state of virtual network rule.VirtualNetworkRulewithVirtualNetworkResourceId(String virtualNetworkResourceId)Set the virtualNetworkResourceId property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
-
-
-
Method Detail
-
virtualNetworkResourceId
public String 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
public VirtualNetworkRule 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}.- Parameters:
virtualNetworkResourceId- the virtualNetworkResourceId value to set.- Returns:
- the VirtualNetworkRule object itself.
-
action
public Action action()
Get the action property: The action of virtual network rule.- Returns:
- the action value.
-
withAction
public VirtualNetworkRule withAction(Action action)
Set the action property: The action of virtual network rule.- Parameters:
action- the action value to set.- Returns:
- the VirtualNetworkRule object itself.
-
state
public State state()
Get the state property: Gets the state of virtual network rule.- Returns:
- the state value.
-
withState
public VirtualNetworkRule withState(State state)
Set the state property: Gets the state of virtual network rule.- Parameters:
state- the state value to set.- Returns:
- the VirtualNetworkRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-