AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InferenceDeviceInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/InferenceDeviceMemoryInfo.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
31 public:
32 AWS_EC2_API InferenceDeviceInfo() = default;
33 AWS_EC2_API InferenceDeviceInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline int GetCount() const { return m_count; }
44 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
45 inline void SetCount(int value) {
46 m_countHasBeenSet = true;
47 m_count = value;
48 }
49 inline InferenceDeviceInfo& WithCount(int value) {
50 SetCount(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 InferenceDeviceInfo& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
78 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
79 template <typename ManufacturerT = Aws::String>
80 void SetManufacturer(ManufacturerT&& value) {
81 m_manufacturerHasBeenSet = true;
82 m_manufacturer = std::forward<ManufacturerT>(value);
83 }
84 template <typename ManufacturerT = Aws::String>
85 InferenceDeviceInfo& WithManufacturer(ManufacturerT&& value) {
86 SetManufacturer(std::forward<ManufacturerT>(value));
87 return *this;
88 }
90
92
95 inline const InferenceDeviceMemoryInfo& GetMemoryInfo() const { return m_memoryInfo; }
96 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
97 template <typename MemoryInfoT = InferenceDeviceMemoryInfo>
98 void SetMemoryInfo(MemoryInfoT&& value) {
99 m_memoryInfoHasBeenSet = true;
100 m_memoryInfo = std::forward<MemoryInfoT>(value);
101 }
102 template <typename MemoryInfoT = InferenceDeviceMemoryInfo>
103 InferenceDeviceInfo& WithMemoryInfo(MemoryInfoT&& value) {
104 SetMemoryInfo(std::forward<MemoryInfoT>(value));
105 return *this;
106 }
108 private:
109 int m_count{0};
110
111 Aws::String m_name;
112
113 Aws::String m_manufacturer;
114
115 InferenceDeviceMemoryInfo m_memoryInfo;
116 bool m_countHasBeenSet = false;
117 bool m_nameHasBeenSet = false;
118 bool m_manufacturerHasBeenSet = false;
119 bool m_memoryInfoHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
InferenceDeviceInfo & WithName(NameT &&value)
AWS_EC2_API InferenceDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InferenceDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMemoryInfo(MemoryInfoT &&value)
InferenceDeviceInfo & WithManufacturer(ManufacturerT &&value)
void SetManufacturer(ManufacturerT &&value)
const InferenceDeviceMemoryInfo & GetMemoryInfo() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetName() const
InferenceDeviceInfo & WithMemoryInfo(MemoryInfoT &&value)
AWS_EC2_API InferenceDeviceInfo()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetManufacturer() const
InferenceDeviceInfo & WithCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream