ProxyResource Class

public class ProxyResource
extends Resource

Proxy Resource The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location.

Constructor Summary

Constructor Description
ProxyResource()

Creates an instance of ProxyResource class.

Method Summary

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

Reads an instance of ProxyResource from the JsonReader.

String getId()

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

String getName()

Get the name property: The name of the resource.

String getType()

Get the type property: The type of the resource.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ProxyResource

public ProxyResource()

Creates an instance of ProxyResource class.

Method Details

fromJson

public static ProxyResource fromJson(JsonReader jsonReader)

Reads an instance of ProxyResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getId

public String getId()

Get the id property: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

Overrides:

ProxyResource.getId()

Returns:

the id value.

getName

public String getName()

Get the name property: The name of the resource.

Overrides:

ProxyResource.getName()

Returns:

the name value.

getType

public String getType()

Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Overrides:

ProxyResource.getType()

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProxyResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to