AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Range.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Neptune
20{
21namespace Model
22{
23
29 class Range
30 {
31 public:
32 AWS_NEPTUNE_API Range();
33 AWS_NEPTUNE_API Range(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_NEPTUNE_API Range& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
39
41
44 inline int GetFrom() const{ return m_from; }
45 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
46 inline void SetFrom(int value) { m_fromHasBeenSet = true; m_from = value; }
47 inline Range& WithFrom(int value) { SetFrom(value); return *this;}
49
51
54 inline int GetTo() const{ return m_to; }
55 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
56 inline void SetTo(int value) { m_toHasBeenSet = true; m_to = value; }
57 inline Range& WithTo(int value) { SetTo(value); return *this;}
59
61
67 inline int GetStep() const{ return m_step; }
68 inline bool StepHasBeenSet() const { return m_stepHasBeenSet; }
69 inline void SetStep(int value) { m_stepHasBeenSet = true; m_step = value; }
70 inline Range& WithStep(int value) { SetStep(value); return *this;}
72 private:
73
74 int m_from;
75 bool m_fromHasBeenSet = false;
76
77 int m_to;
78 bool m_toHasBeenSet = false;
79
80 int m_step;
81 bool m_stepHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Neptune
86} // namespace Aws
Range & WithTo(int value)
Definition Range.h:57
void SetFrom(int value)
Definition Range.h:46
Range & WithStep(int value)
Definition Range.h:70
Range & WithFrom(int value)
Definition Range.h:47
AWS_NEPTUNE_API Range & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetFrom() const
Definition Range.h:44
AWS_NEPTUNE_API Range(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStep(int value)
Definition Range.h:69
bool ToHasBeenSet() const
Definition Range.h:55
AWS_NEPTUNE_API Range()
bool StepHasBeenSet() const
Definition Range.h:68
void SetTo(int value)
Definition Range.h:56
int GetStep() const
Definition Range.h:67
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool FromHasBeenSet() const
Definition Range.h:45
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream