/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Xml
{
  class XmlNode;
} // namespace Xml
} // namespace Utils
namespace EC2
{
namespace Model
{

  /**
   * <p>Describes the vCPU configurations for the instance type.</p><p><h3>See
   * Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VCpuInfo">AWS API
   * Reference</a></p>
   */
  class AWS_EC2_API VCpuInfo
  {
  public:
    VCpuInfo();
    VCpuInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
    VCpuInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);

    void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
    void OutputToStream(Aws::OStream& oStream, const char* location) const;


    /**
     * <p>The default number of vCPUs for the instance type.</p>
     */
    inline int GetDefaultVCpus() const{ return m_defaultVCpus; }

    /**
     * <p>The default number of vCPUs for the instance type.</p>
     */
    inline bool DefaultVCpusHasBeenSet() const { return m_defaultVCpusHasBeenSet; }

    /**
     * <p>The default number of vCPUs for the instance type.</p>
     */
    inline void SetDefaultVCpus(int value) { m_defaultVCpusHasBeenSet = true; m_defaultVCpus = value; }

    /**
     * <p>The default number of vCPUs for the instance type.</p>
     */
    inline VCpuInfo& WithDefaultVCpus(int value) { SetDefaultVCpus(value); return *this;}


    /**
     * <p>The default number of cores for the instance type.</p>
     */
    inline int GetDefaultCores() const{ return m_defaultCores; }

    /**
     * <p>The default number of cores for the instance type.</p>
     */
    inline bool DefaultCoresHasBeenSet() const { return m_defaultCoresHasBeenSet; }

    /**
     * <p>The default number of cores for the instance type.</p>
     */
    inline void SetDefaultCores(int value) { m_defaultCoresHasBeenSet = true; m_defaultCores = value; }

    /**
     * <p>The default number of cores for the instance type.</p>
     */
    inline VCpuInfo& WithDefaultCores(int value) { SetDefaultCores(value); return *this;}


    /**
     * <p>The default number of threads per core for the instance type.</p>
     */
    inline int GetDefaultThreadsPerCore() const{ return m_defaultThreadsPerCore; }

    /**
     * <p>The default number of threads per core for the instance type.</p>
     */
    inline bool DefaultThreadsPerCoreHasBeenSet() const { return m_defaultThreadsPerCoreHasBeenSet; }

    /**
     * <p>The default number of threads per core for the instance type.</p>
     */
    inline void SetDefaultThreadsPerCore(int value) { m_defaultThreadsPerCoreHasBeenSet = true; m_defaultThreadsPerCore = value; }

    /**
     * <p>The default number of threads per core for the instance type.</p>
     */
    inline VCpuInfo& WithDefaultThreadsPerCore(int value) { SetDefaultThreadsPerCore(value); return *this;}


    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline const Aws::Vector<int>& GetValidCores() const{ return m_validCores; }

    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline bool ValidCoresHasBeenSet() const { return m_validCoresHasBeenSet; }

    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline void SetValidCores(const Aws::Vector<int>& value) { m_validCoresHasBeenSet = true; m_validCores = value; }

    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline void SetValidCores(Aws::Vector<int>&& value) { m_validCoresHasBeenSet = true; m_validCores = std::move(value); }

    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline VCpuInfo& WithValidCores(const Aws::Vector<int>& value) { SetValidCores(value); return *this;}

    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline VCpuInfo& WithValidCores(Aws::Vector<int>&& value) { SetValidCores(std::move(value)); return *this;}

    /**
     * <p>List of the valid number of cores that can be configured for the instance
     * type.</p>
     */
    inline VCpuInfo& AddValidCores(int value) { m_validCoresHasBeenSet = true; m_validCores.push_back(value); return *this; }


    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline const Aws::Vector<int>& GetValidThreadsPerCore() const{ return m_validThreadsPerCore; }

    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline bool ValidThreadsPerCoreHasBeenSet() const { return m_validThreadsPerCoreHasBeenSet; }

    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline void SetValidThreadsPerCore(const Aws::Vector<int>& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = value; }

    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline void SetValidThreadsPerCore(Aws::Vector<int>&& value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore = std::move(value); }

    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline VCpuInfo& WithValidThreadsPerCore(const Aws::Vector<int>& value) { SetValidThreadsPerCore(value); return *this;}

    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline VCpuInfo& WithValidThreadsPerCore(Aws::Vector<int>&& value) { SetValidThreadsPerCore(std::move(value)); return *this;}

    /**
     * <p>List of the valid number of threads per core that can be configured for the
     * instance type. </p>
     */
    inline VCpuInfo& AddValidThreadsPerCore(int value) { m_validThreadsPerCoreHasBeenSet = true; m_validThreadsPerCore.push_back(value); return *this; }

  private:

    int m_defaultVCpus;
    bool m_defaultVCpusHasBeenSet;

    int m_defaultCores;
    bool m_defaultCoresHasBeenSet;

    int m_defaultThreadsPerCore;
    bool m_defaultThreadsPerCoreHasBeenSet;

    Aws::Vector<int> m_validCores;
    bool m_validCoresHasBeenSet;

    Aws::Vector<int> m_validThreadsPerCore;
    bool m_validThreadsPerCoreHasBeenSet;
  };

} // namespace Model
} // namespace EC2
} // namespace Aws
