/**
 * 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 <aws/ec2/model/MediaDeviceInfo.h>
#include <utility>

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

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

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


    ///@{
    /**
     * <p>Describes the media accelerators for the instance type.</p>
     */
    inline const Aws::Vector<MediaDeviceInfo>& GetAccelerators() const{ return m_accelerators; }
    inline bool AcceleratorsHasBeenSet() const { return m_acceleratorsHasBeenSet; }
    inline void SetAccelerators(const Aws::Vector<MediaDeviceInfo>& value) { m_acceleratorsHasBeenSet = true; m_accelerators = value; }
    inline void SetAccelerators(Aws::Vector<MediaDeviceInfo>&& value) { m_acceleratorsHasBeenSet = true; m_accelerators = std::move(value); }
    inline MediaAcceleratorInfo& WithAccelerators(const Aws::Vector<MediaDeviceInfo>& value) { SetAccelerators(value); return *this;}
    inline MediaAcceleratorInfo& WithAccelerators(Aws::Vector<MediaDeviceInfo>&& value) { SetAccelerators(std::move(value)); return *this;}
    inline MediaAcceleratorInfo& AddAccelerators(const MediaDeviceInfo& value) { m_acceleratorsHasBeenSet = true; m_accelerators.push_back(value); return *this; }
    inline MediaAcceleratorInfo& AddAccelerators(MediaDeviceInfo&& value) { m_acceleratorsHasBeenSet = true; m_accelerators.push_back(std::move(value)); return *this; }
    ///@}

    ///@{
    /**
     * <p>The total size of the memory for the media accelerators for the instance
     * type, in MiB.</p>
     */
    inline int GetTotalMediaMemoryInMiB() const{ return m_totalMediaMemoryInMiB; }
    inline bool TotalMediaMemoryInMiBHasBeenSet() const { return m_totalMediaMemoryInMiBHasBeenSet; }
    inline void SetTotalMediaMemoryInMiB(int value) { m_totalMediaMemoryInMiBHasBeenSet = true; m_totalMediaMemoryInMiB = value; }
    inline MediaAcceleratorInfo& WithTotalMediaMemoryInMiB(int value) { SetTotalMediaMemoryInMiB(value); return *this;}
    ///@}
  private:

    Aws::Vector<MediaDeviceInfo> m_accelerators;
    bool m_acceleratorsHasBeenSet = false;

    int m_totalMediaMemoryInMiB;
    bool m_totalMediaMemoryInMiBHasBeenSet = false;
  };

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