AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FpgaDeviceInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/FpgaDeviceMemoryInfo.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 FpgaDeviceInfo() = default;
32 AWS_EC2_API FpgaDeviceInfo(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::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 FpgaDeviceInfo& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
61 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
62 template <typename ManufacturerT = Aws::String>
63 void SetManufacturer(ManufacturerT&& value) {
64 m_manufacturerHasBeenSet = true;
65 m_manufacturer = std::forward<ManufacturerT>(value);
66 }
67 template <typename ManufacturerT = Aws::String>
68 FpgaDeviceInfo& WithManufacturer(ManufacturerT&& value) {
69 SetManufacturer(std::forward<ManufacturerT>(value));
70 return *this;
71 }
73
75
78 inline int GetCount() const { return m_count; }
79 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
80 inline void SetCount(int value) {
81 m_countHasBeenSet = true;
82 m_count = value;
83 }
84 inline FpgaDeviceInfo& WithCount(int value) {
85 SetCount(value);
86 return *this;
87 }
89
91
94 inline const FpgaDeviceMemoryInfo& GetMemoryInfo() const { return m_memoryInfo; }
95 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
96 template <typename MemoryInfoT = FpgaDeviceMemoryInfo>
97 void SetMemoryInfo(MemoryInfoT&& value) {
98 m_memoryInfoHasBeenSet = true;
99 m_memoryInfo = std::forward<MemoryInfoT>(value);
100 }
101 template <typename MemoryInfoT = FpgaDeviceMemoryInfo>
102 FpgaDeviceInfo& WithMemoryInfo(MemoryInfoT&& value) {
103 SetMemoryInfo(std::forward<MemoryInfoT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 Aws::String m_manufacturer;
111
112 int m_count{0};
113
114 FpgaDeviceMemoryInfo m_memoryInfo;
115 bool m_nameHasBeenSet = false;
116 bool m_manufacturerHasBeenSet = false;
117 bool m_countHasBeenSet = false;
118 bool m_memoryInfoHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EC2
123} // namespace Aws
const FpgaDeviceMemoryInfo & GetMemoryInfo() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMemoryInfo(MemoryInfoT &&value)
FpgaDeviceInfo & WithCount(int value)
AWS_EC2_API FpgaDeviceInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
FpgaDeviceInfo & WithName(NameT &&value)
void SetManufacturer(ManufacturerT &&value)
AWS_EC2_API FpgaDeviceInfo()=default
AWS_EC2_API FpgaDeviceInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetManufacturer() const
FpgaDeviceInfo & WithMemoryInfo(MemoryInfoT &&value)
FpgaDeviceInfo & WithManufacturer(ManufacturerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream