Partager via


PirSharedGalleryResource Class

public class PirSharedGalleryResource
extends PirResource

Base information about the shared gallery resource in pir.

Constructor Summary

Constructor Description
PirSharedGalleryResource()

Creates an instance of PirSharedGalleryResource class.

Method Summary

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

Reads an instance of PirSharedGalleryResource from the JsonReader.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
String uniqueId()

Get the uniqueId property: The unique id of this shared gallery.

void validate()

Validates the instance.

PirSharedGalleryResource withUniqueId(String uniqueId)

Set the uniqueId property: The unique id of this shared gallery.

Methods inherited from PirResource

Methods inherited from java.lang.Object

Constructor Details

PirSharedGalleryResource

public PirSharedGalleryResource()

Creates an instance of PirSharedGalleryResource class.

Method Details

fromJson

public static PirSharedGalleryResource fromJson(JsonReader jsonReader)

Reads an instance of PirSharedGalleryResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: Resource location.

Overrides:

PirSharedGalleryResource.location()

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Overrides:

PirSharedGalleryResource.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PirSharedGalleryResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uniqueId

public String uniqueId()

Get the uniqueId property: The unique id of this shared gallery.

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

Overrides:

PirSharedGalleryResource.validate()

withUniqueId

public PirSharedGalleryResource withUniqueId(String uniqueId)

Set the uniqueId property: The unique id of this shared gallery.

Parameters:

uniqueId - the uniqueId value to set.

Returns:

the PirSharedGalleryResource object itself.

Applies to