AWS SDK for C++  1.9.67
AWS SDK for C++
FpgaInfo.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::Vector<FpgaDeviceInfo>& GetFpgas() const{ return m_fpgas; }
47 
51  inline bool FpgasHasBeenSet() const { return m_fpgasHasBeenSet; }
52 
56  inline void SetFpgas(const Aws::Vector<FpgaDeviceInfo>& value) { m_fpgasHasBeenSet = true; m_fpgas = value; }
57 
61  inline void SetFpgas(Aws::Vector<FpgaDeviceInfo>&& value) { m_fpgasHasBeenSet = true; m_fpgas = std::move(value); }
62 
66  inline FpgaInfo& WithFpgas(const Aws::Vector<FpgaDeviceInfo>& value) { SetFpgas(value); return *this;}
67 
71  inline FpgaInfo& WithFpgas(Aws::Vector<FpgaDeviceInfo>&& value) { SetFpgas(std::move(value)); return *this;}
72 
76  inline FpgaInfo& AddFpgas(const FpgaDeviceInfo& value) { m_fpgasHasBeenSet = true; m_fpgas.push_back(value); return *this; }
77 
81  inline FpgaInfo& AddFpgas(FpgaDeviceInfo&& value) { m_fpgasHasBeenSet = true; m_fpgas.push_back(std::move(value)); return *this; }
82 
83 
87  inline int GetTotalFpgaMemoryInMiB() const{ return m_totalFpgaMemoryInMiB; }
88 
92  inline bool TotalFpgaMemoryInMiBHasBeenSet() const { return m_totalFpgaMemoryInMiBHasBeenSet; }
93 
97  inline void SetTotalFpgaMemoryInMiB(int value) { m_totalFpgaMemoryInMiBHasBeenSet = true; m_totalFpgaMemoryInMiB = value; }
98 
102  inline FpgaInfo& WithTotalFpgaMemoryInMiB(int value) { SetTotalFpgaMemoryInMiB(value); return *this;}
103 
104  private:
105 
107  bool m_fpgasHasBeenSet;
108 
109  int m_totalFpgaMemoryInMiB;
110  bool m_totalFpgaMemoryInMiBHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
Aws::EC2::Model::FpgaInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::FpgaInfo::GetFpgas
const Aws::Vector< FpgaDeviceInfo > & GetFpgas() const
Definition: FpgaInfo.h:46
Aws::EC2::Model::FpgaInfo::SetFpgas
void SetFpgas(Aws::Vector< FpgaDeviceInfo > &&value)
Definition: FpgaInfo.h:61
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::FpgaInfo::WithTotalFpgaMemoryInMiB
FpgaInfo & WithTotalFpgaMemoryInMiB(int value)
Definition: FpgaInfo.h:102
Aws::EC2::Model::FpgaInfo::GetTotalFpgaMemoryInMiB
int GetTotalFpgaMemoryInMiB() const
Definition: FpgaInfo.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::FpgaInfo
Definition: FpgaInfo.h:33
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::FpgaDeviceInfo
Definition: FpgaDeviceInfo.h:34
Aws::EC2::Model::FpgaInfo::FpgaInfo
FpgaInfo()
Aws::EC2::Model::FpgaInfo::FpgasHasBeenSet
bool FpgasHasBeenSet() const
Definition: FpgaInfo.h:51
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::FpgaInfo::operator=
FpgaInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FpgaInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::FpgaInfo::FpgaInfo
FpgaInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::FpgaInfo::AddFpgas
FpgaInfo & AddFpgas(const FpgaDeviceInfo &value)
Definition: FpgaInfo.h:76
Aws::EC2::Model::FpgaInfo::SetTotalFpgaMemoryInMiB
void SetTotalFpgaMemoryInMiB(int value)
Definition: FpgaInfo.h:97
Aws::EC2::Model::FpgaInfo::WithFpgas
FpgaInfo & WithFpgas(const Aws::Vector< FpgaDeviceInfo > &value)
Definition: FpgaInfo.h:66
Aws
Definition: AccessManagementClient.h:15
FpgaDeviceInfo.h
Aws::EC2::Model::FpgaInfo::AddFpgas
FpgaInfo & AddFpgas(FpgaDeviceInfo &&value)
Definition: FpgaInfo.h:81
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::FpgaInfo::TotalFpgaMemoryInMiBHasBeenSet
bool TotalFpgaMemoryInMiBHasBeenSet() const
Definition: FpgaInfo.h:92
Aws::EC2::Model::FpgaInfo::SetFpgas
void SetFpgas(const Aws::Vector< FpgaDeviceInfo > &value)
Definition: FpgaInfo.h:56
Aws::EC2::Model::FpgaInfo::WithFpgas
FpgaInfo & WithFpgas(Aws::Vector< FpgaDeviceInfo > &&value)
Definition: FpgaInfo.h:71
EC2_EXPORTS.h