Share via


ProxyResourceReference Class

public class ProxyResourceReference
extends AzureResourceReference

Defines reference to a proxy resource.

Constructor Summary

Constructor Description
ProxyResourceReference()

Creates an instance of ProxyResourceReference class.

Method Summary

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

Reads an instance of ProxyResourceReference from the JsonReader.

String name()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProxyResourceReference withName(String name)

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

ProxyResourceReference 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 java.lang.Object

Constructor Details

ProxyResourceReference

public ProxyResourceReference()

Creates an instance of ProxyResourceReference class.

Method Details

fromJson

public static ProxyResourceReference fromJson(JsonReader jsonReader)

Reads an instance of ProxyResourceReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

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

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProxyResourceReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ProxyResourceReference.validate()

withName

public ProxyResourceReference withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the ProxyResourceReference object itself.

withSourceArmResourceId

public ProxyResourceReference withSourceArmResourceId(String sourceArmResourceId)

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

Overrides:

ProxyResourceReference.withSourceArmResourceId(String sourceArmResourceId)

Parameters:

sourceArmResourceId

Applies to