VirtualNetworkRule Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. VirtualNetworkRule
- com.
Implements
public final class VirtualNetworkRule
implements JsonSerializable<VirtualNetworkRule>
Virtual Network rule.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkRule() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
action()
Get the action property: The action of virtual network rule. |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
State |
state()
Get the state property: Gets the state of virtual network rule. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
virtualNetworkResourceId()
Get the virtual |
Virtual |
withAction(Action action)
Set the action property: The action of virtual network rule. |
Virtual |
withState(State state)
Set the state property: Gets the state of virtual network rule. |
Virtual |
withVirtualNetworkResourceId(String virtualNetworkResourceId)
Set the virtual |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkRule
public VirtualNetworkRule()
Creates an instance of VirtualNetworkRule class.
Method Details
action
public Action action()
Get the action property: The action of virtual network rule.
Returns:
fromJson
public static VirtualNetworkRule fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkRule from the JsonReader.
Parameters:
Returns:
Throws:
state
public State state()
Get the state property: Gets the state of virtual network rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
withAction
public VirtualNetworkRule withAction(Action action)
Set the action property: The action of virtual network rule.
Parameters:
Returns:
withState
public VirtualNetworkRule withState(State state)
Set the state property: Gets the state of virtual network rule.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java