Partilhar via


VirtualMachineHealthStatus Class

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

Implements

public final class VirtualMachineHealthStatus
implements JsonSerializable<VirtualMachineHealthStatus>

The health status of the VM.

Constructor Summary

Constructor Description
VirtualMachineHealthStatus()

Creates an instance of VirtualMachineHealthStatus class.

Method Summary

Modifier and Type Method and Description
static VirtualMachineHealthStatus fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineHealthStatus from the JsonReader.

InstanceViewStatus status()

Get the status property: The health status information for the VM.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineHealthStatus

public VirtualMachineHealthStatus()

Creates an instance of VirtualMachineHealthStatus class.

Method Details

fromJson

public static VirtualMachineHealthStatus fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineHealthStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public InstanceViewStatus status()

Get the status property: The health status information for the VM.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to