7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/GpuDeviceMemoryInfo.h>
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
63 template <
typename ManufacturerT = Aws::String>
65 m_manufacturerHasBeenSet =
true;
66 m_manufacturer = std::forward<ManufacturerT>(value);
68 template <
typename ManufacturerT = Aws::String>
79 inline int GetCount()
const {
return m_count; }
82 m_countHasBeenSet =
true;
98 m_logicalGpuCountHasBeenSet =
true;
99 m_logicalGpuCount = value;
115 m_gpuPartitionSizeHasBeenSet =
true;
116 m_gpuPartitionSize = value;
130 template <
typename WorkloadsT = Aws::Vector<Aws::String>>
132 m_workloadsHasBeenSet =
true;
133 m_workloads = std::forward<WorkloadsT>(value);
135 template <
typename WorkloadsT = Aws::Vector<Aws::String>>
140 template <
typename WorkloadsT = Aws::String>
142 m_workloadsHasBeenSet =
true;
143 m_workloads.emplace_back(std::forward<WorkloadsT>(value));
154 template <
typename MemoryInfoT = GpuDeviceMemoryInfo>
156 m_memoryInfoHasBeenSet =
true;
157 m_memoryInfo = std::forward<MemoryInfoT>(value);
159 template <
typename MemoryInfoT = GpuDeviceMemoryInfo>
172 int m_logicalGpuCount{0};
174 double m_gpuPartitionSize{0.0};
178 GpuDeviceMemoryInfo m_memoryInfo;
179 bool m_nameHasBeenSet =
false;
180 bool m_manufacturerHasBeenSet =
false;
181 bool m_countHasBeenSet =
false;
182 bool m_logicalGpuCountHasBeenSet =
false;
183 bool m_gpuPartitionSizeHasBeenSet =
false;
184 bool m_workloadsHasBeenSet =
false;
185 bool m_memoryInfoHasBeenSet =
false;
GpuDeviceInfo & WithGpuPartitionSize(double value)
const Aws::String & GetName() const
bool CountHasBeenSet() const
double GetGpuPartitionSize() const
void SetLogicalGpuCount(int value)
bool WorkloadsHasBeenSet() const
GpuDeviceInfo & WithWorkloads(WorkloadsT &&value)
const GpuDeviceMemoryInfo & GetMemoryInfo() const
GpuDeviceInfo & AddWorkloads(WorkloadsT &&value)
GpuDeviceInfo & WithMemoryInfo(MemoryInfoT &&value)
bool NameHasBeenSet() const
const Aws::Vector< Aws::String > & GetWorkloads() const
GpuDeviceInfo & WithManufacturer(ManufacturerT &&value)
bool ManufacturerHasBeenSet() const
void SetWorkloads(WorkloadsT &&value)
const Aws::String & GetManufacturer() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGpuPartitionSize(double value)
void SetMemoryInfo(MemoryInfoT &&value)
AWS_EC2_API GpuDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool GpuPartitionSizeHasBeenSet() const
GpuDeviceInfo & WithLogicalGpuCount(int value)
void SetManufacturer(ManufacturerT &&value)
bool LogicalGpuCountHasBeenSet() const
GpuDeviceInfo & WithName(NameT &&value)
AWS_EC2_API GpuDeviceInfo()=default
GpuDeviceInfo & WithCount(int value)
void SetName(NameT &&value)
bool MemoryInfoHasBeenSet() const
int GetLogicalGpuCount() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API GpuDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream