AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Range.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
24class Range {
25 public:
26 AWS_RDS_API Range() = default;
27 AWS_RDS_API Range(const Aws::Utils::Xml::XmlNode& xmlNode);
28 AWS_RDS_API Range& 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 int GetFrom() const { return m_from; }
38 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
39 inline void SetFrom(int value) {
40 m_fromHasBeenSet = true;
41 m_from = value;
42 }
43 inline Range& WithFrom(int value) {
44 SetFrom(value);
45 return *this;
46 }
48
50
53 inline int GetTo() const { return m_to; }
54 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
55 inline void SetTo(int value) {
56 m_toHasBeenSet = true;
57 m_to = value;
58 }
59 inline Range& WithTo(int value) {
60 SetTo(value);
61 return *this;
62 }
64
66
72 inline int GetStep() const { return m_step; }
73 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
74 inline void SetStep(int value) {
75 m_stepHasBeenSet = true;
76 m_step = value;
77 }
78 inline Range& WithStep(int value) {
79 SetStep(value);
80 return *this;
81 }
83 private:
84 int m_from{0};
85
86 int m_to{0};
87
88 int m_step{0};
89 bool m_fromHasBeenSet = false;
90 bool m_toHasBeenSet = false;
91 bool m_stepHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace RDS
96} // namespace Aws
AWS_RDS_API Range()=default
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API Range & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Range & WithTo(int value)
Definition Range.h:59
Range & WithStep(int value)
Definition Range.h:78
void SetTo(int value)
Definition Range.h:55
int GetTo() const
Definition Range.h:53
int GetStep() const
Definition Range.h:72
void SetStep(int value)
Definition Range.h:74
bool FromHasBeenSet() const
Definition Range.h:38
bool ToHasBeenSet() const
Definition Range.h:54
bool StepHasBeenSet() const
Definition Range.h:73
AWS_RDS_API Range(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetFrom() const
Definition Range.h:37
Range & WithFrom(int value)
Definition Range.h:43
void SetFrom(int value)
Definition Range.h:39
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream