AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_GAMELIFT_API ContainerPortRange() = default;
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 ContainerPortRange& WithFromPort(int value) { SetFromPort(value); return *this;}
52
54
59 inline int GetToPort() const { return m_toPort; }
60 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
61 inline void SetToPort(int value) { m_toPortHasBeenSet = true; m_toPort = value; }
62 inline ContainerPortRange& WithToPort(int value) { SetToPort(value); return *this;}
64
66
69 inline IpProtocol GetProtocol() const { return m_protocol; }
70 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
71 inline void SetProtocol(IpProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
72 inline ContainerPortRange& WithProtocol(IpProtocol value) { SetProtocol(value); return *this;}
74 private:
75
76 int m_fromPort{0};
77 bool m_fromPortHasBeenSet = false;
78
79 int m_toPort{0};
80 bool m_toPortHasBeenSet = false;
81
83 bool m_protocolHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace GameLift
88} // 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