Del via


VirtualNetworkRuleProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.VirtualNetworkRuleProperties

Implements

public final class VirtualNetworkRuleProperties
implements JsonSerializable<VirtualNetworkRuleProperties>

Properties of a virtual network rule.

Constructor Summary

Constructor Description
VirtualNetworkRuleProperties()

Creates an instance of VirtualNetworkRuleProperties class.

Method Summary

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

Reads an instance of VirtualNetworkRuleProperties from the JsonReader.

Boolean ignoreMissingVnetServiceEndpoint()

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

VirtualNetworkRuleState state()

Get the state property: Virtual Network Rule State.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String virtualNetworkSubnetId()

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

VirtualNetworkRuleProperties withIgnoreMissingVnetServiceEndpoint(Boolean ignoreMissingVnetServiceEndpoint)

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

VirtualNetworkRuleProperties withVirtualNetworkSubnetId(String virtualNetworkSubnetId)

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

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkRuleProperties

public VirtualNetworkRuleProperties()

Creates an instance of VirtualNetworkRuleProperties class.

Method Details

fromJson

public static VirtualNetworkRuleProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkRuleProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkRuleProperties 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.

ignoreMissingVnetServiceEndpoint

public Boolean ignoreMissingVnetServiceEndpoint()

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

Returns:

the ignoreMissingVnetServiceEndpoint value.

state

public VirtualNetworkRuleState state()

Get the state property: Virtual Network Rule State.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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 VirtualNetworkRuleProperties 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 VirtualNetworkRuleProperties object itself.

withVirtualNetworkSubnetId

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

Applies to