Class HardwareProfileUpdate


  • public final class HardwareProfileUpdate
    extends Object
    Defines the resource properties.
    • Constructor Detail

      • HardwareProfileUpdate

        public HardwareProfileUpdate()
    • Method Detail

      • memoryMB

        public Integer memoryMB()
        Get the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.
        Returns:
        the memoryMB value.
      • withMemoryMB

        public HardwareProfileUpdate withMemoryMB​(Integer memoryMB)
        Set the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.
        Parameters:
        memoryMB - the memoryMB value to set.
        Returns:
        the HardwareProfileUpdate object itself.
      • cpuCount

        public Integer cpuCount()
        Get the cpuCount property: Gets or sets the number of vCPUs for the vm.
        Returns:
        the cpuCount value.
      • withCpuCount

        public HardwareProfileUpdate withCpuCount​(Integer cpuCount)
        Set the cpuCount property: Gets or sets the number of vCPUs for the vm.
        Parameters:
        cpuCount - the cpuCount value to set.
        Returns:
        the HardwareProfileUpdate object itself.
      • limitCpuForMigration

        public LimitCpuForMigration limitCpuForMigration()
        Get the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
        Returns:
        the limitCpuForMigration value.
      • withLimitCpuForMigration

        public HardwareProfileUpdate withLimitCpuForMigration​(LimitCpuForMigration limitCpuForMigration)
        Set the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
        Parameters:
        limitCpuForMigration - the limitCpuForMigration value to set.
        Returns:
        the HardwareProfileUpdate object itself.
      • dynamicMemoryEnabled

        public DynamicMemoryEnabled dynamicMemoryEnabled()
        Get the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.
        Returns:
        the dynamicMemoryEnabled value.
      • withDynamicMemoryEnabled

        public HardwareProfileUpdate withDynamicMemoryEnabled​(DynamicMemoryEnabled dynamicMemoryEnabled)
        Set the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.
        Parameters:
        dynamicMemoryEnabled - the dynamicMemoryEnabled value to set.
        Returns:
        the HardwareProfileUpdate object itself.
      • dynamicMemoryMaxMB

        public Integer dynamicMemoryMaxMB()
        Get the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.
        Returns:
        the dynamicMemoryMaxMB value.
      • withDynamicMemoryMaxMB

        public HardwareProfileUpdate withDynamicMemoryMaxMB​(Integer dynamicMemoryMaxMB)
        Set the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.
        Parameters:
        dynamicMemoryMaxMB - the dynamicMemoryMaxMB value to set.
        Returns:
        the HardwareProfileUpdate object itself.
      • dynamicMemoryMinMB

        public Integer dynamicMemoryMinMB()
        Get the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.
        Returns:
        the dynamicMemoryMinMB value.
      • withDynamicMemoryMinMB

        public HardwareProfileUpdate withDynamicMemoryMinMB​(Integer dynamicMemoryMinMB)
        Set the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.
        Parameters:
        dynamicMemoryMinMB - the dynamicMemoryMinMB value to set.
        Returns:
        the HardwareProfileUpdate object itself.
      • validate

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