VirtualNetworkRule Class

  • java.lang.Object
    • com.azure.resourcemanager.keyvault.models.VirtualNetworkRule

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 VirtualNetworkRule class.

Method Summary

Modifier and Type Method and Description
static VirtualNetworkRule fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkRule from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

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 the deserialized JSON object was missing any required properties.

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:

the id value.

ignoreMissingVnetServiceEndpoint

public Boolean ignoreMissingVnetServiceEndpoint()

Get the ignoreMissingVnetServiceEndpoint property: Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured.

Returns:

the ignoreMissingVnetServiceEndpoint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

id - the id value to set.

Returns:

the VirtualNetworkRule object itself.

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:

ignoreMissingVnetServiceEndpoint - the ignoreMissingVnetServiceEndpoint value to set.

Returns:

the VirtualNetworkRule object itself.

Applies to