public final class VirtualNetworkRule extends Object
| Constructor and Description |
|---|
VirtualNetworkRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
id()
Get the id property: Full resource id of a vnet subnet, such as
'/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.
|
Boolean |
ignoreMissingVnetServiceEndpoint()
Get the ignoreMissingVnetServiceEndpoint property: Property to specify whether NRP will ignore the check if
parent subnet has serviceEndpoints configured.
|
void |
validate()
Validates the instance.
|
VirtualNetworkRule |
withId(String id)
Set the id property: Full resource id of a vnet subnet, such as
'/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'.
|
VirtualNetworkRule |
withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)
Set the ignoreMissingVnetServiceEndpoint property: Property to specify whether NRP will ignore the check if
parent subnet has serviceEndpoints configured.
|
public String id()
public VirtualNetworkRule withId(String id)
id - the id value to set.public Boolean ignoreMissingVnetServiceEndpoint()
public VirtualNetworkRule withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)
ignoreMissingVnetServiceEndpoint - the ignoreMissingVnetServiceEndpoint value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.