AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NeuronDevicesT = Aws::Vector<NeuronDeviceInfo>>
51 void SetNeuronDevices(NeuronDevicesT&& value) { m_neuronDevicesHasBeenSet = true; m_neuronDevices = std::forward<NeuronDevicesT>(value); }
52 template<typename NeuronDevicesT = Aws::Vector<NeuronDeviceInfo>>
53 NeuronInfo& WithNeuronDevices(NeuronDevicesT&& value) { SetNeuronDevices(std::forward<NeuronDevicesT>(value)); return *this;}
54 template<typename NeuronDevicesT = NeuronDeviceInfo>
55 NeuronInfo& AddNeuronDevices(NeuronDevicesT&& value) { m_neuronDevicesHasBeenSet = true; m_neuronDevices.emplace_back(std::forward<NeuronDevicesT>(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{0};
74 bool m_totalNeuronDeviceMemoryInMiBHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
NeuronInfo & WithNeuronDevices(NeuronDevicesT &&value)
Definition NeuronInfo.h:53
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(NeuronDevicesT &&value)
Definition NeuronInfo.h:55
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)
int GetTotalNeuronDeviceMemoryInMiB() const
Definition NeuronInfo.h:63
void SetTotalNeuronDeviceMemoryInMiB(int value)
Definition NeuronInfo.h:65
AWS_EC2_API NeuronInfo()=default
void SetNeuronDevices(NeuronDevicesT &&value)
Definition NeuronInfo.h:51
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
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream