Class VirtualMachineTemplateInventoryItem
java.lang.Object
com.azure.resourcemanager.connectedvmware.fluent.models.InventoryItemProperties
com.azure.resourcemanager.connectedvmware.models.VirtualMachineTemplateInventoryItem
The VM Template inventory item.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the folderPath property: Gets or sets the folder path of the template.Get the memorySizeMB property: Gets or sets memory size in MBs for the template.Get the numCoresPerSocket property: Gets or sets the number of cores per socket for the template.numCPUs()
Get the numCPUs property: Gets or sets the number of vCPUs for the template.osName()
Get the osName property: Gets or sets os name.osType()
Get the osType property: Gets or sets the type of the os.void
validate()
Validates the instance.withFolderPath
(String folderPath) Set the folderPath property: Gets or sets the folder path of the template.withManagedResourceId
(String managedResourceId) Set the managedResourceId property: Gets or sets the tracked resource id corresponding to the inventory resource.withMemorySizeMB
(Integer memorySizeMB) Set the memorySizeMB property: Gets or sets memory size in MBs for the template.withMoName
(String moName) Set the moName property: Gets or sets the vCenter Managed Object name for the inventory item.withMoRefId
(String moRefId) Set the moRefId property: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.withNumCoresPerSocket
(Integer numCoresPerSocket) Set the numCoresPerSocket property: Gets or sets the number of cores per socket for the template.withNumCPUs
(Integer numCPUs) Set the numCPUs property: Gets or sets the number of vCPUs for the template.withOsName
(String osName) Set the osName property: Gets or sets os name.withOsType
(OsType osType) Set the osType property: Gets or sets the type of the os.Methods inherited from class com.azure.resourcemanager.connectedvmware.fluent.models.InventoryItemProperties
managedResourceId, moName, moRefId, provisioningState
-
Constructor Details
-
VirtualMachineTemplateInventoryItem
public VirtualMachineTemplateInventoryItem()
-
-
Method Details
-
memorySizeMB
Get the memorySizeMB property: Gets or sets memory size in MBs for the template.- Returns:
- the memorySizeMB value.
-
withMemorySizeMB
Set the memorySizeMB property: Gets or sets memory size in MBs for the template.- Parameters:
memorySizeMB
- the memorySizeMB value to set.- Returns:
- the VirtualMachineTemplateInventoryItem object itself.
-
numCPUs
Get the numCPUs property: Gets or sets the number of vCPUs for the template.- Returns:
- the numCPUs value.
-
withNumCPUs
Set the numCPUs property: Gets or sets the number of vCPUs for the template.- Parameters:
numCPUs
- the numCPUs value to set.- Returns:
- the VirtualMachineTemplateInventoryItem object itself.
-
numCoresPerSocket
Get the numCoresPerSocket property: Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified.- Returns:
- the numCoresPerSocket value.
-
withNumCoresPerSocket
Set the numCoresPerSocket property: Gets or sets the number of cores per socket for the template. Defaults to 1 if unspecified.- Parameters:
numCoresPerSocket
- the numCoresPerSocket value to set.- Returns:
- the VirtualMachineTemplateInventoryItem object itself.
-
osType
Get the osType property: Gets or sets the type of the os.- Returns:
- the osType value.
-
withOsType
Set the osType property: Gets or sets the type of the os.- Parameters:
osType
- the osType value to set.- Returns:
- the VirtualMachineTemplateInventoryItem object itself.
-
osName
Get the osName property: Gets or sets os name.- Returns:
- the osName value.
-
withOsName
Set the osName property: Gets or sets os name.- Parameters:
osName
- the osName value to set.- Returns:
- the VirtualMachineTemplateInventoryItem object itself.
-
folderPath
Get the folderPath property: Gets or sets the folder path of the template.- Returns:
- the folderPath value.
-
withFolderPath
Set the folderPath property: Gets or sets the folder path of the template.- Parameters:
folderPath
- the folderPath value to set.- Returns:
- the VirtualMachineTemplateInventoryItem object itself.
-
withManagedResourceId
Set the managedResourceId property: Gets or sets the tracked resource id corresponding to the inventory resource.- Overrides:
withManagedResourceId
in classInventoryItemProperties
- Parameters:
managedResourceId
- the managedResourceId value to set.- Returns:
- the InventoryItemProperties object itself.
-
withMoRefId
Set the moRefId property: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.- Overrides:
withMoRefId
in classInventoryItemProperties
- Parameters:
moRefId
- the moRefId value to set.- Returns:
- the InventoryItemProperties object itself.
-
withMoName
Set the moName property: Gets or sets the vCenter Managed Object name for the inventory item.- Overrides:
withMoName
in classInventoryItemProperties
- Parameters:
moName
- the moName value to set.- Returns:
- the InventoryItemProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classInventoryItemProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-