ImageDeprecationStatus Class

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

Implements

public final class ImageDeprecationStatus
implements JsonSerializable<ImageDeprecationStatus>

Describes image deprecation status properties on the image.

Constructor Summary

Constructor Description
ImageDeprecationStatus()

Creates an instance of ImageDeprecationStatus class.

Method Summary

Modifier and Type Method and Description
AlternativeOption alternativeOption()

Get the alternativeOption property: Describes the alternative option specified by the Publisher for this image when this image is deprecated.

static ImageDeprecationStatus fromJson(JsonReader jsonReader)

Reads an instance of ImageDeprecationStatus from the JsonReader.

ImageState imageState()

Get the imageState property: Describes the state of the image.

OffsetDateTime scheduledDeprecationTime()

Get the scheduledDeprecationTime property: The time, in future, at which this image will be marked as deprecated.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageDeprecationStatus withAlternativeOption(AlternativeOption alternativeOption)

Set the alternativeOption property: Describes the alternative option specified by the Publisher for this image when this image is deprecated.

ImageDeprecationStatus withImageState(ImageState imageState)

Set the imageState property: Describes the state of the image.

ImageDeprecationStatus withScheduledDeprecationTime(OffsetDateTime scheduledDeprecationTime)

Set the scheduledDeprecationTime property: The time, in future, at which this image will be marked as deprecated.

Methods inherited from java.lang.Object

Constructor Details

ImageDeprecationStatus

public ImageDeprecationStatus()

Creates an instance of ImageDeprecationStatus class.

Method Details

alternativeOption

public AlternativeOption alternativeOption()

Get the alternativeOption property: Describes the alternative option specified by the Publisher for this image when this image is deprecated.

Returns:

the alternativeOption value.

fromJson

public static ImageDeprecationStatus fromJson(JsonReader jsonReader)

Reads an instance of ImageDeprecationStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

imageState

public ImageState imageState()

Get the imageState property: Describes the state of the image.

Returns:

the imageState value.

scheduledDeprecationTime

public OffsetDateTime scheduledDeprecationTime()

Get the scheduledDeprecationTime property: The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher.

Returns:

the scheduledDeprecationTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAlternativeOption

public ImageDeprecationStatus withAlternativeOption(AlternativeOption alternativeOption)

Set the alternativeOption property: Describes the alternative option specified by the Publisher for this image when this image is deprecated.

Parameters:

alternativeOption - the alternativeOption value to set.

Returns:

the ImageDeprecationStatus object itself.

withImageState

public ImageDeprecationStatus withImageState(ImageState imageState)

Set the imageState property: Describes the state of the image.

Parameters:

imageState - the imageState value to set.

Returns:

the ImageDeprecationStatus object itself.

withScheduledDeprecationTime

public ImageDeprecationStatus withScheduledDeprecationTime(OffsetDateTime scheduledDeprecationTime)

Set the scheduledDeprecationTime property: The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher.

Parameters:

scheduledDeprecationTime - the scheduledDeprecationTime value to set.

Returns:

the ImageDeprecationStatus object itself.

Applies to