AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ContainerPortRange.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/IpProtocol.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
31 public:
32 AWS_GAMELIFT_API ContainerPortRange() = default;
35 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetFromPort() const { return m_fromPort; }
42 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
43 inline void SetFromPort(int value) {
44 m_fromPortHasBeenSet = true;
45 m_fromPort = value;
46 }
47 inline ContainerPortRange& WithFromPort(int value) {
48 SetFromPort(value);
49 return *this;
50 }
52
54
59 inline int GetToPort() const { return m_toPort; }
60 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
61 inline void SetToPort(int value) {
62 m_toPortHasBeenSet = true;
63 m_toPort = value;
64 }
65 inline ContainerPortRange& WithToPort(int value) {
66 SetToPort(value);
67 return *this;
68 }
70
72
75 inline IpProtocol GetProtocol() const { return m_protocol; }
76 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
77 inline void SetProtocol(IpProtocol value) {
78 m_protocolHasBeenSet = true;
79 m_protocol = value;
80 }
82 SetProtocol(value);
83 return *this;
84 }
86 private:
87 int m_fromPort{0};
88
89 int m_toPort{0};
90
92 bool m_fromPortHasBeenSet = false;
93 bool m_toPortHasBeenSet = false;
94 bool m_protocolHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GameLift
99} // namespace Aws
AWS_GAMELIFT_API ContainerPortRange()=default
AWS_GAMELIFT_API ContainerPortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerPortRange & WithToPort(int value)
ContainerPortRange & WithProtocol(IpProtocol value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API ContainerPortRange(Aws::Utils::Json::JsonView jsonValue)
ContainerPortRange & WithFromPort(int value)
Aws::Utils::Json::JsonValue JsonValue