AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MediaDeviceInfo.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/AWSString.h>
10#include <aws/ec2/model/MediaDeviceMemoryInfo.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 MediaDeviceInfo() = default;
37 AWS_EC2_API MediaDeviceInfo(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 int GetCount() const { return m_count; }
49 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
50 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
51 inline MediaDeviceInfo& WithCount(int value) { SetCount(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 MediaDeviceInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetManufacturer() const { return m_manufacturer; }
71 inline bool ManufacturerHasBeenSet() const { return m_manufacturerHasBeenSet; }
72 template<typename ManufacturerT = Aws::String>
73 void SetManufacturer(ManufacturerT&& value) { m_manufacturerHasBeenSet = true; m_manufacturer = std::forward<ManufacturerT>(value); }
74 template<typename ManufacturerT = Aws::String>
75 MediaDeviceInfo& WithManufacturer(ManufacturerT&& value) { SetManufacturer(std::forward<ManufacturerT>(value)); return *this;}
77
79
82 inline const MediaDeviceMemoryInfo& GetMemoryInfo() const { return m_memoryInfo; }
83 inline bool MemoryInfoHasBeenSet() const { return m_memoryInfoHasBeenSet; }
84 template<typename MemoryInfoT = MediaDeviceMemoryInfo>
85 void SetMemoryInfo(MemoryInfoT&& value) { m_memoryInfoHasBeenSet = true; m_memoryInfo = std::forward<MemoryInfoT>(value); }
86 template<typename MemoryInfoT = MediaDeviceMemoryInfo>
87 MediaDeviceInfo& WithMemoryInfo(MemoryInfoT&& value) { SetMemoryInfo(std::forward<MemoryInfoT>(value)); return *this;}
89 private:
90
91 int m_count{0};
92 bool m_countHasBeenSet = false;
93
94 Aws::String m_name;
95 bool m_nameHasBeenSet = false;
96
97 Aws::String m_manufacturer;
98 bool m_manufacturerHasBeenSet = false;
99
100 MediaDeviceMemoryInfo m_memoryInfo;
101 bool m_memoryInfoHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EC2
106} // 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