Class MachineExtensionInstanceViewStatus
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceViewStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MachineExtensionInstanceViewStatus>
public final class MachineExtensionInstanceViewStatus
extends Object
implements com.azure.json.JsonSerializable<MachineExtensionInstanceViewStatus>
Instance view status.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MachineExtensionInstanceViewStatus class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: The status code.Get the displayStatus property: The short localizable label for the status.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MachineExtensionInstanceViewStatus from the JsonReader.level()Get the level property: The level code.message()Get the message property: The detailed status message, including for alerts and error messages.time()Get the time property: The time of the status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the code property: The status code.withDisplayStatus(String displayStatus) Set the displayStatus property: The short localizable label for the status.withLevel(StatusLevelTypes level) Set the level property: The level code.withMessage(String message) Set the message property: The detailed status message, including for alerts and error messages.withTime(OffsetDateTime time) Set the time property: The time of the status.Methods inherited from class java.lang.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
-
MachineExtensionInstanceViewStatus
public MachineExtensionInstanceViewStatus()Creates an instance of MachineExtensionInstanceViewStatus class.
-
-
Method Details
-
code
Get the code property: The status code.- Returns:
- the code value.
-
withCode
Set the code property: The status code.- Parameters:
code- the code value to set.- Returns:
- the MachineExtensionInstanceViewStatus object itself.
-
level
Get the level property: The level code.- Returns:
- the level value.
-
withLevel
Set the level property: The level code.- Parameters:
level- the level value to set.- Returns:
- the MachineExtensionInstanceViewStatus object itself.
-
displayStatus
Get the displayStatus property: The short localizable label for the status.- Returns:
- the displayStatus value.
-
withDisplayStatus
Set the displayStatus property: The short localizable label for the status.- Parameters:
displayStatus- the displayStatus value to set.- Returns:
- the MachineExtensionInstanceViewStatus object itself.
-
message
Get the message property: The detailed status message, including for alerts and error messages.- Returns:
- the message value.
-
withMessage
Set the message property: The detailed status message, including for alerts and error messages.- Parameters:
message- the message value to set.- Returns:
- the MachineExtensionInstanceViewStatus object itself.
-
time
Get the time property: The time of the status.- Returns:
- the time value.
-
withTime
Set the time property: The time of the status.- Parameters:
time- the time value to set.- Returns:
- the MachineExtensionInstanceViewStatus 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<MachineExtensionInstanceViewStatus>- Throws:
IOException
-
fromJson
public static MachineExtensionInstanceViewStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MachineExtensionInstanceViewStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MachineExtensionInstanceViewStatus 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 MachineExtensionInstanceViewStatus.
-