AWS SDK for C++  1.9.159
AWS SDK for C++
Range.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace RDS
20 {
21 namespace Model
22 {
23 
30  {
31  public:
32  Range();
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
43  inline int GetFrom() const{ return m_from; }
44 
48  inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
49 
53  inline void SetFrom(int value) { m_fromHasBeenSet = true; m_from = value; }
54 
58  inline Range& WithFrom(int value) { SetFrom(value); return *this;}
59 
60 
64  inline int GetTo() const{ return m_to; }
65 
69  inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
70 
74  inline void SetTo(int value) { m_toHasBeenSet = true; m_to = value; }
75 
79  inline Range& WithTo(int value) { SetTo(value); return *this;}
80 
81 
88  inline int GetStep() const{ return m_step; }
89 
96  inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
97 
104  inline void SetStep(int value) { m_stepHasBeenSet = true; m_step = value; }
105 
112  inline Range& WithStep(int value) { SetStep(value); return *this;}
113 
114  private:
115 
116  int m_from;
117  bool m_fromHasBeenSet;
118 
119  int m_to;
120  bool m_toHasBeenSet;
121 
122  int m_step;
123  bool m_stepHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace RDS
128 } // namespace Aws
Aws::RDS::Model::Range::FromHasBeenSet
bool FromHasBeenSet() const
Definition: Range.h:48
Aws::RDS::Model::Range::WithStep
Range & WithStep(int value)
Definition: Range.h:112
Aws::RDS::Model::Range::ToHasBeenSet
bool ToHasBeenSet() const
Definition: Range.h:69
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::Range::GetStep
int GetStep() const
Definition: Range.h:88
AWSStreamFwd.h
Aws::RDS::Model::Range::Range
Range()
Aws::RDS::Model::Range::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
RDS_EXPORTS.h
Aws::RDS::Model::Range::SetStep
void SetStep(int value)
Definition: Range.h:104
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::Range::Range
Range(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Range::operator=
Range & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Range::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::Range::SetTo
void SetTo(int value)
Definition: Range.h:74
Aws::RDS::Model::Range::GetTo
int GetTo() const
Definition: Range.h:64
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::Range::WithFrom
Range & WithFrom(int value)
Definition: Range.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::Range::GetFrom
int GetFrom() const
Definition: Range.h:43
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::Range::SetFrom
void SetFrom(int value)
Definition: Range.h:53
Aws::RDS::Model::Range::StepHasBeenSet
bool StepHasBeenSet() const
Definition: Range.h:96
Aws::RDS::Model::Range::WithTo
Range & WithTo(int value)
Definition: Range.h:79
Aws::RDS::Model::Range
Definition: Range.h:30