VirtualNetworkRule Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. VirtualNetworkRule
- com.
Implements
public final class VirtualNetworkRule
implements JsonSerializable<VirtualNetworkRule>
A rule governing the accessibility of a vault from a specific virtual network.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkRule() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
id()
Get the id property: Full resource id of a vnet subnet, such as '/subscriptions/subid/resource |
Boolean |
ignoreMissingVnetServiceEndpoint()
Get the ignore |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withId(String id)
Set the id property: Full resource id of a vnet subnet, such as '/subscriptions/subid/resource |
Virtual |
withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)
Set the ignore |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkRule
public VirtualNetworkRule()
Creates an instance of VirtualNetworkRule class.
Method Details
fromJson
public static VirtualNetworkRule fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkRule from the JsonReader.
Parameters:
Returns:
Throws:
id
public 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'.
Returns:
ignoreMissingVnetServiceEndpoint
public Boolean ignoreMissingVnetServiceEndpoint()
Get the ignoreMissingVnetServiceEndpoint property: Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured.
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public 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'.
Parameters:
Returns:
withIgnoreMissingVnetServiceEndpoint
public VirtualNetworkRule withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)
Set the ignoreMissingVnetServiceEndpoint property: Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured.
Parameters:
Returns:
Applies to
Azure SDK for Java