AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NeuronInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/NeuronDeviceInfo.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
30 public:
31 AWS_EC2_API NeuronInfo() = default;
32 AWS_EC2_API NeuronInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_EC2_API NeuronInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::Vector<NeuronDeviceInfo>& GetNeuronDevices() const { return m_neuronDevices; }
43 inline bool NeuronDevicesHasBeenSet() const { return m_neuronDevicesHasBeenSet; }
44 template <typename NeuronDevicesT = Aws::Vector<NeuronDeviceInfo>>
45 void SetNeuronDevices(NeuronDevicesT&& value) {
46 m_neuronDevicesHasBeenSet = true;
47 m_neuronDevices = std::forward<NeuronDevicesT>(value);
48 }
49 template <typename NeuronDevicesT = Aws::Vector<NeuronDeviceInfo>>
50 NeuronInfo& WithNeuronDevices(NeuronDevicesT&& value) {
51 SetNeuronDevices(std::forward<NeuronDevicesT>(value));
52 return *this;
53 }
54 template <typename NeuronDevicesT = NeuronDeviceInfo>
55 NeuronInfo& AddNeuronDevices(NeuronDevicesT&& value) {
56 m_neuronDevicesHasBeenSet = true;
57 m_neuronDevices.emplace_back(std::forward<NeuronDevicesT>(value));
58 return *this;
59 }
61
63
67 inline int GetTotalNeuronDeviceMemoryInMiB() const { return m_totalNeuronDeviceMemoryInMiB; }
68 inline bool TotalNeuronDeviceMemoryInMiBHasBeenSet() const { return m_totalNeuronDeviceMemoryInMiBHasBeenSet; }
69 inline void SetTotalNeuronDeviceMemoryInMiB(int value) {
70 m_totalNeuronDeviceMemoryInMiBHasBeenSet = true;
71 m_totalNeuronDeviceMemoryInMiB = value;
72 }
75 return *this;
76 }
78 private:
79 Aws::Vector<NeuronDeviceInfo> m_neuronDevices;
80
81 int m_totalNeuronDeviceMemoryInMiB{0};
82 bool m_neuronDevicesHasBeenSet = false;
83 bool m_totalNeuronDeviceMemoryInMiBHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
NeuronInfo & WithNeuronDevices(NeuronDevicesT &&value)
Definition NeuronInfo.h:50
bool TotalNeuronDeviceMemoryInMiBHasBeenSet() const
Definition NeuronInfo.h:68
const Aws::Vector< NeuronDeviceInfo > & GetNeuronDevices() const
Definition NeuronInfo.h:42
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:73
bool NeuronDevicesHasBeenSet() const
Definition NeuronInfo.h:43
AWS_EC2_API NeuronInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetTotalNeuronDeviceMemoryInMiB() const
Definition NeuronInfo.h:67
void SetTotalNeuronDeviceMemoryInMiB(int value)
Definition NeuronInfo.h:69
AWS_EC2_API NeuronInfo()=default
void SetNeuronDevices(NeuronDevicesT &&value)
Definition NeuronInfo.h:45
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