Class VirtualNetworkRule
java.lang.Object
com.azure.resourcemanager.cosmos.models.VirtualNetworkRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualNetworkRule>
public final class VirtualNetworkRule
extends Object
implements com.azure.json.JsonSerializable<VirtualNetworkRule>
Virtual Network ACL Rule object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNetworkRule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkRule from the JsonReader.id()
Get the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.Get the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.withIgnoreMissingVNetServiceEndpoint
(Boolean ignoreMissingVNetServiceEndpoint) Set the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualNetworkRule
public VirtualNetworkRule()Creates an instance of VirtualNetworkRule class.
-
-
Method Details
-
id
Get the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.- Returns:
- the id value.
-
withId
Set the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.- Parameters:
id
- the id value to set.- Returns:
- the VirtualNetworkRule object itself.
-
ignoreMissingVNetServiceEndpoint
Get the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.- Returns:
- the ignoreMissingVNetServiceEndpoint value.
-
withIgnoreMissingVNetServiceEndpoint
public VirtualNetworkRule withIgnoreMissingVNetServiceEndpoint(Boolean ignoreMissingVNetServiceEndpoint) Set the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.- Parameters:
ignoreMissingVNetServiceEndpoint
- the ignoreMissingVNetServiceEndpoint value to set.- Returns:
- the VirtualNetworkRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VirtualNetworkRule>
- Throws:
IOException
-
fromJson
Reads an instance of VirtualNetworkRule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VirtualNetworkRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the VirtualNetworkRule.
-