public final class InstanceViewStatus extends Object
Constructor and Description |
---|
InstanceViewStatus() |
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: The status code.
|
String |
displayStatus()
Get the displayStatus property: The short localizable label for the status.
|
StatusLevelTypes |
level()
Get the level property: The level code.
|
String |
message()
Get the message property: The detailed status message, including for alerts and error messages.
|
OffsetDateTime |
time()
Get the time property: The time of the status.
|
void |
validate()
Validates the instance.
|
InstanceViewStatus |
withCode(String code)
Set the code property: The status code.
|
InstanceViewStatus |
withDisplayStatus(String displayStatus)
Set the displayStatus property: The short localizable label for the status.
|
InstanceViewStatus |
withLevel(StatusLevelTypes level)
Set the level property: The level code.
|
InstanceViewStatus |
withMessage(String message)
Set the message property: The detailed status message, including for alerts and error messages.
|
InstanceViewStatus |
withTime(OffsetDateTime time)
Set the time property: The time of the status.
|
public String code()
public InstanceViewStatus withCode(String code)
code
- the code value to set.public StatusLevelTypes level()
public InstanceViewStatus withLevel(StatusLevelTypes level)
level
- the level value to set.public String displayStatus()
public InstanceViewStatus withDisplayStatus(String displayStatus)
displayStatus
- the displayStatus value to set.public String message()
public InstanceViewStatus withMessage(String message)
message
- the message value to set.public OffsetDateTime time()
public InstanceViewStatus withTime(OffsetDateTime time)
time
- the time value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.