Class ResourceInstanceViewStatus
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.ResourceInstanceViewStatus
-
public final class ResourceInstanceViewStatus extends Object
Instance view status.
-
-
Constructor Summary
Constructors Constructor Description ResourceInstanceViewStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode()Get the code property: The status code.StringdisplayStatus()Get the displayStatus property: The short localizable label for the status.StatusLevelTypeslevel()Get the level property: The level code.Stringmessage()Get the message property: The detailed status message, including for alerts and error messages.OffsetDateTimetime()Get the time property: The time of the status.voidvalidate()Validates the instance.ResourceInstanceViewStatuswithLevel(StatusLevelTypes level)Set the level property: The level code.
-
-
-
Method Detail
-
code
public String code()
Get the code property: The status code.- Returns:
- the code value.
-
displayStatus
public String displayStatus()
Get the displayStatus property: The short localizable label for the status.- Returns:
- the displayStatus value.
-
message
public String message()
Get the message property: The detailed status message, including for alerts and error messages.- Returns:
- the message value.
-
time
public OffsetDateTime time()
Get the time property: The time of the status.- Returns:
- the time value.
-
level
public StatusLevelTypes level()
Get the level property: The level code.- Returns:
- the level value.
-
withLevel
public ResourceInstanceViewStatus withLevel(StatusLevelTypes level)
Set the level property: The level code.- Parameters:
level- the level value to set.- Returns:
- the ResourceInstanceViewStatus object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-