### YamlMime:JavaType
uid: "com.microsoft.azure.management.storage.VirtualNetworkRule"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule"
name: "VirtualNetworkRule"
nameWithType: "VirtualNetworkRule"
summary: "Virtual Network rule."
inheritances:
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public class **VirtualNetworkRule**"
constructors:
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.VirtualNetworkRule()"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.VirtualNetworkRule()"
name: "VirtualNetworkRule()"
nameWithType: "VirtualNetworkRule.VirtualNetworkRule()"
syntax: "public VirtualNetworkRule()"
methods:
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.action()"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.action()"
name: "action()"
nameWithType: "VirtualNetworkRule.action()"
summary: "Get the action of virtual network rule."
syntax: "public Action action()"
desc: "Get the action of virtual network rule. Possible values include: 'Allow'."
returns:
description: "the action value"
type: ""
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.state()"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.state()"
name: "state()"
nameWithType: "VirtualNetworkRule.state()"
summary: "Get gets the state of virtual network rule."
syntax: "public State state()"
desc: "Get gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'."
returns:
description: "the state value"
type: ""
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.virtualNetworkResourceId()"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.virtualNetworkResourceId()"
name: "virtualNetworkResourceId()"
nameWithType: "VirtualNetworkRule.virtualNetworkResourceId()"
summary: "Get resource ID of a subnet, for example: /subscriptions/\\{subscriptionId\\}/resourceGroups/\\{groupName\\}/providers/Microsoft.Network/virtualNetworks/\\{vnetName\\}/subnets/\\{subnetName\\}."
syntax: "public String virtualNetworkResourceId()"
desc: "Get resource ID of a subnet, for example: /subscriptions/\\{subscriptionId\\}/resourceGroups/\\{groupName\\}/providers/Microsoft.Network/virtualNetworks/\\{vnetName\\}/subnets/\\{subnetName\\}."
returns:
description: "the virtualNetworkResourceId value"
type: ""
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.withAction(com.microsoft.azure.management.storage.Action)"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.withAction(Action action)"
name: "withAction(Action action)"
nameWithType: "VirtualNetworkRule.withAction(Action action)"
summary: "Set the action of virtual network rule."
parameters:
- description: "the action value to set"
name: "action"
type: ""
syntax: "public VirtualNetworkRule withAction(Action action)"
desc: "Set the action of virtual network rule. Possible values include: 'Allow'."
returns:
description: "the VirtualNetworkRule object itself."
type: ""
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.withState(com.microsoft.azure.management.storage.State)"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.withState(State state)"
name: "withState(State state)"
nameWithType: "VirtualNetworkRule.withState(State state)"
summary: "Set gets the state of virtual network rule."
parameters:
- description: "the state value to set"
name: "state"
type: ""
syntax: "public VirtualNetworkRule withState(State state)"
desc: "Set gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'."
returns:
description: "the VirtualNetworkRule object itself."
type: ""
- uid: "com.microsoft.azure.management.storage.VirtualNetworkRule.withVirtualNetworkResourceId(java.lang.String)"
fullName: "com.microsoft.azure.management.storage.VirtualNetworkRule.withVirtualNetworkResourceId(String virtualNetworkResourceId)"
name: "withVirtualNetworkResourceId(String virtualNetworkResourceId)"
nameWithType: "VirtualNetworkRule.withVirtualNetworkResourceId(String virtualNetworkResourceId)"
summary: "Set resource ID of a subnet, for example: /subscriptions/\\{subscriptionId\\}/resourceGroups/\\{groupName\\}/providers/Microsoft.Network/virtualNetworks/\\{vnetName\\}/subnets/\\{subnetName\\}."
parameters:
- description: "the virtualNetworkResourceId value to set"
name: "virtualNetworkResourceId"
type: ""
syntax: "public VirtualNetworkRule withVirtualNetworkResourceId(String virtualNetworkResourceId)"
desc: "Set resource ID of a subnet, for example: /subscriptions/\\{subscriptionId\\}/resourceGroups/\\{groupName\\}/providers/Microsoft.Network/virtualNetworks/\\{vnetName\\}/subnets/\\{subnetName\\}."
returns:
description: "the VirtualNetworkRule object itself."
type: ""
type: "class"
desc: "Virtual Network rule."
metadata: {}
package: "com.microsoft.azure.management.storage"
artifact: com.microsoft.azure:azure-mgmt-storage:1.41.4