AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline GpuDeviceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline GpuDeviceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline GpuDeviceInfo& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetManufacturer() const{ return m_manufacturer; }
63 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
64 inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; }
65 inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::move(value); }
66 inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); }
67 inline GpuDeviceInfo& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;}
68 inline GpuDeviceInfo& WithManufacturer(Aws::String&& value) { SetManufacturer(std::move(value)); return *this;}
69 inline GpuDeviceInfo& WithManufacturer(const char* value) { SetManufacturer(value); return *this;}
71
73
76 inline int GetCount() const{ return m_count; }
77 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
78 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
79 inline GpuDeviceInfo& WithCount(int value) { SetCount(value); return *this;}
81
83
86 inline const GpuDeviceMemoryInfo& GetMemoryInfo() const{ return m_memoryInfo; }
87 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
88 inline void SetMemoryInfo(const GpuDeviceMemoryInfo& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = value; }
89 inline void SetMemoryInfo(GpuDeviceMemoryInfo&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::move(value); }
90 inline GpuDeviceInfo& WithMemoryInfo(const GpuDeviceMemoryInfo& value) { SetMemoryInfo(value); return *this;}
91 inline GpuDeviceInfo& WithMemoryInfo(GpuDeviceMemoryInfo&& value) { SetMemoryInfo(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_manufacturer;
99 bool m_manufacturerHasBeenSet = false;
100
101 int m_count;
102 bool m_countHasBeenSet = false;
103
104 GpuDeviceMemoryInfo m_memoryInfo;
105 bool m_memoryInfoHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
GpuDeviceInfo & WithMemoryInfo(GpuDeviceMemoryInfo &&value)
GpuDeviceInfo & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetManufacturer(const Aws::String &value)
GpuDeviceInfo & WithName(const Aws::String &value)
GpuDeviceInfo & WithMemoryInfo(const GpuDeviceMemoryInfo &value)
void SetManufacturer(Aws::String &&value)
void SetMemoryInfo(const GpuDeviceMemoryInfo &value)
const GpuDeviceMemoryInfo & GetMemoryInfo() const
void SetManufacturer(const char *value)
GpuDeviceInfo & WithManufacturer(const Aws::String &value)
void SetName(const char *value)
const Aws::String & GetManufacturer() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetName(Aws::String &&value)
AWS_EC2_API GpuDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(const Aws::String &value)
GpuDeviceInfo & WithManufacturer(Aws::String &&value)
GpuDeviceInfo & WithManufacturer(const char *value)
GpuDeviceInfo & WithCount(int value)
void SetMemoryInfo(GpuDeviceMemoryInfo &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API GpuDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
GpuDeviceInfo & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream