AWS SDK for C++  1.9.104
AWS SDK for C++
PortRange.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_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 EC2
20 {
21 namespace Model
22 {
23 
30  {
31  public:
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 PortRange& 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 PortRange& WithTo(int value) { SetTo(value); return *this;}
80 
81  private:
82 
83  int m_from;
84  bool m_fromHasBeenSet;
85 
86  int m_to;
87  bool m_toHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace EC2
92 } // namespace Aws
Aws::EC2::Model::PortRange::WithFrom
PortRange & WithFrom(int value)
Definition: PortRange.h:58
Aws::EC2::Model::PortRange::GetTo
int GetTo() const
Definition: PortRange.h:64
Aws::EC2::Model::PortRange::FromHasBeenSet
bool FromHasBeenSet() const
Definition: PortRange.h:48
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PortRange::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSStreamFwd.h
Aws::EC2::Model::PortRange::ToHasBeenSet
bool ToHasBeenSet() const
Definition: PortRange.h:69
Aws::EC2::Model::PortRange::operator=
PortRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PortRange::PortRange
PortRange()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PortRange::WithTo
PortRange & WithTo(int value)
Definition: PortRange.h:79
Aws::EC2::Model::PortRange::SetTo
void SetTo(int value)
Definition: PortRange.h:74
Aws::EC2::Model::PortRange::GetFrom
int GetFrom() const
Definition: PortRange.h:43
Aws::EC2::Model::PortRange::SetFrom
void SetFrom(int value)
Definition: PortRange.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PortRange::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PortRange
Definition: PortRange.h:30
EC2_EXPORTS.h
Aws::EC2::Model::PortRange::PortRange
PortRange(const Aws::Utils::Xml::XmlNode &xmlNode)