ResourceInstanceViewStatus Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ResourceInstanceViewStatus
- com.
Implements
public final class ResourceInstanceViewStatus
implements JsonSerializable<ResourceInstanceViewStatus>
Instance view status.
Constructor Summary
Constructor | Description |
---|---|
ResourceInstanceViewStatus() |
Creates an instance of Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: The status code. |
String |
displayStatus()
Get the display |
static
Resource |
fromJson(JsonReader jsonReader)
Reads an instance of Resource |
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. |
Resource |
withLevel(StatusLevelTypes level)
Set the level property: The level code. |
Methods inherited from java.lang.Object
Constructor Details
ResourceInstanceViewStatus
public ResourceInstanceViewStatus()
Creates an instance of ResourceInstanceViewStatus 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 ResourceInstanceViewStatus fromJson(JsonReader jsonReader)
Reads an instance of ResourceInstanceViewStatus 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.
withLevel
public ResourceInstanceViewStatus withLevel(StatusLevelTypes level)
Set the level property: The level code.
Parameters:
Returns:
Applies to
Azure SDK for Java