AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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