RollbackStatusInfo Class

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

Implements

public final class RollbackStatusInfo
implements JsonSerializable<RollbackStatusInfo>

Information about rollback on failed VM instances after a OS Upgrade operation.

Method Summary

Modifier and Type Method and Description
Integer failedRolledbackInstanceCount()

Get the failedRolledbackInstanceCount property: The number of instances which failed to rollback.

static RollbackStatusInfo fromJson(JsonReader jsonReader)

Reads an instance of RollbackStatusInfo from the JsonReader.

ApiError rollbackError()

Get the rollbackError property: Error details if OS rollback failed.

Integer successfullyRolledbackInstanceCount()

Get the successfullyRolledbackInstanceCount property: The number of instances which have been successfully rolled back.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

failedRolledbackInstanceCount

public Integer failedRolledbackInstanceCount()

Get the failedRolledbackInstanceCount property: The number of instances which failed to rollback.

Returns:

the failedRolledbackInstanceCount value.

fromJson

public static RollbackStatusInfo fromJson(JsonReader jsonReader)

Reads an instance of RollbackStatusInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

rollbackError

public ApiError rollbackError()

Get the rollbackError property: Error details if OS rollback failed.

Returns:

the rollbackError value.

successfullyRolledbackInstanceCount

public Integer successfullyRolledbackInstanceCount()

Get the successfullyRolledbackInstanceCount property: The number of instances which have been successfully rolled back.

Returns:

the successfullyRolledbackInstanceCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to