AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MediaAcceleratorInfo.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/MediaDeviceInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API MediaAcceleratorInfo();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::Vector<MediaDeviceInfo>& GetAccelerators() const{ return m_accelerators; }
49 inline bool AcceleratorsHasBeenSet() const { return m_acceleratorsHasBeenSet; }
50 inline void SetAccelerators(const Aws::Vector<MediaDeviceInfo>& value) { m_acceleratorsHasBeenSet = true; m_accelerators = value; }
51 inline void SetAccelerators(Aws::Vector<MediaDeviceInfo>&& value) { m_acceleratorsHasBeenSet = true; m_accelerators = std::move(value); }
53 inline MediaAcceleratorInfo& WithAccelerators(Aws::Vector<MediaDeviceInfo>&& value) { SetAccelerators(std::move(value)); return *this;}
54 inline MediaAcceleratorInfo& AddAccelerators(const MediaDeviceInfo& value) { m_acceleratorsHasBeenSet = true; m_accelerators.push_back(value); return *this; }
55 inline MediaAcceleratorInfo& AddAccelerators(MediaDeviceInfo&& value) { m_acceleratorsHasBeenSet = true; m_accelerators.push_back(std::move(value)); return *this; }
57
59
63 inline int GetTotalMediaMemoryInMiB() const{ return m_totalMediaMemoryInMiB; }
64 inline bool TotalMediaMemoryInMiBHasBeenSet() const { return m_totalMediaMemoryInMiBHasBeenSet; }
65 inline void SetTotalMediaMemoryInMiB(int value) { m_totalMediaMemoryInMiBHasBeenSet = true; m_totalMediaMemoryInMiB = value; }
68 private:
69
70 Aws::Vector<MediaDeviceInfo> m_accelerators;
71 bool m_acceleratorsHasBeenSet = false;
72
73 int m_totalMediaMemoryInMiB;
74 bool m_totalMediaMemoryInMiBHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
MediaAcceleratorInfo & WithTotalMediaMemoryInMiB(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API MediaAcceleratorInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MediaAcceleratorInfo & WithAccelerators(const Aws::Vector< MediaDeviceInfo > &value)
void SetAccelerators(const Aws::Vector< MediaDeviceInfo > &value)
MediaAcceleratorInfo & AddAccelerators(const MediaDeviceInfo &value)
AWS_EC2_API MediaAcceleratorInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
MediaAcceleratorInfo & WithAccelerators(Aws::Vector< MediaDeviceInfo > &&value)
MediaAcceleratorInfo & AddAccelerators(MediaDeviceInfo &&value)
void SetAccelerators(Aws::Vector< MediaDeviceInfo > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< MediaDeviceInfo > & GetAccelerators() const
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream