AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkBandwidthGbps.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
33 public:
34 AWS_EC2_API NetworkBandwidthGbps() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline double GetMin() const { return m_min; }
47 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
48 inline void SetMin(double value) {
49 m_minHasBeenSet = true;
50 m_min = value;
51 }
52 inline NetworkBandwidthGbps& WithMin(double value) {
53 SetMin(value);
54 return *this;
55 }
57
59
63 inline double GetMax() const { return m_max; }
64 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
65 inline void SetMax(double value) {
66 m_maxHasBeenSet = true;
67 m_max = value;
68 }
69 inline NetworkBandwidthGbps& WithMax(double value) {
70 SetMax(value);
71 return *this;
72 }
74 private:
75 double m_min{0.0};
76
77 double m_max{0.0};
78 bool m_minHasBeenSet = false;
79 bool m_maxHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace EC2
84} // namespace Aws
AWS_EC2_API NetworkBandwidthGbps & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API NetworkBandwidthGbps()=default
NetworkBandwidthGbps & WithMin(double value)
NetworkBandwidthGbps & WithMax(double value)
AWS_EC2_API NetworkBandwidthGbps(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream