AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerPortMapping.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
39 {
40 public:
41 AWS_GAMELIFT_API ContainerPortMapping();
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline int GetContainerPort() const{ return m_containerPort; }
52 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
53 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
54 inline ContainerPortMapping& WithContainerPort(int value) { SetContainerPort(value); return *this;}
56
58
62 inline int GetConnectionPort() const{ return m_connectionPort; }
63 inline bool ConnectionPortHasBeenSet() const { return m_connectionPortHasBeenSet; }
64 inline void SetConnectionPort(int value) { m_connectionPortHasBeenSet = true; m_connectionPort = value; }
65 inline ContainerPortMapping& WithConnectionPort(int value) { SetConnectionPort(value); return *this;}
67
69
72 inline const IpProtocol& GetProtocol() const{ return m_protocol; }
73 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
74 inline void SetProtocol(const IpProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
75 inline void SetProtocol(IpProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
76 inline ContainerPortMapping& WithProtocol(const IpProtocol& value) { SetProtocol(value); return *this;}
77 inline ContainerPortMapping& WithProtocol(IpProtocol&& value) { SetProtocol(std::move(value)); return *this;}
79 private:
80
81 int m_containerPort;
82 bool m_containerPortHasBeenSet = false;
83
84 int m_connectionPort;
85 bool m_connectionPortHasBeenSet = false;
86
87 IpProtocol m_protocol;
88 bool m_protocolHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GameLift
93} // namespace Aws
ContainerPortMapping & WithContainerPort(int value)
ContainerPortMapping & WithConnectionPort(int value)
AWS_GAMELIFT_API ContainerPortMapping(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ContainerPortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerPortMapping & WithProtocol(const IpProtocol &value)
ContainerPortMapping & WithProtocol(IpProtocol &&value)
Aws::Utils::Json::JsonValue JsonValue