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/network-firewall/NetworkFirewall_EXPORTS.h>
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:
35 AWS_NETWORKFIREWALL_API PortRange();
36 AWS_NETWORKFIREWALL_API PortRange(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKFIREWALL_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetFromPort() const{ return m_fromPort; }
47 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
48 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
49 inline PortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
51
53
57 inline int GetToPort() const{ return m_toPort; }
58 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
59 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
60 inline PortRange& WithToPort(int value) { SetToPort(value); return *this;}
62 private:
63
64 int m_fromPort;
65 bool m_fromPortHasBeenSet = false;
66
67 int m_toPort;
68 bool m_toPortHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace NetworkFirewall
73} // namespace Aws
AWS_NETWORKFIREWALL_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API PortRange()
PortRange & WithFromPort(int value)
Definition PortRange.h:49
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:60
Aws::Utils::Json::JsonValue JsonValue