AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferenceDeviceInfo.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/InferenceDeviceMemoryInfo.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
35 {
36 public:
37 AWS_EC2_API InferenceDeviceInfo();
38 AWS_EC2_API InferenceDeviceInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline int GetCount() const{ return m_count; }
50 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
51 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
52 inline InferenceDeviceInfo& WithCount(int value) { SetCount(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline InferenceDeviceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline InferenceDeviceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline InferenceDeviceInfo& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetManufacturer() const{ return m_manufacturer; }
74 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
75 inline void SetManufacturer(const Aws::String& value) { m_manufacturerHasBeenSet = true; m_manufacturer = value; }
76 inline void SetManufacturer(Aws::String&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::move(value); }
77 inline void SetManufacturer(const char* value) { m_manufacturerHasBeenSet = true; m_manufacturer.assign(value); }
78 inline InferenceDeviceInfo& WithManufacturer(const Aws::String& value) { SetManufacturer(value); return *this;}
79 inline InferenceDeviceInfo& WithManufacturer(Aws::String&& value) { SetManufacturer(std::move(value)); return *this;}
80 inline InferenceDeviceInfo& WithManufacturer(const char* value) { SetManufacturer(value); return *this;}
82
84
87 inline const InferenceDeviceMemoryInfo& GetMemoryInfo() const{ return m_memoryInfo; }
88 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
89 inline void SetMemoryInfo(const InferenceDeviceMemoryInfo& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = value; }
90 inline void SetMemoryInfo(InferenceDeviceMemoryInfo&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::move(value); }
91 inline InferenceDeviceInfo& WithMemoryInfo(const InferenceDeviceMemoryInfo& value) { SetMemoryInfo(value); return *this;}
92 inline InferenceDeviceInfo& WithMemoryInfo(InferenceDeviceMemoryInfo&& value) { SetMemoryInfo(std::move(value)); return *this;}
94 private:
95
96 int m_count;
97 bool m_countHasBeenSet = false;
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Aws::String m_manufacturer;
103 bool m_manufacturerHasBeenSet = false;
104
105 InferenceDeviceMemoryInfo m_memoryInfo;
106 bool m_memoryInfoHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
InferenceDeviceInfo & WithManufacturer(Aws::String &&value)
void SetManufacturer(const Aws::String &value)
AWS_EC2_API InferenceDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InferenceDeviceInfo & WithMemoryInfo(const InferenceDeviceMemoryInfo &value)
InferenceDeviceInfo & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
AWS_EC2_API InferenceDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
InferenceDeviceInfo & WithName(const char *value)
const InferenceDeviceMemoryInfo & GetMemoryInfo() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetName() const
InferenceDeviceInfo & WithMemoryInfo(InferenceDeviceMemoryInfo &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetManufacturer() const
InferenceDeviceInfo & WithManufacturer(const Aws::String &value)
InferenceDeviceInfo & WithCount(int value)
void SetMemoryInfo(InferenceDeviceMemoryInfo &&value)
InferenceDeviceInfo & WithManufacturer(const char *value)
InferenceDeviceInfo & WithName(Aws::String &&value)
void SetManufacturer(Aws::String &&value)
void SetMemoryInfo(const InferenceDeviceMemoryInfo &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream