AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FpgaInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/FpgaDeviceInfo.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
28class FpgaInfo {
29 public:
30 AWS_EC2_API FpgaInfo() = default;
31 AWS_EC2_API FpgaInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API FpgaInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::Vector<FpgaDeviceInfo>& GetFpgas() const { return m_fpgas; }
42 inline bool FpgasHasBeenSet() const { return m_fpgasHasBeenSet; }
43 template <typename FpgasT = Aws::Vector<FpgaDeviceInfo>>
44 void SetFpgas(FpgasT&& value) {
45 m_fpgasHasBeenSet = true;
46 m_fpgas = std::forward<FpgasT>(value);
47 }
48 template <typename FpgasT = Aws::Vector<FpgaDeviceInfo>>
49 FpgaInfo& WithFpgas(FpgasT&& value) {
50 SetFpgas(std::forward<FpgasT>(value));
51 return *this;
52 }
53 template <typename FpgasT = FpgaDeviceInfo>
54 FpgaInfo& AddFpgas(FpgasT&& value) {
55 m_fpgasHasBeenSet = true;
56 m_fpgas.emplace_back(std::forward<FpgasT>(value));
57 return *this;
58 }
60
62
65 inline int GetTotalFpgaMemoryInMiB() const { return m_totalFpgaMemoryInMiB; }
66 inline bool TotalFpgaMemoryInMiBHasBeenSet() const { return m_totalFpgaMemoryInMiBHasBeenSet; }
67 inline void SetTotalFpgaMemoryInMiB(int value) {
68 m_totalFpgaMemoryInMiBHasBeenSet = true;
69 m_totalFpgaMemoryInMiB = value;
70 }
73 return *this;
74 }
76 private:
78
79 int m_totalFpgaMemoryInMiB{0};
80 bool m_fpgasHasBeenSet = false;
81 bool m_totalFpgaMemoryInMiBHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace EC2
86} // namespace Aws
AWS_EC2_API FpgaInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
bool FpgasHasBeenSet() const
Definition FpgaInfo.h:42
FpgaInfo & WithTotalFpgaMemoryInMiB(int value)
Definition FpgaInfo.h:71
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetFpgas(FpgasT &&value)
Definition FpgaInfo.h:44
const Aws::Vector< FpgaDeviceInfo > & GetFpgas() const
Definition FpgaInfo.h:41
bool TotalFpgaMemoryInMiBHasBeenSet() const
Definition FpgaInfo.h:66
FpgaInfo & AddFpgas(FpgasT &&value)
Definition FpgaInfo.h:54
void SetTotalFpgaMemoryInMiB(int value)
Definition FpgaInfo.h:67
AWS_EC2_API FpgaInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FpgaInfo & WithFpgas(FpgasT &&value)
Definition FpgaInfo.h:49
AWS_EC2_API FpgaInfo()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
int GetTotalFpgaMemoryInMiB() const
Definition FpgaInfo.h:65
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream