VirtualNetworkRule Class

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

Implements

public final class VirtualNetworkRule
implements JsonSerializable<VirtualNetworkRule>

Virtual Network ACL Rule object.

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: Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.

Boolean ignoreMissingVNetServiceEndpoint()

Get the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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}.

VirtualNetworkRule withIgnoreMissingVNetServiceEndpoint(Boolean ignoreMissingVNetServiceEndpoint)

Set the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.

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 an error occurs while reading the VirtualNetworkRule.

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.

ignoreMissingVNetServiceEndpoint

public Boolean ignoreMissingVNetServiceEndpoint()

Get the ignoreMissingVNetServiceEndpoint property: Create firewall rule before the virtual network has vnet service endpoint enabled.

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: 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.

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.

Applies to