AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PortRange.h
Go to the documentation of this file.
1
6#pragma once
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkFirewall
20{
21namespace Model
22{
23
33 {
34 public:
39
40
45 inline int GetFromPort() const{ return m_fromPort; }
46
51 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
52
57 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
58
63 inline PortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
64
65
70 inline int GetToPort() const{ return m_toPort; }
71
76 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
77
82 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
83
88 inline PortRange& WithToPort(int value) { SetToPort(value); return *this;}
89
90 private:
91
92 int m_fromPort;
93 bool m_fromPortHasBeenSet = false;
94
95 int m_toPort;
96 bool m_toPortHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace NetworkFirewall
101} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API PortRange()
PortRange & WithFromPort(int value)
Definition: PortRange.h:63
AWS_NETWORKFIREWALL_API PortRange(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
PortRange & WithToPort(int value)
Definition: PortRange.h:88