AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 InferenceDeviceInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
72 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
73 template<typename ManufacturerT = Aws::String>
74 void SetManufacturer(ManufacturerT&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::forward<ManufacturerT>(value); }
75 template<typename ManufacturerT = Aws::String>
76 InferenceDeviceInfo& WithManufacturer(ManufacturerT&& value) { SetManufacturer(std::forward<ManufacturerT>(value)); return *this;}
78
80
83 inline const InferenceDeviceMemoryInfo& GetMemoryInfo() const { return m_memoryInfo; }
84 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
85 template<typename MemoryInfoT = InferenceDeviceMemoryInfo>
86 void SetMemoryInfo(MemoryInfoT&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::forward<MemoryInfoT>(value); }
87 template<typename MemoryInfoT = InferenceDeviceMemoryInfo>
88 InferenceDeviceInfo& WithMemoryInfo(MemoryInfoT&& value) { SetMemoryInfo(std::forward<MemoryInfoT>(value)); return *this;}
90 private:
91
92 int m_count{0};
93 bool m_countHasBeenSet = false;
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_manufacturer;
99 bool m_manufacturerHasBeenSet = false;
100
101 InferenceDeviceMemoryInfo m_memoryInfo;
102 bool m_memoryInfoHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // 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