AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GlobalAccelerator {
17namespace Model {
18
25class PortRange {
26 public:
27 AWS_GLOBALACCELERATOR_API PortRange() = default;
28 AWS_GLOBALACCELERATOR_API PortRange(Aws::Utils::Json::JsonView jsonValue);
29 AWS_GLOBALACCELERATOR_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetFromPort() const { return m_fromPort; }
37 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
38 inline void SetFromPort(int value) {
39 m_fromPortHasBeenSet = true;
40 m_fromPort = value;
41 }
42 inline PortRange& WithFromPort(int value) {
43 SetFromPort(value);
44 return *this;
45 }
47
49
52 inline int GetToPort() const { return m_toPort; }
53 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
54 inline void SetToPort(int value) {
55 m_toPortHasBeenSet = true;
56 m_toPort = value;
57 }
58 inline PortRange& WithToPort(int value) {
59 SetToPort(value);
60 return *this;
61 }
63 private:
64 int m_fromPort{0};
65
66 int m_toPort{0};
67 bool m_fromPortHasBeenSet = false;
68 bool m_toPortHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace GlobalAccelerator
73} // namespace Aws
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API PortRange(Aws::Utils::Json::JsonView jsonValue)
PortRange & WithFromPort(int value)
Definition PortRange.h:42
AWS_GLOBALACCELERATOR_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API PortRange()=default
PortRange & WithToPort(int value)
Definition PortRange.h:58
Aws::Utils::Json::JsonValue JsonValue