Partilhar via


GallerySoftDeletedResourceInner Class

public final class GallerySoftDeletedResourceInner
extends Resource

The details information of soft-deleted resource.

Constructor Summary

Constructor Description
GallerySoftDeletedResourceInner()

Creates an instance of GallerySoftDeletedResourceInner class.

Method Summary

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

Reads an instance of GallerySoftDeletedResourceInner 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.

String resourceArmId()

Get the resourceArmId property: arm id of the soft-deleted resource.

SoftDeletedArtifactTypes softDeletedArtifactType()

Get the softDeletedArtifactType property: artifact type of the soft-deleted resource.

String softDeletedTime()

Get the softDeletedTime property: The timestamp for when the resource is soft-deleted.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GallerySoftDeletedResourceInner withLocation(String location)
GallerySoftDeletedResourceInner withResourceArmId(String resourceArmId)

Set the resourceArmId property: arm id of the soft-deleted resource.

GallerySoftDeletedResourceInner withSoftDeletedArtifactType(SoftDeletedArtifactTypes softDeletedArtifactType)

Set the softDeletedArtifactType property: artifact type of the soft-deleted resource.

GallerySoftDeletedResourceInner withSoftDeletedTime(String softDeletedTime)

Set the softDeletedTime property: The timestamp for when the resource is soft-deleted.

GallerySoftDeletedResourceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

GallerySoftDeletedResourceInner

public GallerySoftDeletedResourceInner()

Creates an instance of GallerySoftDeletedResourceInner class.

Method Details

fromJson

public static GallerySoftDeletedResourceInner fromJson(JsonReader jsonReader)

Reads an instance of GallerySoftDeletedResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

GallerySoftDeletedResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GallerySoftDeletedResourceInner.name()

Returns:

the name value.

resourceArmId

public String resourceArmId()

Get the resourceArmId property: arm id of the soft-deleted resource.

Returns:

the resourceArmId value.

softDeletedArtifactType

public SoftDeletedArtifactTypes softDeletedArtifactType()

Get the softDeletedArtifactType property: artifact type of the soft-deleted resource.

Returns:

the softDeletedArtifactType value.

softDeletedTime

public String softDeletedTime()

Get the softDeletedTime property: The timestamp for when the resource is soft-deleted. In dateTime offset format.

Returns:

the softDeletedTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GallerySoftDeletedResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GallerySoftDeletedResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withLocation

public GallerySoftDeletedResourceInner withLocation(String location)

Overrides:

GallerySoftDeletedResourceInner.withLocation(String location)

Parameters:

location

withResourceArmId

public GallerySoftDeletedResourceInner withResourceArmId(String resourceArmId)

Set the resourceArmId property: arm id of the soft-deleted resource.

Parameters:

resourceArmId - the resourceArmId value to set.

Returns:

the GallerySoftDeletedResourceInner object itself.

withSoftDeletedArtifactType

public GallerySoftDeletedResourceInner withSoftDeletedArtifactType(SoftDeletedArtifactTypes softDeletedArtifactType)

Set the softDeletedArtifactType property: artifact type of the soft-deleted resource.

Parameters:

softDeletedArtifactType - the softDeletedArtifactType value to set.

Returns:

the GallerySoftDeletedResourceInner object itself.

withSoftDeletedTime

public GallerySoftDeletedResourceInner withSoftDeletedTime(String softDeletedTime)

Set the softDeletedTime property: The timestamp for when the resource is soft-deleted. In dateTime offset format.

Parameters:

softDeletedTime - the softDeletedTime value to set.

Returns:

the GallerySoftDeletedResourceInner object itself.

withTags

public GallerySoftDeletedResourceInner withTags(Map tags)

Overrides:

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

Parameters:

tags

Applies to