ChildResource Class

public class ChildResource
extends ProxyResource

Proxy resource representation.

Constructor Summary

Constructor Description
ChildResource()

Creates an instance of ChildResource class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static ChildResource fromJson(JsonReader jsonReader)

Reads an instance of ChildResource from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ChildResource

public ChildResource()

Creates an instance of ChildResource class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static ChildResource fromJson(JsonReader jsonReader)

Reads an instance of ChildResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ChildResource 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:

ChildResource.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ChildResource.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ChildResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ChildResource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to