AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ConnectionPortRange.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
27 public:
28 AWS_GAMELIFT_API ConnectionPortRange() = default;
31 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
37 inline int GetFromPort() const { return m_fromPort; }
38 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
39 inline void SetFromPort(int value) {
40 m_fromPortHasBeenSet = true;
41 m_fromPort = value;
42 }
43 inline ConnectionPortRange& WithFromPort(int value) {
44 SetFromPort(value);
45 return *this;
46 }
48
50
54 inline int GetToPort() const { return m_toPort; }
55 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
56 inline void SetToPort(int value) {
57 m_toPortHasBeenSet = true;
58 m_toPort = value;
59 }
60 inline ConnectionPortRange& WithToPort(int value) {
61 SetToPort(value);
62 return *this;
63 }
65 private:
66 int m_fromPort{0};
67
68 int m_toPort{0};
69 bool m_fromPortHasBeenSet = false;
70 bool m_toPortHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace GameLift
75} // 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