AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const IpProtocol& GetProtocol() const{ return m_protocol; }
70 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
71 inline void SetProtocol(const IpProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
72 inline void SetProtocol(IpProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
73 inline ContainerPortRange& WithProtocol(const IpProtocol& value) { SetProtocol(value); return *this;}
74 inline ContainerPortRange& WithProtocol(IpProtocol&& value) { SetProtocol(std::move(value)); return *this;}
76 private:
77
78 int m_fromPort;
79 bool m_fromPortHasBeenSet = false;
80
81 int m_toPort;
82 bool m_toPortHasBeenSet = false;
83
84 IpProtocol m_protocol;
85 bool m_protocolHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace GameLift
90} // namespace Aws
ContainerPortRange & WithProtocol(IpProtocol &&value)
void SetProtocol(const IpProtocol &value)
AWS_GAMELIFT_API ContainerPortRange & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerPortRange & WithToPort(int value)
ContainerPortRange & WithProtocol(const 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