Class VirtualNetworkRule
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.VirtualNetworkRule
-
public final class VirtualNetworkRule extends Object
Virtual Network ACL Rule object.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Get the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.BooleanignoreMissingVNetServiceEndpoint()Get the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.voidvalidate()Validates the instance.VirtualNetworkRulewithId(String id)Set the id property: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.VirtualNetworkRulewithIgnoreMissingVNetServiceEndpoint(Boolean ignoreMissingVNetServiceEndpoint)Set the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.
-
-
-
Method Detail
-
id
public String 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
public VirtualNetworkRule withId(String id)
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
public Boolean 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.
-
-