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/GpuDeviceInfo.h>
50 template<
typename GpusT = Aws::Vector<GpuDeviceInfo>>
51 void SetGpus(GpusT&& value) { m_gpusHasBeenSet =
true; m_gpus = std::forward<GpusT>(value); }
52 template<
typename GpusT = Aws::Vector<GpuDeviceInfo>>
54 template<
typename GpusT = GpuDeviceInfo>
55 GpuInfo&
AddGpus(GpusT&& value) { m_gpusHasBeenSet =
true; m_gpus.emplace_back(std::forward<GpusT>(value));
return *
this; }
65 inline void SetTotalGpuMemoryInMiB(
int value) { m_totalGpuMemoryInMiBHasBeenSet =
true; m_totalGpuMemoryInMiB = value; }
71 bool m_gpusHasBeenSet =
false;
73 int m_totalGpuMemoryInMiB{0};
74 bool m_totalGpuMemoryInMiBHasBeenSet =
false;
void SetGpus(GpusT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
GpuInfo & AddGpus(GpusT &&value)
AWS_EC2_API GpuInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool TotalGpuMemoryInMiBHasBeenSet() const
AWS_EC2_API GpuInfo()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
GpuInfo & WithTotalGpuMemoryInMiB(int value)
GpuInfo & WithGpus(GpusT &&value)
bool GpusHasBeenSet() const
void SetTotalGpuMemoryInMiB(int value)
const Aws::Vector< GpuDeviceInfo > & GetGpus() const
int GetTotalGpuMemoryInMiB() const
AWS_EC2_API GpuInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream