VirtualMachineInventoryItem Class

public final class VirtualMachineInventoryItem
extends InventoryItemProperties

The Virtual machine inventory item.

Constructor Summary

Constructor Description
VirtualMachineInventoryItem()

Creates an instance of VirtualMachineInventoryItem class.

Method Summary

Modifier and Type Method and Description
String biosGuid()

Get the biosGuid property: Gets the bios guid.

InventoryItemDetails cloud()

Get the cloud property: Cloud inventory resource details where the VM is present.

static VirtualMachineInventoryItem fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInventoryItem from the JsonReader.

String inventoryItemName()

Get the inventoryItemName property: Gets the Managed Object name in Vmm for the inventory item.

InventoryType inventoryType()

Get the inventoryType property: They inventory type.

List<String> ipAddresses()

Get the ipAddresses property: Gets or sets the nic ip addresses.

String managedMachineResourceId()

Get the managedMachineResourceId property: Gets the tracked resource id corresponding to the inventory resource.

String managedResourceId()

Get the managedResourceId property: Gets the tracked resource id corresponding to the inventory resource.

String osName()

Get the osName property: Gets os name.

OsType osType()

Get the osType property: Gets the type of the os.

String osVersion()

Get the osVersion property: Gets os version.

String powerState()

Get the powerState property: Gets the power state of the virtual machine.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String uuid()

Get the uuid property: Gets the UUID (which is assigned by Vmm) for the inventory item.

void validate()

Validates the instance.

VirtualMachineInventoryItem withCloud(InventoryItemDetails cloud)

Set the cloud property: Cloud inventory resource details where the VM is present.

VirtualMachineInventoryItem withIpAddresses(List<String> ipAddresses)

Set the ipAddresses property: Gets or sets the nic ip addresses.

Methods inherited from InventoryItemProperties

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineInventoryItem

public VirtualMachineInventoryItem()

Creates an instance of VirtualMachineInventoryItem class.

Method Details

biosGuid

public String biosGuid()

Get the biosGuid property: Gets the bios guid.

Returns:

the biosGuid value.

cloud

public InventoryItemDetails cloud()

Get the cloud property: Cloud inventory resource details where the VM is present.

Returns:

the cloud value.

fromJson

public static VirtualMachineInventoryItem fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInventoryItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inventoryItemName

public String inventoryItemName()

Get the inventoryItemName property: Gets the Managed Object name in Vmm for the inventory item.

Overrides:

VirtualMachineInventoryItem.inventoryItemName()

Returns:

the inventoryItemName value.

inventoryType

public InventoryType inventoryType()

Get the inventoryType property: They inventory type.

Overrides:

VirtualMachineInventoryItem.inventoryType()

Returns:

the inventoryType value.

ipAddresses

public List<String> ipAddresses()

Get the ipAddresses property: Gets or sets the nic ip addresses.

Returns:

the ipAddresses value.

managedMachineResourceId

public String managedMachineResourceId()

Get the managedMachineResourceId property: Gets the tracked resource id corresponding to the inventory resource.

Returns:

the managedMachineResourceId value.

managedResourceId

public String managedResourceId()

Get the managedResourceId property: Gets the tracked resource id corresponding to the inventory resource.

Overrides:

VirtualMachineInventoryItem.managedResourceId()

Returns:

the managedResourceId value.

osName

public String osName()

Get the osName property: Gets os name.

Returns:

the osName value.

osType

public OsType osType()

Get the osType property: Gets the type of the os.

Returns:

the osType value.

osVersion

public String osVersion()

Get the osVersion property: Gets os version.

Returns:

the osVersion value.

powerState

public String powerState()

Get the powerState property: Gets the power state of the virtual machine.

Returns:

the powerState value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

VirtualMachineInventoryItem.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineInventoryItem.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uuid

public String uuid()

Get the uuid property: Gets the UUID (which is assigned by Vmm) for the inventory item.

Overrides:

VirtualMachineInventoryItem.uuid()

Returns:

the uuid value.

validate

public void validate()

Validates the instance.

Overrides:

VirtualMachineInventoryItem.validate()

withCloud

public VirtualMachineInventoryItem withCloud(InventoryItemDetails cloud)

Set the cloud property: Cloud inventory resource details where the VM is present.

Parameters:

cloud - the cloud value to set.

Returns:

the VirtualMachineInventoryItem object itself.

withIpAddresses

public VirtualMachineInventoryItem withIpAddresses(List<String> ipAddresses)

Set the ipAddresses property: Gets or sets the nic ip addresses.

Parameters:

ipAddresses - the ipAddresses value to set.

Returns:

the VirtualMachineInventoryItem object itself.

Applies to