Partager via


ResourceInstanceViewStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ResourceInstanceViewStatus

Implements

public final class ResourceInstanceViewStatus
implements JsonSerializable<ResourceInstanceViewStatus>

Instance view status.

Constructor Summary

Constructor Description
ResourceInstanceViewStatus()

Creates an instance of ResourceInstanceViewStatus class.

Method Summary

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.

static ResourceInstanceViewStatus fromJson(JsonReader jsonReader)

Reads an instance of ResourceInstanceViewStatus from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceInstanceViewStatus 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:

the code value.

displayStatus

public String displayStatus()

Get the displayStatus property: The short localizable label for the status.

Returns:

the displayStatus value.

fromJson

public static ResourceInstanceViewStatus fromJson(JsonReader jsonReader)

Reads an instance of ResourceInstanceViewStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResourceInstanceViewStatus if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ResourceInstanceViewStatus.

level

public StatusLevelTypes level()

Get the level property: The level code.

Returns:

the level 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to