Class VirtualMachineTemplateInventoryItem

java.lang.Object
com.azure.resourcemanager.connectedvmware.fluent.models.InventoryItemProperties
com.azure.resourcemanager.connectedvmware.models.VirtualMachineTemplateInventoryItem

public final class VirtualMachineTemplateInventoryItem extends InventoryItemProperties
The VM Template inventory item.
  • Constructor Details

    • VirtualMachineTemplateInventoryItem

      public VirtualMachineTemplateInventoryItem()
  • Method Details

    • memorySizeMB

      public Integer memorySizeMB()
      Get the memorySizeMB property: Gets or sets memory size in MBs for the template.
      Returns:
      the memorySizeMB value.
    • withMemorySizeMB

      public VirtualMachineTemplateInventoryItem withMemorySizeMB(Integer memorySizeMB)
      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

      public Integer numCPUs()
      Get the numCPUs property: Gets or sets the number of vCPUs for the template.
      Returns:
      the numCPUs value.
    • withNumCPUs

      public VirtualMachineTemplateInventoryItem withNumCPUs(Integer numCPUs)
      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

      public Integer 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

      public VirtualMachineTemplateInventoryItem withNumCoresPerSocket(Integer numCoresPerSocket)
      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

      public OsType osType()
      Get the osType property: Gets or sets the type of the os.
      Returns:
      the osType value.
    • withOsType

      public VirtualMachineTemplateInventoryItem withOsType(OsType osType)
      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

      public String osName()
      Get the osName property: Gets or sets os name.
      Returns:
      the osName value.
    • withOsName

      public VirtualMachineTemplateInventoryItem withOsName(String osName)
      Set the osName property: Gets or sets os name.
      Parameters:
      osName - the osName value to set.
      Returns:
      the VirtualMachineTemplateInventoryItem object itself.
    • folderPath

      public String folderPath()
      Get the folderPath property: Gets or sets the folder path of the template.
      Returns:
      the folderPath value.
    • withFolderPath

      public VirtualMachineTemplateInventoryItem withFolderPath(String folderPath)
      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

      public VirtualMachineTemplateInventoryItem withManagedResourceId(String managedResourceId)
      Set the managedResourceId property: Gets or sets the tracked resource id corresponding to the inventory resource.
      Overrides:
      withManagedResourceId in class InventoryItemProperties
      Parameters:
      managedResourceId - the managedResourceId value to set.
      Returns:
      the InventoryItemProperties object itself.
    • withMoRefId

      public VirtualMachineTemplateInventoryItem withMoRefId(String moRefId)
      Set the moRefId property: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
      Overrides:
      withMoRefId in class InventoryItemProperties
      Parameters:
      moRefId - the moRefId value to set.
      Returns:
      the InventoryItemProperties object itself.
    • withMoName

      public VirtualMachineTemplateInventoryItem withMoName(String moName)
      Set the moName property: Gets or sets the vCenter Managed Object name for the inventory item.
      Overrides:
      withMoName in class InventoryItemProperties
      Parameters:
      moName - the moName value to set.
      Returns:
      the InventoryItemProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class InventoryItemProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.