AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/ec2/EC2_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 EC2
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_EC2_API PortRange();
33 AWS_EC2_API PortRange(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_EC2_API PortRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_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 PortRange& 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 PortRange& WithTo(int value) { SetTo(value); return *this;}
59 private:
60
61 int m_from;
62 bool m_fromHasBeenSet = false;
63
64 int m_to;
65 bool m_toHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace EC2
70} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetFrom(int value)
Definition PortRange.h:46
bool ToHasBeenSet() const
Definition PortRange.h:55
AWS_EC2_API PortRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool FromHasBeenSet() const
Definition PortRange.h:45
PortRange & WithTo(int value)
Definition PortRange.h:57
AWS_EC2_API PortRange(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTo(int value)
Definition PortRange.h:56
PortRange & WithFrom(int value)
Definition PortRange.h:47
std::basic_ostream< char, std::char_traits< char > > OStream