AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferenceAcceleratorInfo.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/InferenceDeviceInfo.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:
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 const Aws::Vector<InferenceDeviceInfo>& GetAccelerators() const{ return m_accelerators; }
50 inline bool AcceleratorsHasBeenSet() const { return m_acceleratorsHasBeenSet; }
51 inline void SetAccelerators(const Aws::Vector<InferenceDeviceInfo>& value) { m_acceleratorsHasBeenSet = true; m_accelerators = value; }
52 inline void SetAccelerators(Aws::Vector<InferenceDeviceInfo>&& value) { m_acceleratorsHasBeenSet = true; m_accelerators = std::move(value); }
55 inline InferenceAcceleratorInfo& AddAccelerators(const InferenceDeviceInfo& value) { m_acceleratorsHasBeenSet = true; m_accelerators.push_back(value); return *this; }
56 inline InferenceAcceleratorInfo& AddAccelerators(InferenceDeviceInfo&& value) { m_acceleratorsHasBeenSet = true; m_accelerators.push_back(std::move(value)); return *this; }
58
60
64 inline int GetTotalInferenceMemoryInMiB() const{ return m_totalInferenceMemoryInMiB; }
65 inline bool TotalInferenceMemoryInMiBHasBeenSet() const { return m_totalInferenceMemoryInMiBHasBeenSet; }
66 inline void SetTotalInferenceMemoryInMiB(int value) { m_totalInferenceMemoryInMiBHasBeenSet = true; m_totalInferenceMemoryInMiB = value; }
69 private:
70
72 bool m_acceleratorsHasBeenSet = false;
73
74 int m_totalInferenceMemoryInMiB;
75 bool m_totalInferenceMemoryInMiBHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
AWS_EC2_API InferenceAcceleratorInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
InferenceAcceleratorInfo & WithAccelerators(const Aws::Vector< InferenceDeviceInfo > &value)
InferenceAcceleratorInfo & AddAccelerators(InferenceDeviceInfo &&value)
InferenceAcceleratorInfo & WithTotalInferenceMemoryInMiB(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InferenceAcceleratorInfo & WithAccelerators(Aws::Vector< InferenceDeviceInfo > &&value)
void SetAccelerators(const Aws::Vector< InferenceDeviceInfo > &value)
void SetAccelerators(Aws::Vector< InferenceDeviceInfo > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InferenceAcceleratorInfo & AddAccelerators(const InferenceDeviceInfo &value)
const Aws::Vector< InferenceDeviceInfo > & GetAccelerators() const
AWS_EC2_API InferenceAcceleratorInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream