InstanceViewStatus Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. InstanceViewStatus
- com.
Implements
public final class InstanceViewStatus
implements JsonSerializable<InstanceViewStatus>
Instance view status.
Constructor Summary
Constructor | Description |
---|---|
InstanceViewStatus() |
Creates an instance of Instance |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: The status code. |
String |
displayStatus()
Get the display |
static
Instance |
fromJson(JsonReader jsonReader)
Reads an instance of Instance |
Status |
level()
Get the level property: The level code. |
String |
message()
Get the message property: The detailed status message, including for alerts and error messages. |
Offset |
time()
Get the time property: The time of the status. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Instance |
withCode(String code)
Set the code property: The status code. |
Instance |
withDisplayStatus(String displayStatus)
Set the display |
Instance |
withLevel(StatusLevelTypes level)
Set the level property: The level code. |
Instance |
withMessage(String message)
Set the message property: The detailed status message, including for alerts and error messages. |
Instance |
withTime(OffsetDateTime time)
Set the time property: The time of the status. |
Methods inherited from java.lang.Object
Constructor Details
InstanceViewStatus
public InstanceViewStatus()
Creates an instance of InstanceViewStatus class.
Method Details
code
public String code()
Get the code property: The status code.
Returns:
displayStatus
public String displayStatus()
Get the displayStatus property: The short localizable label for the status.
Returns:
fromJson
public static InstanceViewStatus fromJson(JsonReader jsonReader)
Reads an instance of InstanceViewStatus from the JsonReader.
Parameters:
Returns:
Throws:
level
public StatusLevelTypes level()
Get the level property: The level code.
Returns:
message
public String message()
Get the message property: The detailed status message, including for alerts and error messages.
Returns:
time
public OffsetDateTime time()
Get the time property: The time of the status.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public InstanceViewStatus withCode(String code)
Set the code property: The status code.
Parameters:
Returns:
withDisplayStatus
public InstanceViewStatus withDisplayStatus(String displayStatus)
Set the displayStatus property: The short localizable label for the status.
Parameters:
Returns:
withLevel
public InstanceViewStatus withLevel(StatusLevelTypes level)
Set the level property: The level code.
Parameters:
Returns:
withMessage
public InstanceViewStatus withMessage(String message)
Set the message property: The detailed status message, including for alerts and error messages.
Parameters:
Returns:
withTime
public InstanceViewStatus withTime(OffsetDateTime time)
Set the time property: The time of the status.
Parameters:
Returns:
Applies to
Azure SDK for Java