Share via


VirtualMachineInner Class

public final class VirtualMachineInner
extends ProxyResource

A lab virtual machine resource.

Constructor Summary

Constructor Description
VirtualMachineInner()

Creates an instance of VirtualMachineInner class.

Method Summary

Modifier and Type Method and Description
String claimedByUserId()

Get the claimedByUserId property: The lab user ID (not the PUID!) of who claimed the virtual machine.

VirtualMachineConnectionProfile connectionProfile()

Get the connectionProfile property: Profile for information about connecting to the virtual machine.

static VirtualMachineInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Current provisioning state of the virtual machine.

VirtualMachineState state()

Get the state property: The current state of the virtual machine.

SystemData systemData()

Get the systemData property: System data of the Lab virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

VirtualMachineType vmType()

Get the vmType property: The type of this VM resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInner

public VirtualMachineInner()

Creates an instance of VirtualMachineInner class.

Method Details

claimedByUserId

public String claimedByUserId()

Get the claimedByUserId property: The lab user ID (not the PUID!) of who claimed the virtual machine.

Returns:

the claimedByUserId value.

connectionProfile

public VirtualMachineConnectionProfile connectionProfile()

Get the connectionProfile property: Profile for information about connecting to the virtual machine.

Returns:

the connectionProfile value.

fromJson

public static VirtualMachineInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

VirtualMachineInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualMachineInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Current provisioning state of the virtual machine.

Returns:

the provisioningState value.

state

public VirtualMachineState state()

Get the state property: The current state of the virtual machine.

Returns:

the state value.

systemData

public SystemData systemData()

Get the systemData property: System data of the Lab virtual machine.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualMachineInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

vmType

public VirtualMachineType vmType()

Get the vmType property: The type of this VM resource.

Returns:

the vmType value.

Applies to