Dela via


GalleryInner Class

public final class GalleryInner
extends Resource

Specifies information about the Shared Image Gallery that you want to create or update.

Constructor Summary

Constructor Description
GalleryInner()

Creates an instance of GalleryInner class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description of this Shared Image Gallery resource.

static GalleryInner fromJson(JsonReader jsonReader)

Reads an instance of GalleryInner from the JsonReader.

String id()

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

GalleryIdentifier identifier()

Get the identifier property: Describes the gallery unique name.

String name()

Get the name property: The name of the resource.

GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

SharingProfile sharingProfile()

Get the sharingProfile property: Profile for gallery sharing to subscription or tenant.

SharingStatus sharingStatus()

Get the sharingStatus property: Sharing status of current gallery.

SoftDeletePolicy softDeletePolicy()

Get the softDeletePolicy property: Contains information about the soft deletion policy of the gallery.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GalleryInner withDescription(String description)

Set the description property: The description of this Shared Image Gallery resource.

GalleryInner withIdentifier(GalleryIdentifier identifier)

Set the identifier property: Describes the gallery unique name.

GalleryInner withLocation(String location)
GalleryInner withSharingProfile(SharingProfile sharingProfile)

Set the sharingProfile property: Profile for gallery sharing to subscription or tenant.

GalleryInner withSoftDeletePolicy(SoftDeletePolicy softDeletePolicy)

Set the softDeletePolicy property: Contains information about the soft deletion policy of the gallery.

GalleryInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

GalleryInner

public GalleryInner()

Creates an instance of GalleryInner class.

Method Details

description

public String description()

Get the description property: The description of this Shared Image Gallery resource. This property is updatable.

Returns:

the description value.

fromJson

public static GalleryInner fromJson(JsonReader jsonReader)

Reads an instance of GalleryInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

GalleryInner.id()

Returns:

the id value.

identifier

public GalleryIdentifier identifier()

Get the identifier property: Describes the gallery unique name.

Returns:

the identifier value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GalleryInner.name()

Returns:

the name value.

provisioningState

public GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

sharingProfile

public SharingProfile sharingProfile()

Get the sharingProfile property: Profile for gallery sharing to subscription or tenant.

Returns:

the sharingProfile value.

sharingStatus

public SharingStatus sharingStatus()

Get the sharingStatus property: Sharing status of current gallery.

Returns:

the sharingStatus value.

softDeletePolicy

public SoftDeletePolicy softDeletePolicy()

Get the softDeletePolicy property: Contains information about the soft deletion policy of the gallery.

Returns:

the softDeletePolicy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GalleryInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDescription

public GalleryInner withDescription(String description)

Set the description property: The description of this Shared Image Gallery resource. This property is updatable.

Parameters:

description - the description value to set.

Returns:

the GalleryInner object itself.

withIdentifier

public GalleryInner withIdentifier(GalleryIdentifier identifier)

Set the identifier property: Describes the gallery unique name.

Parameters:

identifier - the identifier value to set.

Returns:

the GalleryInner object itself.

withLocation

public GalleryInner withLocation(String location)

Overrides:

GalleryInner.withLocation(String location)

Parameters:

location

withSharingProfile

public GalleryInner withSharingProfile(SharingProfile sharingProfile)

Set the sharingProfile property: Profile for gallery sharing to subscription or tenant.

Parameters:

sharingProfile - the sharingProfile value to set.

Returns:

the GalleryInner object itself.

withSoftDeletePolicy

public GalleryInner withSoftDeletePolicy(SoftDeletePolicy softDeletePolicy)

Set the softDeletePolicy property: Contains information about the soft deletion policy of the gallery.

Parameters:

softDeletePolicy - the softDeletePolicy value to set.

Returns:

the GalleryInner object itself.

withTags

public GalleryInner withTags(Map tags)

Overrides:

GalleryInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to