Package com.azure.compute.batch.models
Class InstanceViewStatus
java.lang.Object
com.azure.compute.batch.models.InstanceViewStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InstanceViewStatus>
public final class InstanceViewStatus
extends Object
implements com.azure.json.JsonSerializable<InstanceViewStatus>
The instance view status.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceViewStatus
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of InstanceViewStatus from the JsonReader.getCode()
Get the code property: The status code.Get the displayStatus property: The localized label for the status.getLevel()
Get the level property: Level code.Get the message property: The detailed status message.getTime()
Get the time property: The time of the status.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getCode
Get the code property: The status code.- Returns:
- the code value.
-
getDisplayStatus
Get the displayStatus property: The localized label for the status.- Returns:
- the displayStatus value.
-
getLevel
Get the level property: Level code.- Returns:
- the level value.
-
getMessage
Get the message property: The detailed status message.- Returns:
- the message value.
-
getTime
Get the time property: The time of the status.- Returns:
- the time value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<InstanceViewStatus>
- Throws:
IOException
-
fromJson
Reads an instance of InstanceViewStatus from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of InstanceViewStatus 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 InstanceViewStatus.
-