Class UpgradeOperationHistoryStatus
java.lang.Object
com.azure.resourcemanager.compute.models.UpgradeOperationHistoryStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpgradeOperationHistoryStatus>
public final class UpgradeOperationHistoryStatus
extends Object
implements com.azure.json.JsonSerializable<UpgradeOperationHistoryStatus>
Information about the current running state of the overall upgrade.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UpgradeOperationHistoryStatus class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: Code indicating the current status of the upgrade.endTime()Get the endTime property: End time of the upgrade.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UpgradeOperationHistoryStatus from the JsonReader.Get the startTime property: Start time of the upgrade.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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
-
UpgradeOperationHistoryStatus
public UpgradeOperationHistoryStatus()Creates an instance of UpgradeOperationHistoryStatus class.
-
-
Method Details
-
code
Get the code property: Code indicating the current status of the upgrade.- Returns:
- the code value.
-
startTime
Get the startTime property: Start time of the upgrade.- Returns:
- the startTime value.
-
endTime
Get the endTime property: End time of the upgrade.- Returns:
- the endTime value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UpgradeOperationHistoryStatus>- Throws:
IOException
-
fromJson
public static UpgradeOperationHistoryStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UpgradeOperationHistoryStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UpgradeOperationHistoryStatus 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 UpgradeOperationHistoryStatus.
-