AWS SDK for C++  1.9.74
AWS SDK for C++
TrafficMirrorPortRange.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 
44  inline int GetFromPort() const{ return m_fromPort; }
45 
50  inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
51 
56  inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
57 
62  inline TrafficMirrorPortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
63 
64 
69  inline int GetToPort() const{ return m_toPort; }
70 
75  inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
76 
81  inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
82 
87  inline TrafficMirrorPortRange& WithToPort(int value) { SetToPort(value); return *this;}
88 
89  private:
90 
91  int m_fromPort;
92  bool m_fromPortHasBeenSet;
93 
94  int m_toPort;
95  bool m_toPortHasBeenSet;
96  };
97 
98 } // namespace Model
99 } // namespace EC2
100 } // namespace Aws
Aws::EC2::Model::TrafficMirrorPortRange::WithFromPort
TrafficMirrorPortRange & WithFromPort(int value)
Definition: TrafficMirrorPortRange.h:62
Aws::EC2::Model::TrafficMirrorPortRange::SetToPort
void SetToPort(int value)
Definition: TrafficMirrorPortRange.h:81
Aws::EC2::Model::TrafficMirrorPortRange::TrafficMirrorPortRange
TrafficMirrorPortRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TrafficMirrorPortRange::SetFromPort
void SetFromPort(int value)
Definition: TrafficMirrorPortRange.h:56
Aws::EC2::Model::TrafficMirrorPortRange::FromPortHasBeenSet
bool FromPortHasBeenSet() const
Definition: TrafficMirrorPortRange.h:50
AWSStreamFwd.h
Aws::EC2::Model::TrafficMirrorPortRange::operator=
TrafficMirrorPortRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TrafficMirrorPortRange
Definition: TrafficMirrorPortRange.h:30
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TrafficMirrorPortRange::WithToPort
TrafficMirrorPortRange & WithToPort(int value)
Definition: TrafficMirrorPortRange.h:87
Aws::EC2::Model::TrafficMirrorPortRange::GetToPort
int GetToPort() const
Definition: TrafficMirrorPortRange.h:69
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TrafficMirrorPortRange::ToPortHasBeenSet
bool ToPortHasBeenSet() const
Definition: TrafficMirrorPortRange.h:75
Aws::EC2::Model::TrafficMirrorPortRange::TrafficMirrorPortRange
TrafficMirrorPortRange()
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TrafficMirrorPortRange::GetFromPort
int GetFromPort() const
Definition: TrafficMirrorPortRange.h:44
Aws::EC2::Model::TrafficMirrorPortRange::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::TrafficMirrorPortRange::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const