Container Class

public final class Container
extends SubResource

Reference to container resource in remote resource provider.

Constructor Summary

Constructor Description
Container()

Creates an instance of Container class.

Method Summary

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

Reads an instance of Container from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Container withId(String id)

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

Container

public Container()

Creates an instance of Container class.

Method Details

fromJson

public static Container fromJson(JsonReader jsonReader)

Reads an instance of Container from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

Container.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public Container withId(String id)

Overrides:

Container.withId(String id)

Parameters:

id

Applies to