Class InstanceViewStatus
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.InstanceViewStatus
-
public final class InstanceViewStatus extends Object
Instance view status.
-
-
Constructor Summary
Constructors Constructor Description InstanceViewStatus()
-
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.InstanceViewStatuswithCode(String code)Set the code property: The status code.InstanceViewStatuswithDisplayStatus(String displayStatus)Set the displayStatus property: The short localizable label for the status.InstanceViewStatuswithLevel(StatusLevelTypes level)Set the level property: The level code.InstanceViewStatuswithMessage(String message)Set the message property: The detailed status message, including for alerts and error messages.InstanceViewStatuswithTime(OffsetDateTime time)Set the time property: The time of the status.
-
-
-
Method Detail
-
code
public String code()
Get the code property: The status code.- Returns:
- the code value.
-
withCode
public InstanceViewStatus withCode(String code)
Set the code property: The status code.- Parameters:
code- the code value to set.- Returns:
- the InstanceViewStatus object itself.
-
level
public StatusLevelTypes level()
Get the level property: The level code.- Returns:
- the level value.
-
withLevel
public InstanceViewStatus withLevel(StatusLevelTypes level)
Set the level property: The level code.- Parameters:
level- the level value to set.- Returns:
- the InstanceViewStatus object itself.
-
displayStatus
public String displayStatus()
Get the displayStatus property: The short localizable label for the status.- Returns:
- the displayStatus value.
-
withDisplayStatus
public InstanceViewStatus withDisplayStatus(String displayStatus)
Set the displayStatus property: The short localizable label for the status.- Parameters:
displayStatus- the displayStatus value to set.- Returns:
- the InstanceViewStatus object itself.
-
message
public String message()
Get the message property: The detailed status message, including for alerts and error messages.- Returns:
- the message value.
-
withMessage
public InstanceViewStatus withMessage(String message)
Set the message property: The detailed status message, including for alerts and error messages.- Parameters:
message- the message value to set.- Returns:
- the InstanceViewStatus object itself.
-
time
public OffsetDateTime time()
Get the time property: The time of the status.- Returns:
- the time value.
-
withTime
public InstanceViewStatus withTime(OffsetDateTime time)
Set the time property: The time of the status.- Parameters:
time- the time value to set.- Returns:
- the InstanceViewStatus object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-