ImageDeprecationStatus Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ImageDeprecationStatus
- com.
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 Image |
Method Summary
Modifier and Type | Method and Description |
---|---|
Alternative |
alternativeOption()
Get the alternative |
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
Image |
imageState()
Get the image |
Offset |
scheduledDeprecationTime()
Get the scheduled |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Image |
withAlternativeOption(AlternativeOption alternativeOption)
Set the alternative |
Image |
withImageState(ImageState imageState)
Set the image |
Image |
withScheduledDeprecationTime(OffsetDateTime scheduledDeprecationTime)
Set the scheduled |
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:
fromJson
public static ImageDeprecationStatus fromJson(JsonReader jsonReader)
Reads an instance of ImageDeprecationStatus from the JsonReader.
Parameters:
Returns:
Throws:
imageState
public ImageState imageState()
Get the imageState property: Describes the state of the image.
Returns:
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:
toJson
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:
Returns:
withImageState
public ImageDeprecationStatus withImageState(ImageState imageState)
Set the imageState property: Describes the state of the image.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java