AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GpuDeviceInfo.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/AWSString.h>
10#include <aws/ec2/model/GpuDeviceMemoryInfo.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
34 {
35 public:
36 AWS_EC2_API GpuDeviceInfo() = default;
37 AWS_EC2_API GpuDeviceInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API GpuDeviceInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 GpuDeviceInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
61 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
62 template<typename ManufacturerT = Aws::String>
63 void SetManufacturer(ManufacturerT&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::forward<ManufacturerT>(value); }
64 template<typename ManufacturerT = Aws::String>
65 GpuDeviceInfo& WithManufacturer(ManufacturerT&& value) { SetManufacturer(std::forward<ManufacturerT>(value)); return *this;}
67
69
72 inline int GetCount() const { return m_count; }
73 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
74 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
75 inline GpuDeviceInfo& WithCount(int value) { SetCount(value); return *this;}
77
79
82 inline const GpuDeviceMemoryInfo& GetMemoryInfo() const { return m_memoryInfo; }
83 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
84 template<typename MemoryInfoT = GpuDeviceMemoryInfo>
85 void SetMemoryInfo(MemoryInfoT&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::forward<MemoryInfoT>(value); }
86 template<typename MemoryInfoT = GpuDeviceMemoryInfo>
87 GpuDeviceInfo& WithMemoryInfo(MemoryInfoT&& value) { SetMemoryInfo(std::forward<MemoryInfoT>(value)); return *this;}
89 private:
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::String m_manufacturer;
95 bool m_manufacturerHasBeenSet = false;
96
97 int m_count{0};
98 bool m_countHasBeenSet = false;
99
100 GpuDeviceMemoryInfo m_memoryInfo;
101 bool m_memoryInfoHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // namespace Aws
const Aws::String & GetName() const
const GpuDeviceMemoryInfo & GetMemoryInfo() const
GpuDeviceInfo & WithMemoryInfo(MemoryInfoT &&value)
GpuDeviceInfo & WithManufacturer(ManufacturerT &&value)
const Aws::String & GetManufacturer() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetMemoryInfo(MemoryInfoT &&value)
AWS_EC2_API GpuDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetManufacturer(ManufacturerT &&value)
GpuDeviceInfo & WithName(NameT &&value)
AWS_EC2_API GpuDeviceInfo()=default
GpuDeviceInfo & WithCount(int value)
void SetName(NameT &&value)
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::basic_ostream< char, std::char_traits< char > > OStream