ProxyResourceWithWritableName Class

public class ProxyResourceWithWritableName
extends ResourceWithWritableName

ARM proxy resource.

Constructor Summary

Constructor Description
ProxyResourceWithWritableName()

Creates an instance of ProxyResourceWithWritableName class.

Method Summary

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

Reads an instance of ProxyResourceWithWritableName from the JsonReader.

String id()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ProxyResourceWithWritableName withName(String name)

Set the name property: Resource name.

Methods inherited from ResourceWithWritableName

Methods inherited from java.lang.Object

Constructor Details

ProxyResourceWithWritableName

public ProxyResourceWithWritableName()

Creates an instance of ProxyResourceWithWritableName class.

Method Details

fromJson

public static ProxyResourceWithWritableName fromJson(JsonReader jsonReader)

Reads an instance of ProxyResourceWithWritableName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

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

Overrides:

ProxyResourceWithWritableName.id()

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProxyResourceWithWritableName.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ProxyResourceWithWritableName.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ProxyResourceWithWritableName.validate()

withName

public ProxyResourceWithWritableName withName(String name)

Set the name property: Resource name.

Overrides:

ProxyResourceWithWritableName.withName(String name)

Parameters:

name

Applies to