다음을 통해 공유


PirCommunityGalleryResource Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.PirCommunityGalleryResource

Implements

public class PirCommunityGalleryResource
implements JsonSerializable<PirCommunityGalleryResource>

Base information about the community gallery resource in azure compute gallery.

Constructor Summary

Constructor Description
PirCommunityGalleryResource()

Creates an instance of PirCommunityGalleryResource class.

Method Summary

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

Reads an instance of PirCommunityGalleryResource from the JsonReader.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

String uniqueId()

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

void validate()

Validates the instance.

PirCommunityGalleryResource withUniqueId(String uniqueId)

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

Methods inherited from java.lang.Object

Constructor Details

PirCommunityGalleryResource

public PirCommunityGalleryResource()

Creates an instance of PirCommunityGalleryResource class.

Method Details

fromJson

public static PirCommunityGalleryResource fromJson(JsonReader jsonReader)

Reads an instance of PirCommunityGalleryResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Returns:

the type value.

uniqueId

public String uniqueId()

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

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

withUniqueId

public PirCommunityGalleryResource withUniqueId(String uniqueId)

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

Parameters:

uniqueId - the uniqueId value to set.

Returns:

the PirCommunityGalleryResource object itself.

Applies to