AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_GAMELIFT_API ConnectionPortRange();
40 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline int GetFromPort() const{ return m_fromPort; }
48 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
49 inline void SetFromPort(int value) { m_fromPortHasBeenSet = true; m_fromPort = value; }
50 inline ConnectionPortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
52
54
58 inline int GetToPort() const{ return m_toPort; }
59 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
60 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
61 inline ConnectionPortRange& WithToPort(int value) { SetToPort(value); return *this;}
63 private:
64
65 int m_fromPort;
66 bool m_fromPortHasBeenSet = false;
67
68 int m_toPort;
69 bool m_toPortHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace GameLift
74} // namespace Aws
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
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