AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NeuronDeviceInfo.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/NeuronDeviceCoreInfo.h>
11#include <aws/ec2/model/NeuronDeviceMemoryInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API NeuronDeviceInfo();
38 AWS_EC2_API NeuronDeviceInfo(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 NeuronDeviceInfo& 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 NeuronDeviceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline NeuronDeviceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline NeuronDeviceInfo& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const NeuronDeviceCoreInfo& GetCoreInfo() const{ return m_coreInfo; }
74 inline bool CoreInfoHasBeenSet() const { return m_coreInfoHasBeenSet; }
75 inline void SetCoreInfo(const NeuronDeviceCoreInfo& value) { m_coreInfoHasBeenSet = true; m_coreInfo = value; }
76 inline void SetCoreInfo(NeuronDeviceCoreInfo&& value) { m_coreInfoHasBeenSet = true; m_coreInfo = std::move(value); }
77 inline NeuronDeviceInfo& WithCoreInfo(const NeuronDeviceCoreInfo& value) { SetCoreInfo(value); return *this;}
78 inline NeuronDeviceInfo& WithCoreInfo(NeuronDeviceCoreInfo&& value) { SetCoreInfo(std::move(value)); return *this;}
80
82
85 inline const NeuronDeviceMemoryInfo& GetMemoryInfo() const{ return m_memoryInfo; }
86 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
87 inline void SetMemoryInfo(const NeuronDeviceMemoryInfo& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = value; }
88 inline void SetMemoryInfo(NeuronDeviceMemoryInfo&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::move(value); }
89 inline NeuronDeviceInfo& WithMemoryInfo(const NeuronDeviceMemoryInfo& value) { SetMemoryInfo(value); return *this;}
90 inline NeuronDeviceInfo& WithMemoryInfo(NeuronDeviceMemoryInfo&& value) { SetMemoryInfo(std::move(value)); return *this;}
92 private:
93
94 int m_count;
95 bool m_countHasBeenSet = false;
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 NeuronDeviceCoreInfo m_coreInfo;
101 bool m_coreInfoHasBeenSet = false;
102
103 NeuronDeviceMemoryInfo m_memoryInfo;
104 bool m_memoryInfoHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
void SetMemoryInfo(NeuronDeviceMemoryInfo &&value)
NeuronDeviceInfo & WithMemoryInfo(const NeuronDeviceMemoryInfo &value)
const NeuronDeviceMemoryInfo & GetMemoryInfo() const
NeuronDeviceInfo & WithName(const char *value)
AWS_EC2_API NeuronDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMemoryInfo(const NeuronDeviceMemoryInfo &value)
NeuronDeviceInfo & WithMemoryInfo(NeuronDeviceMemoryInfo &&value)
NeuronDeviceInfo & WithCount(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetName(Aws::String &&value)
NeuronDeviceInfo & WithName(const Aws::String &value)
NeuronDeviceInfo & WithCoreInfo(const NeuronDeviceCoreInfo &value)
void SetCoreInfo(NeuronDeviceCoreInfo &&value)
const NeuronDeviceCoreInfo & GetCoreInfo() const
const Aws::String & GetName() const
AWS_EC2_API NeuronDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCoreInfo(const NeuronDeviceCoreInfo &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetName(const char *value)
NeuronDeviceInfo & WithName(Aws::String &&value)
NeuronDeviceInfo & WithCoreInfo(NeuronDeviceCoreInfo &&value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream