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: Resource ID.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

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 an error occurs while reading the ProxyResourceWithWritableName.

id

public String id()

Get the id property: Resource ID.

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: Resource type.

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