Class VirtualNetworkRule

java.lang.Object
com.microsoft.azure.management.storage.VirtualNetworkRule

public class VirtualNetworkRule extends Object
Virtual Network rule.
  • Constructor Details

    • VirtualNetworkRule

      public VirtualNetworkRule()
  • Method Details

    • virtualNetworkResourceId

      public String virtualNetworkResourceId()
      Get 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 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 of virtual network rule. Possible values include: 'Allow'.
      Returns:
      the action value
    • withAction

      public VirtualNetworkRule withAction(Action action)
      Set the action of virtual network rule. Possible values include: 'Allow'.
      Parameters:
      action - the action value to set
      Returns:
      the VirtualNetworkRule object itself.
    • state

      public State state()
      Get gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'.
      Returns:
      the state value
    • withState

      public VirtualNetworkRule withState(State state)
      Set gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'.
      Parameters:
      state - the state value to set
      Returns:
      the VirtualNetworkRule object itself.