AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DoubleRange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/rds/RDS_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace RDS {
17namespace Model {
18
25 public:
26 AWS_RDS_API DoubleRange() = default;
27 AWS_RDS_API DoubleRange(const Aws::Utils::Xml::XmlNode& xmlNode);
28 AWS_RDS_API DoubleRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
31 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
32
34
37 inline double GetFrom() const { return m_from; }
38 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
39 inline void SetFrom(double value) {
40 m_fromHasBeenSet = true;
41 m_from = value;
42 }
43 inline DoubleRange& WithFrom(double value) {
44 SetFrom(value);
45 return *this;
46 }
48
50
53 inline double GetTo() const { return m_to; }
54 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
55 inline void SetTo(double value) {
56 m_toHasBeenSet = true;
57 m_to = value;
58 }
59 inline DoubleRange& WithTo(double value) {
60 SetTo(value);
61 return *this;
62 }
64 private:
65 double m_from{0.0};
66
67 double m_to{0.0};
68 bool m_fromHasBeenSet = false;
69 bool m_toHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace RDS
74} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTo(double value)
Definition DoubleRange.h:55
DoubleRange & WithTo(double value)
Definition DoubleRange.h:59
void SetFrom(double value)
Definition DoubleRange.h:39
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API DoubleRange()=default
DoubleRange & WithFrom(double value)
Definition DoubleRange.h:43
AWS_RDS_API DoubleRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API DoubleRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_ostream< char, std::char_traits< char > > OStream