AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FpgaInfo.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/FpgaDeviceInfo.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
33 {
34 public:
35 AWS_EC2_API FpgaInfo();
36 AWS_EC2_API FpgaInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API FpgaInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::Vector<FpgaDeviceInfo>& GetFpgas() const{ return m_fpgas; }
48 inline bool FpgasHasBeenSet() const { return m_fpgasHasBeenSet; }
49 inline void SetFpgas(const Aws::Vector<FpgaDeviceInfo>& value) { m_fpgasHasBeenSet = true; m_fpgas = value; }
50 inline void SetFpgas(Aws::Vector<FpgaDeviceInfo>&& value) { m_fpgasHasBeenSet = true; m_fpgas = std::move(value); }
51 inline FpgaInfo& WithFpgas(const Aws::Vector<FpgaDeviceInfo>& value) { SetFpgas(value); return *this;}
52 inline FpgaInfo& WithFpgas(Aws::Vector<FpgaDeviceInfo>&& value) { SetFpgas(std::move(value)); return *this;}
53 inline FpgaInfo& AddFpgas(const FpgaDeviceInfo& value) { m_fpgasHasBeenSet = true; m_fpgas.push_back(value); return *this; }
54 inline FpgaInfo& AddFpgas(FpgaDeviceInfo&& value) { m_fpgasHasBeenSet = true; m_fpgas.push_back(std::move(value)); return *this; }
56
58
61 inline int GetTotalFpgaMemoryInMiB() const{ return m_totalFpgaMemoryInMiB; }
62 inline bool TotalFpgaMemoryInMiBHasBeenSet() const { return m_totalFpgaMemoryInMiBHasBeenSet; }
63 inline void SetTotalFpgaMemoryInMiB(int value) { m_totalFpgaMemoryInMiBHasBeenSet = true; m_totalFpgaMemoryInMiB = value; }
64 inline FpgaInfo& WithTotalFpgaMemoryInMiB(int value) { SetTotalFpgaMemoryInMiB(value); return *this;}
66 private:
67
69 bool m_fpgasHasBeenSet = false;
70
71 int m_totalFpgaMemoryInMiB;
72 bool m_totalFpgaMemoryInMiBHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace EC2
77} // namespace Aws
AWS_EC2_API FpgaInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool FpgasHasBeenSet() const
Definition FpgaInfo.h:48
FpgaInfo & WithTotalFpgaMemoryInMiB(int value)
Definition FpgaInfo.h:64
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
FpgaInfo & WithFpgas(Aws::Vector< FpgaDeviceInfo > &&value)
Definition FpgaInfo.h:52
const Aws::Vector< FpgaDeviceInfo > & GetFpgas() const
Definition FpgaInfo.h:47
bool TotalFpgaMemoryInMiBHasBeenSet() const
Definition FpgaInfo.h:62
FpgaInfo & WithFpgas(const Aws::Vector< FpgaDeviceInfo > &value)
Definition FpgaInfo.h:51
void SetTotalFpgaMemoryInMiB(int value)
Definition FpgaInfo.h:63
AWS_EC2_API FpgaInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFpgas(const Aws::Vector< FpgaDeviceInfo > &value)
Definition FpgaInfo.h:49
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
FpgaInfo & AddFpgas(const FpgaDeviceInfo &value)
Definition FpgaInfo.h:53
int GetTotalFpgaMemoryInMiB() const
Definition FpgaInfo.h:61
void SetFpgas(Aws::Vector< FpgaDeviceInfo > &&value)
Definition FpgaInfo.h:50
FpgaInfo & AddFpgas(FpgaDeviceInfo &&value)
Definition FpgaInfo.h:54
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream