Partager via


RollingUpgradeProgressInfo Class

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

Implements

public final class RollingUpgradeProgressInfo
implements JsonSerializable<RollingUpgradeProgressInfo>

Information about the number of virtual machine instances in each upgrade state.

Constructor Summary

Constructor Description
RollingUpgradeProgressInfo()

Creates an instance of RollingUpgradeProgressInfo class.

Method Summary

Modifier and Type Method and Description
Integer failedInstanceCount()

Get the failedInstanceCount property: The number of instances that have failed to be upgraded successfully.

static RollingUpgradeProgressInfo fromJson(JsonReader jsonReader)

Reads an instance of RollingUpgradeProgressInfo from the JsonReader.

Integer inProgressInstanceCount()

Get the inProgressInstanceCount property: The number of instances that are currently being upgraded.

Integer pendingInstanceCount()

Get the pendingInstanceCount property: The number of instances that have not yet begun to be upgraded.

Integer successfulInstanceCount()

Get the successfulInstanceCount property: The number of instances that have been successfully upgraded.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

RollingUpgradeProgressInfo

public RollingUpgradeProgressInfo()

Creates an instance of RollingUpgradeProgressInfo class.

Method Details

failedInstanceCount

public Integer failedInstanceCount()

Get the failedInstanceCount property: The number of instances that have failed to be upgraded successfully.

Returns:

the failedInstanceCount value.

fromJson

public static RollingUpgradeProgressInfo fromJson(JsonReader jsonReader)

Reads an instance of RollingUpgradeProgressInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inProgressInstanceCount

public Integer inProgressInstanceCount()

Get the inProgressInstanceCount property: The number of instances that are currently being upgraded.

Returns:

the inProgressInstanceCount value.

pendingInstanceCount

public Integer pendingInstanceCount()

Get the pendingInstanceCount property: The number of instances that have not yet begun to be upgraded.

Returns:

the pendingInstanceCount value.

successfulInstanceCount

public Integer successfulInstanceCount()

Get the successfulInstanceCount property: The number of instances that have been successfully upgraded.

Returns:

the successfulInstanceCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to