AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NeuronInfo.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/AWSVector.h>
10#include <aws/ec2/model/NeuronDeviceInfo.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 NeuronInfo();
37 AWS_EC2_API NeuronInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API NeuronInfo& 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::Vector<NeuronDeviceInfo>& GetNeuronDevices() const{ return m_neuronDevices; }
49 inline bool NeuronDevicesHasBeenSet() const { return m_neuronDevicesHasBeenSet; }
50 inline void SetNeuronDevices(const Aws::Vector<NeuronDeviceInfo>& value) { m_neuronDevicesHasBeenSet = true; m_neuronDevices = value; }
51 inline void SetNeuronDevices(Aws::Vector<NeuronDeviceInfo>&& value) { m_neuronDevicesHasBeenSet = true; m_neuronDevices = std::move(value); }
52 inline NeuronInfo& WithNeuronDevices(const Aws::Vector<NeuronDeviceInfo>& value) { SetNeuronDevices(value); return *this;}
53 inline NeuronInfo& WithNeuronDevices(Aws::Vector<NeuronDeviceInfo>&& value) { SetNeuronDevices(std::move(value)); return *this;}
54 inline NeuronInfo& AddNeuronDevices(const NeuronDeviceInfo& value) { m_neuronDevicesHasBeenSet = true; m_neuronDevices.push_back(value); return *this; }
55 inline NeuronInfo& AddNeuronDevices(NeuronDeviceInfo&& value) { m_neuronDevicesHasBeenSet = true; m_neuronDevices.push_back(std::move(value)); return *this; }
57
59
63 inline int GetTotalNeuronDeviceMemoryInMiB() const{ return m_totalNeuronDeviceMemoryInMiB; }
64 inline bool TotalNeuronDeviceMemoryInMiBHasBeenSet() const { return m_totalNeuronDeviceMemoryInMiBHasBeenSet; }
65 inline void SetTotalNeuronDeviceMemoryInMiB(int value) { m_totalNeuronDeviceMemoryInMiBHasBeenSet = true; m_totalNeuronDeviceMemoryInMiB = value; }
68 private:
69
70 Aws::Vector<NeuronDeviceInfo> m_neuronDevices;
71 bool m_neuronDevicesHasBeenSet = false;
72
73 int m_totalNeuronDeviceMemoryInMiB;
74 bool m_totalNeuronDeviceMemoryInMiBHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
void SetNeuronDevices(const Aws::Vector< NeuronDeviceInfo > &value)
Definition NeuronInfo.h:50
bool TotalNeuronDeviceMemoryInMiBHasBeenSet() const
Definition NeuronInfo.h:64
const Aws::Vector< NeuronDeviceInfo > & GetNeuronDevices() const
Definition NeuronInfo.h:48
AWS_EC2_API NeuronInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NeuronInfo & AddNeuronDevices(const NeuronDeviceInfo &value)
Definition NeuronInfo.h:54
NeuronInfo & WithNeuronDevices(Aws::Vector< NeuronDeviceInfo > &&value)
Definition NeuronInfo.h:53
NeuronInfo & WithTotalNeuronDeviceMemoryInMiB(int value)
Definition NeuronInfo.h:66
bool NeuronDevicesHasBeenSet() const
Definition NeuronInfo.h:49
AWS_EC2_API NeuronInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNeuronDevices(Aws::Vector< NeuronDeviceInfo > &&value)
Definition NeuronInfo.h:51
int GetTotalNeuronDeviceMemoryInMiB() const
Definition NeuronInfo.h:63
void SetTotalNeuronDeviceMemoryInMiB(int value)
Definition NeuronInfo.h:65
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
NeuronInfo & WithNeuronDevices(const Aws::Vector< NeuronDeviceInfo > &value)
Definition NeuronInfo.h:52
NeuronInfo & AddNeuronDevices(NeuronDeviceInfo &&value)
Definition NeuronInfo.h:55
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream