AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConnectionPortRange.h
1
6#pragma once
7#include <aws/gamelift/GameLift_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 GameLift
20{
21namespace Model
22{
23
32 {
33 public:
34 AWS_GAMELIFT_API ConnectionPortRange() = default;
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetFromPort() const { return m_fromPort; }
45 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
46 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
47 inline ConnectionPortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
49
51
55 inline int GetToPort() const { return m_toPort; }
56 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
57 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
58 inline ConnectionPortRange& WithToPort(int value) { SetToPort(value); return *this;}
60 private:
61
62 int m_fromPort{0};
63 bool m_fromPortHasBeenSet = false;
64
65 int m_toPort{0};
66 bool m_toPortHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace GameLift
71} // namespace Aws
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API ConnectionPortRange()=default
ConnectionPortRange & WithFromPort(int value)
ConnectionPortRange & WithToPort(int value)
AWS_GAMELIFT_API ConnectionPortRange(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ConnectionPortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue