Share via


SubnetReference Class

public final class SubnetReference
extends ProxyResourceReference

Defines reference to subnet.

Constructor Summary

Constructor Description
SubnetReference()

Creates an instance of SubnetReference class.

Method Summary

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

Reads an instance of SubnetReference from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SubnetReference withName(String name)

Set the name property: Gets the name of the proxy resource on the target side.

SubnetReference withSourceArmResourceId(String sourceArmResourceId)

Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.

Methods inherited from AzureResourceReference

Methods inherited from ProxyResourceReference

Methods inherited from java.lang.Object

Constructor Details

SubnetReference

public SubnetReference()

Creates an instance of SubnetReference class.

Method Details

fromJson

public static SubnetReference fromJson(JsonReader jsonReader)

Reads an instance of SubnetReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SubnetReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SubnetReference.validate()

withName

public SubnetReference withName(String name)

Set the name property: Gets the name of the proxy resource on the target side.

Overrides:

SubnetReference.withName(String name)

Parameters:

name

withSourceArmResourceId

public SubnetReference withSourceArmResourceId(String sourceArmResourceId)

Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.

Overrides:

SubnetReference.withSourceArmResourceId(String sourceArmResourceId)

Parameters:

sourceArmResourceId

Applies to