AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TrafficMirrorPortRange.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:
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
45 inline int GetFromPort() const{ return m_fromPort; }
46 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
47 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
48 inline TrafficMirrorPortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
50
52
56 inline int GetToPort() const{ return m_toPort; }
57 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
58 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
59 inline TrafficMirrorPortRange& WithToPort(int value) { SetToPort(value); return *this;}
61 private:
62
63 int m_fromPort;
64 bool m_fromPortHasBeenSet = false;
65
66 int m_toPort;
67 bool m_toPortHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace EC2
72} // namespace Aws
TrafficMirrorPortRange & WithFromPort(int value)
AWS_EC2_API TrafficMirrorPortRange & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TrafficMirrorPortRange & WithToPort(int value)
AWS_EC2_API TrafficMirrorPortRange(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream