VirtualNetworkRuleInner Class

public final class VirtualNetworkRuleInner
extends ProxyResource

A virtual network rule.

Constructor Summary

Constructor Description
VirtualNetworkRuleInner()

Creates an instance of VirtualNetworkRuleInner class.

Method Summary

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

Reads an instance of VirtualNetworkRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean ignoreMissingVnetServiceEndpoint()

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

String name()

Get the name property: The name of the resource.

VirtualNetworkRuleState state()

Get the state property: Virtual Network Rule State.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String virtualNetworkSubnetId()

Get the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.

VirtualNetworkRuleInner withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)

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

VirtualNetworkRuleInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId)

Set the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkRuleInner

public VirtualNetworkRuleInner()

Creates an instance of VirtualNetworkRuleInner class.

Method Details

fromJson

public static VirtualNetworkRuleInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkRuleInner 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: Fully qualified resource Id for the resource.

Overrides:

VirtualNetworkRuleInner.id()

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualNetworkRuleInner.name()

Returns:

the name value.

state

public VirtualNetworkRuleState state()

Get the state property: Virtual Network Rule State.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualNetworkRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualNetworkRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworkSubnetId

public String virtualNetworkSubnetId()

Get the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.

Returns:

the virtualNetworkSubnetId value.

withIgnoreMissingVnetServiceEndpoint

public VirtualNetworkRuleInner 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 VirtualNetworkRuleInner object itself.

withVirtualNetworkSubnetId

public VirtualNetworkRuleInner withVirtualNetworkSubnetId(String virtualNetworkSubnetId)

Set the virtualNetworkSubnetId property: The ARM resource id of the virtual network subnet.

Parameters:

virtualNetworkSubnetId - the virtualNetworkSubnetId value to set.

Returns:

the VirtualNetworkRuleInner object itself.

Applies to