Freigeben über


InstanceViewStatus Class

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

Implements

public final class InstanceViewStatus
implements JsonSerializable<InstanceViewStatus>

Instance view status.

Constructor Summary

Constructor Description
InstanceViewStatus()

Creates an instance of InstanceViewStatus 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 InstanceViewStatus fromJson(JsonReader jsonReader)

Reads an instance of InstanceViewStatus 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.

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.

Methods inherited from java.lang.Object

Constructor Details

InstanceViewStatus

public InstanceViewStatus()

Creates an instance of InstanceViewStatus 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 InstanceViewStatus fromJson(JsonReader jsonReader)

Reads an instance of InstanceViewStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InstanceViewStatus 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 InstanceViewStatus.

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.

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.

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.

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.

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.

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.

Applies to