AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VCpuCountRange.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
25 public:
26 AWS_EC2_API VCpuCountRange() = default;
27 AWS_EC2_API VCpuCountRange(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
31 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
32
34
38 inline int GetMin() const { return m_min; }
39 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
40 inline void SetMin(int value) {
41 m_minHasBeenSet = true;
42 m_min = value;
43 }
44 inline VCpuCountRange& WithMin(int value) {
45 SetMin(value);
46 return *this;
47 }
49
51
55 inline int GetMax() const { return m_max; }
56 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
57 inline void SetMax(int value) {
58 m_maxHasBeenSet = true;
59 m_max = value;
60 }
61 inline VCpuCountRange& WithMax(int value) {
62 SetMax(value);
63 return *this;
64 }
66 private:
67 int m_min{0};
68
69 int m_max{0};
70 bool m_minHasBeenSet = false;
71 bool m_maxHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
AWS_EC2_API VCpuCountRange(const Aws::Utils::Xml::XmlNode &xmlNode)
VCpuCountRange & WithMax(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VCpuCountRange & WithMin(int value)
AWS_EC2_API VCpuCountRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VCpuCountRange()=default
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