VirtualNetworkRule Class

public final class VirtualNetworkRule
extends SubResource

Data Lake Analytics VirtualNetwork Rule information.

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 name()

Get the name property: The resource name.

String subnetId()

Get the subnetId property: The resource identifier for the subnet.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type.

void validate()

Validates the instance.

VirtualNetworkRuleState virtualNetworkRuleState()

Get the virtualNetworkRuleState property: The current state of the VirtualNetwork Rule.

VirtualNetworkRule withId(String id)

Methods inherited from SubResource

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.

name

public String name()

Get the name property: The resource name.

Returns:

the name value.

subnetId

public String subnetId()

Get the subnetId property: The resource identifier for the subnet.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualNetworkRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualNetworkRuleState

public VirtualNetworkRuleState virtualNetworkRuleState()

Get the virtualNetworkRuleState property: The current state of the VirtualNetwork Rule.

Returns:

the virtualNetworkRuleState value.

withId

public VirtualNetworkRule withId(String id)

Overrides:

VirtualNetworkRule.withId(String id)

Parameters:

id

Applies to