AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
MemoryMiBRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace EC2 {
17namespace Model {
18
26 public:
27 AWS_EC2_API MemoryMiBRequest() = default;
28 AWS_EC2_API MemoryMiBRequest(const Aws::Utils::Xml::XmlNode& xmlNode);
30
31 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
32 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
33
35
39 inline int GetMin() const { return m_min; }
40 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
41 inline void SetMin(int value) {
42 m_minHasBeenSet = true;
43 m_min = value;
44 }
45 inline MemoryMiBRequest& WithMin(int value) {
46 SetMin(value);
47 return *this;
48 }
50
52
56 inline int GetMax() const { return m_max; }
57 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
58 inline void SetMax(int value) {
59 m_maxHasBeenSet = true;
60 m_max = value;
61 }
62 inline MemoryMiBRequest& WithMax(int value) {
63 SetMax(value);
64 return *this;
65 }
67 private:
68 int m_min{0};
69
70 int m_max{0};
71 bool m_minHasBeenSet = false;
72 bool m_maxHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace EC2
77} // namespace Aws
AWS_EC2_API MemoryMiBRequest()=default
AWS_EC2_API MemoryMiBRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MemoryMiBRequest & WithMin(int value)
AWS_EC2_API MemoryMiBRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MemoryMiBRequest & WithMax(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream