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

#pragma once
#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/compute-optimizer/model/Gpu.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace ComputeOptimizer
{
namespace Model
{

  /**
   * <p> Describes the GPU accelerator settings for the instance type. </p><p><h3>See
   * Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GpuInfo">AWS
   * API Reference</a></p>
   */
  class GpuInfo
  {
  public:
    AWS_COMPUTEOPTIMIZER_API GpuInfo();
    AWS_COMPUTEOPTIMIZER_API GpuInfo(Aws::Utils::Json::JsonView jsonValue);
    AWS_COMPUTEOPTIMIZER_API GpuInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p> Describes the GPU accelerators for the instance type. </p>
     */
    inline const Aws::Vector<Gpu>& GetGpus() const{ return m_gpus; }
    inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; }
    inline void SetGpus(const Aws::Vector<Gpu>& value) { m_gpusHasBeenSet = true; m_gpus = value; }
    inline void SetGpus(Aws::Vector<Gpu>&& value) { m_gpusHasBeenSet = true; m_gpus = std::move(value); }
    inline GpuInfo& WithGpus(const Aws::Vector<Gpu>& value) { SetGpus(value); return *this;}
    inline GpuInfo& WithGpus(Aws::Vector<Gpu>&& value) { SetGpus(std::move(value)); return *this;}
    inline GpuInfo& AddGpus(const Gpu& value) { m_gpusHasBeenSet = true; m_gpus.push_back(value); return *this; }
    inline GpuInfo& AddGpus(Gpu&& value) { m_gpusHasBeenSet = true; m_gpus.push_back(std::move(value)); return *this; }
    ///@}
  private:

    Aws::Vector<Gpu> m_gpus;
    bool m_gpusHasBeenSet = false;
  };

} // namespace Model
} // namespace ComputeOptimizer
} // namespace Aws
