VirtualMachineTemplateInventoryItem Class

public final class VirtualMachineTemplateInventoryItem
extends InventoryItemProperties

The Virtual machine template inventory item.

Constructor Summary

Constructor Description
VirtualMachineTemplateInventoryItem()

Creates an instance of VirtualMachineTemplateInventoryItem class.

Method Summary

Modifier and Type Method and Description
Integer cpuCount()

Get the cpuCount property: Gets the desired number of vCPUs for the vm.

static VirtualMachineTemplateInventoryItem fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineTemplateInventoryItem 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.

String managedResourceId()

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

Integer memoryMB()

Get the memoryMB property: MemoryMB is the desired size of a virtual machine's memory, in MB.

String osName()

Get the osName property: Gets os name.

OsType osType()

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

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.

Methods inherited from InventoryItemProperties

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineTemplateInventoryItem

public VirtualMachineTemplateInventoryItem()

Creates an instance of VirtualMachineTemplateInventoryItem class.

Method Details

cpuCount

public Integer cpuCount()

Get the cpuCount property: Gets the desired number of vCPUs for the vm.

Returns:

the cpuCount value.

fromJson

public static VirtualMachineTemplateInventoryItem fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineTemplateInventoryItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

inventoryItemName

public String inventoryItemName()

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

Overrides:

VirtualMachineTemplateInventoryItem.inventoryItemName()

Returns:

the inventoryItemName value.

inventoryType

public InventoryType inventoryType()

Get the inventoryType property: They inventory type.

Overrides:

VirtualMachineTemplateInventoryItem.inventoryType()

Returns:

the inventoryType value.

managedResourceId

public String managedResourceId()

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

Overrides:

VirtualMachineTemplateInventoryItem.managedResourceId()

Returns:

the managedResourceId value.

memoryMB

public Integer memoryMB()

Get the memoryMB property: MemoryMB is the desired size of a virtual machine's memory, in MB.

Returns:

the memoryMB 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.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

VirtualMachineTemplateInventoryItem.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineTemplateInventoryItem.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:

VirtualMachineTemplateInventoryItem.uuid()

Returns:

the uuid value.

validate

public void validate()

Validates the instance.

Overrides:

VirtualMachineTemplateInventoryItem.validate()

Applies to