AWS SDK for C++  1.9.72
AWS SDK for C++
GpuInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Vector<GpuDeviceInfo>& GetGpus() const{ return m_gpus; }
48 
52  inline bool GpusHasBeenSet() const { return m_gpusHasBeenSet; }
53 
57  inline void SetGpus(const Aws::Vector<GpuDeviceInfo>& value) { m_gpusHasBeenSet = true; m_gpus = value; }
58 
62  inline void SetGpus(Aws::Vector<GpuDeviceInfo>&& value) { m_gpusHasBeenSet = true; m_gpus = std::move(value); }
63 
67  inline GpuInfo& WithGpus(const Aws::Vector<GpuDeviceInfo>& value) { SetGpus(value); return *this;}
68 
72  inline GpuInfo& WithGpus(Aws::Vector<GpuDeviceInfo>&& value) { SetGpus(std::move(value)); return *this;}
73 
77  inline GpuInfo& AddGpus(const GpuDeviceInfo& value) { m_gpusHasBeenSet = true; m_gpus.push_back(value); return *this; }
78 
82  inline GpuInfo& AddGpus(GpuDeviceInfo&& value) { m_gpusHasBeenSet = true; m_gpus.push_back(std::move(value)); return *this; }
83 
84 
89  inline int GetTotalGpuMemoryInMiB() const{ return m_totalGpuMemoryInMiB; }
90 
95  inline bool TotalGpuMemoryInMiBHasBeenSet() const { return m_totalGpuMemoryInMiBHasBeenSet; }
96 
101  inline void SetTotalGpuMemoryInMiB(int value) { m_totalGpuMemoryInMiBHasBeenSet = true; m_totalGpuMemoryInMiB = value; }
102 
107  inline GpuInfo& WithTotalGpuMemoryInMiB(int value) { SetTotalGpuMemoryInMiB(value); return *this;}
108 
109  private:
110 
112  bool m_gpusHasBeenSet;
113 
114  int m_totalGpuMemoryInMiB;
115  bool m_totalGpuMemoryInMiBHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace EC2
120 } // namespace Aws
GpuDeviceInfo.h
Aws::EC2::Model::GpuInfo::operator=
GpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::GpuInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::GpuInfo::GpuInfo
GpuInfo()
Aws::EC2::Model::GpuInfo::SetGpus
void SetGpus(const Aws::Vector< GpuDeviceInfo > &value)
Definition: GpuInfo.h:57
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::GpuInfo::WithGpus
GpuInfo & WithGpus(Aws::Vector< GpuDeviceInfo > &&value)
Definition: GpuInfo.h:72
Aws::EC2::Model::GpuInfo::WithTotalGpuMemoryInMiB
GpuInfo & WithTotalGpuMemoryInMiB(int value)
Definition: GpuInfo.h:107
Aws::EC2::Model::GpuInfo::GetGpus
const Aws::Vector< GpuDeviceInfo > & GetGpus() const
Definition: GpuInfo.h:47
Aws::EC2::Model::GpuDeviceInfo
Definition: GpuDeviceInfo.h:34
Aws::EC2::Model::GpuInfo::TotalGpuMemoryInMiBHasBeenSet
bool TotalGpuMemoryInMiBHasBeenSet() const
Definition: GpuInfo.h:95
Aws::EC2::Model::GpuInfo::AddGpus
GpuInfo & AddGpus(const GpuDeviceInfo &value)
Definition: GpuInfo.h:77
Aws::EC2::Model::GpuInfo::GetTotalGpuMemoryInMiB
int GetTotalGpuMemoryInMiB() const
Definition: GpuInfo.h:89
Aws::EC2::Model::GpuInfo::AddGpus
GpuInfo & AddGpus(GpuDeviceInfo &&value)
Definition: GpuInfo.h:82
Aws::EC2::Model::GpuInfo::SetTotalGpuMemoryInMiB
void SetTotalGpuMemoryInMiB(int value)
Definition: GpuInfo.h:101
Aws::EC2::Model::GpuInfo
Definition: GpuInfo.h:34
Aws::EC2::Model::GpuInfo::WithGpus
GpuInfo & WithGpus(const Aws::Vector< GpuDeviceInfo > &value)
Definition: GpuInfo.h:67
Aws::EC2::Model::GpuInfo::GpuInfo
GpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::GpuInfo::GpusHasBeenSet
bool GpusHasBeenSet() const
Definition: GpuInfo.h:52
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::GpuInfo::SetGpus
void SetGpus(Aws::Vector< GpuDeviceInfo > &&value)
Definition: GpuInfo.h:62
Aws::EC2::Model::GpuInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const