Share via


VirtualMachineInfo Class

  • java.lang.Object
    • com.azure.compute.batch.models.VirtualMachineInfo

Implements

public final class VirtualMachineInfo
implements JsonSerializable<VirtualMachineInfo>

Info about the current state of the virtual machine.

Method Summary

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

Reads an instance of VirtualMachineInfo from the JsonReader.

BatchVmImageReference getImageReference()

Get the imageReference property: The reference to the Azure Virtual Machine's Marketplace Image.

String getScaleSetVmResourceId()

Get the scaleSetVmResourceId property: The resource ID of the Compute Node's current Virtual Machine Scale Set VM.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static VirtualMachineInfo fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getImageReference

public BatchVmImageReference getImageReference()

Get the imageReference property: The reference to the Azure Virtual Machine's Marketplace Image.

Returns:

the imageReference value.

getScaleSetVmResourceId

public String getScaleSetVmResourceId()

Get the scaleSetVmResourceId property: The resource ID of the Compute Node's current Virtual Machine Scale Set VM. Only defined if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'.

Returns:

the scaleSetVmResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to