Class ComputeVmInstanceViewStatus
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeVmInstanceViewStatus
Status information about a virtual machine.
-
Constructor Summary
ConstructorDescriptionCreates 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.message()
Get the message property: Gets the message associated with the status.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.
-
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.
-