Class ComputeVmInstanceViewStatus
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeVmInstanceViewStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeVmInstanceViewStatus>
public final class ComputeVmInstanceViewStatus
extends Object
implements com.azure.json.JsonSerializable<ComputeVmInstanceViewStatus>
Status information about a virtual machine.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeVmInstanceViewStatus class. -
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: Gets the status Code.Get the displayStatus property: Gets the short localizable label for the status.static ComputeVmInstanceViewStatus
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeVmInstanceViewStatus from the JsonReader.message()
Get the message property: Gets the message associated with the status.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the code property: Gets the status Code.withDisplayStatus
(String displayStatus) Set the displayStatus property: Gets the short localizable label for the status.withMessage
(String message) Set the message property: Gets the message associated with the status.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
-
Constructor Details
-
ComputeVmInstanceViewStatus
public ComputeVmInstanceViewStatus()Creates an instance of ComputeVmInstanceViewStatus class.
-
-
Method Details
-
code
Get the code property: Gets the status Code.- Returns:
- the code value.
-
withCode
Set the code property: Gets the status Code.- Parameters:
code
- the code value to set.- Returns:
- the ComputeVmInstanceViewStatus object itself.
-
displayStatus
Get the displayStatus property: Gets the short localizable label for the status.- Returns:
- the displayStatus value.
-
withDisplayStatus
Set the displayStatus property: Gets the short localizable label for the status.- Parameters:
displayStatus
- the displayStatus value to set.- Returns:
- the ComputeVmInstanceViewStatus object itself.
-
message
Get the message property: Gets the message associated with the status.- Returns:
- the message value.
-
withMessage
Set the message property: Gets the message associated with the status.- Parameters:
message
- the message value to set.- Returns:
- the ComputeVmInstanceViewStatus object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ComputeVmInstanceViewStatus>
- Throws:
IOException
-
fromJson
public static ComputeVmInstanceViewStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComputeVmInstanceViewStatus from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ComputeVmInstanceViewStatus 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 ComputeVmInstanceViewStatus.
-