Class ImageDeprecationStatus
java.lang.Object
com.azure.resourcemanager.compute.models.ImageDeprecationStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImageDeprecationStatus>
public final class ImageDeprecationStatus
extends Object
implements com.azure.json.JsonSerializable<ImageDeprecationStatus>
Describes image deprecation status properties on the image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ImageDeprecationStatus class. -
Method Summary
Modifier and TypeMethodDescriptionGet the alternativeOption property: Describes the alternative option specified by the Publisher for this image when this image is deprecated.static ImageDeprecationStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImageDeprecationStatus from the JsonReader.Get the imageState property: Describes the state of the image.Get the scheduledDeprecationTime property: The time, in future, at which this image will be marked as deprecated.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAlternativeOption(AlternativeOption alternativeOption) Set the alternativeOption property: Describes the alternative option specified by the Publisher for this image when this image is deprecated.withImageState(ImageState imageState) Set the imageState property: Describes the state of the image.withScheduledDeprecationTime(OffsetDateTime scheduledDeprecationTime) Set the scheduledDeprecationTime property: The time, in future, at which this image will be marked as deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ImageDeprecationStatus
public ImageDeprecationStatus()Creates an instance of ImageDeprecationStatus class.
-
-
Method Details
-
imageState
Get the imageState property: Describes the state of the image.- Returns:
- the imageState value.
-
withImageState
Set the imageState property: Describes the state of the image.- Parameters:
imageState- the imageState value to set.- Returns:
- the ImageDeprecationStatus object itself.
-
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.
-
withScheduledDeprecationTime
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.
-
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.
-
withAlternativeOption
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ImageDeprecationStatus>- Throws:
IOException
-
fromJson
public static ImageDeprecationStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-