UpgradeOperationHistoryStatus Class

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

Implements

public final class UpgradeOperationHistoryStatus
implements JsonSerializable<UpgradeOperationHistoryStatus>

Information about the current running state of the overall upgrade.

Method Summary

Modifier and Type Method and Description
UpgradeState code()

Get the code property: Code indicating the current status of the upgrade.

OffsetDateTime endTime()

Get the endTime property: End time of the upgrade.

static UpgradeOperationHistoryStatus fromJson(JsonReader jsonReader)

Reads an instance of UpgradeOperationHistoryStatus from the JsonReader.

OffsetDateTime startTime()

Get the startTime property: Start time of the upgrade.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

code

public UpgradeState code()

Get the code property: Code indicating the current status of the upgrade.

Returns:

the code value.

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the upgrade.

Returns:

the endTime value.

fromJson

public static UpgradeOperationHistoryStatus fromJson(JsonReader jsonReader)

Reads an instance of UpgradeOperationHistoryStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the upgrade.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to