ProxyResource Class

  • java.lang.Object
    • com.azure.core.management.ProxyResource

Implements

public class ProxyResource
implements JsonSerializable<ProxyResource>

The Proxy Resource model.

Constructor Summary

Constructor Description
ProxyResource()

Creates an instance of ProxyResource.

Method Summary

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

Reads a JSON stream into a ProxyResource.

String id()

Get the id value.

String name()

Get the name value.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type value.

Methods inherited from java.lang.Object

Constructor Details

ProxyResource

public ProxyResource()

Creates an instance of ProxyResource.

Method Details

fromJson

public static ProxyResource fromJson(JsonReader jsonReader)

Reads a JSON stream into a ProxyResource.

Parameters:

jsonReader - The JsonReader being read.

Returns:

The ProxyResource that the JSON stream represented, may return null.

Throws:

IOException

- If a ProxyResource fails to be read from the jsonReader.

id

public String id()

Get the id value.

Returns:

the fully qualified resource ID for the resource.

name

public String name()

Get the name value.

Returns:

the name of the resource.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type value.

Returns:

the type of the resource.

Applies to