Partager via


VirtualMachineStatusCodeCount Class

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

Implements

public final class VirtualMachineStatusCodeCount
implements JsonSerializable<VirtualMachineStatusCodeCount>

The status code and count of the virtual machine scale set instance view status summary.

Constructor Summary

Constructor Description
VirtualMachineStatusCodeCount()

Creates an instance of VirtualMachineStatusCodeCount class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The instance view status code.

Integer count()

Get the count property: The number of instances having a particular status code.

static VirtualMachineStatusCodeCount fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineStatusCodeCount from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineStatusCodeCount

public VirtualMachineStatusCodeCount()

Creates an instance of VirtualMachineStatusCodeCount class.

Method Details

code

public String code()

Get the code property: The instance view status code.

Returns:

the code value.

count

public Integer count()

Get the count property: The number of instances having a particular status code.

Returns:

the count value.

fromJson

public static VirtualMachineStatusCodeCount fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineStatusCodeCount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to