// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.scvmm.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Defines the resource properties. */
@Fluent
public final class HardwareProfileUpdate {
    /*
     * MemoryMB is the size of a virtual machine's memory, in MB.
     */
    @JsonProperty(value = "memoryMB")
    private Integer memoryMB;

    /*
     * Gets or sets the number of vCPUs for the vm.
     */
    @JsonProperty(value = "cpuCount")
    private Integer cpuCount;

    /*
     * Gets or sets a value indicating whether to enable processor
     * compatibility mode for live migration of VMs.
     */
    @JsonProperty(value = "limitCpuForMigration")
    private LimitCpuForMigration limitCpuForMigration;

    /*
     * Gets or sets a value indicating whether to enable dynamic memory or not.
     */
    @JsonProperty(value = "dynamicMemoryEnabled")
    private DynamicMemoryEnabled dynamicMemoryEnabled;

    /*
     * Gets or sets the max dynamic memory for the vm.
     */
    @JsonProperty(value = "dynamicMemoryMaxMB")
    private Integer dynamicMemoryMaxMB;

    /*
     * Gets or sets the min dynamic memory for the vm.
     */
    @JsonProperty(value = "dynamicMemoryMinMB")
    private Integer dynamicMemoryMinMB;

    /**
     * Get the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.
     *
     * @return the memoryMB value.
     */
    public Integer memoryMB() {
        return this.memoryMB;
    }

    /**
     * Set the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.
     *
     * @param memoryMB the memoryMB value to set.
     * @return the HardwareProfileUpdate object itself.
     */
    public HardwareProfileUpdate withMemoryMB(Integer memoryMB) {
        this.memoryMB = memoryMB;
        return this;
    }

    /**
     * Get the cpuCount property: Gets or sets the number of vCPUs for the vm.
     *
     * @return the cpuCount value.
     */
    public Integer cpuCount() {
        return this.cpuCount;
    }

    /**
     * Set the cpuCount property: Gets or sets the number of vCPUs for the vm.
     *
     * @param cpuCount the cpuCount value to set.
     * @return the HardwareProfileUpdate object itself.
     */
    public HardwareProfileUpdate withCpuCount(Integer cpuCount) {
        this.cpuCount = cpuCount;
        return this;
    }

    /**
     * Get the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility
     * mode for live migration of VMs.
     *
     * @return the limitCpuForMigration value.
     */
    public LimitCpuForMigration limitCpuForMigration() {
        return this.limitCpuForMigration;
    }

    /**
     * Set the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility
     * mode for live migration of VMs.
     *
     * @param limitCpuForMigration the limitCpuForMigration value to set.
     * @return the HardwareProfileUpdate object itself.
     */
    public HardwareProfileUpdate withLimitCpuForMigration(LimitCpuForMigration limitCpuForMigration) {
        this.limitCpuForMigration = limitCpuForMigration;
        return this;
    }

    /**
     * Get the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.
     *
     * @return the dynamicMemoryEnabled value.
     */
    public DynamicMemoryEnabled dynamicMemoryEnabled() {
        return this.dynamicMemoryEnabled;
    }

    /**
     * Set the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.
     *
     * @param dynamicMemoryEnabled the dynamicMemoryEnabled value to set.
     * @return the HardwareProfileUpdate object itself.
     */
    public HardwareProfileUpdate withDynamicMemoryEnabled(DynamicMemoryEnabled dynamicMemoryEnabled) {
        this.dynamicMemoryEnabled = dynamicMemoryEnabled;
        return this;
    }

    /**
     * Get the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.
     *
     * @return the dynamicMemoryMaxMB value.
     */
    public Integer dynamicMemoryMaxMB() {
        return this.dynamicMemoryMaxMB;
    }

    /**
     * Set the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.
     *
     * @param dynamicMemoryMaxMB the dynamicMemoryMaxMB value to set.
     * @return the HardwareProfileUpdate object itself.
     */
    public HardwareProfileUpdate withDynamicMemoryMaxMB(Integer dynamicMemoryMaxMB) {
        this.dynamicMemoryMaxMB = dynamicMemoryMaxMB;
        return this;
    }

    /**
     * Get the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.
     *
     * @return the dynamicMemoryMinMB value.
     */
    public Integer dynamicMemoryMinMB() {
        return this.dynamicMemoryMinMB;
    }

    /**
     * Set the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.
     *
     * @param dynamicMemoryMinMB the dynamicMemoryMinMB value to set.
     * @return the HardwareProfileUpdate object itself.
     */
    public HardwareProfileUpdate withDynamicMemoryMinMB(Integer dynamicMemoryMinMB) {
        this.dynamicMemoryMinMB = dynamicMemoryMinMB;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
