AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PortRange.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_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 GlobalAccelerator
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_GLOBALACCELERATOR_API PortRange() = default;
34 AWS_GLOBALACCELERATOR_API PortRange(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLOBALACCELERATOR_API PortRange& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
43 inline int GetFromPort() const { return m_fromPort; }
44 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
45 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
46 inline PortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
48
50
53 inline int GetToPort() const { return m_toPort; }
54 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
55 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
56 inline PortRange& WithToPort(int value) { SetToPort(value); return *this;}
58 private:
59
60 int m_fromPort{0};
61 bool m_fromPortHasBeenSet = false;
62
63 int m_toPort{0};
64 bool m_toPortHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace GlobalAccelerator
69} // 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:46
AWS_GLOBALACCELERATOR_API PortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API PortRange()=default
PortRange & WithToPort(int value)
Definition PortRange.h:56
Aws::Utils::Json::JsonValue JsonValue