AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ContainerPortMapping.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/IpProtocol.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
33 public:
34 AWS_GAMELIFT_API ContainerPortMapping() = default;
35 AWS_GAMELIFT_API ContainerPortMapping(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_GAMELIFT_API ContainerPortMapping& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
45 inline int64_t GetContainerPort() const { return m_containerPort; }
46 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
47 inline void SetContainerPort(int64_t value) {
48 m_containerPortHasBeenSet = true;
49 m_containerPort = value;
50 }
51 inline ContainerPortMapping& WithContainerPort(int64_t value) {
52 SetContainerPort(value);
53 return *this;
54 }
56
58
63 inline int64_t GetConnectionPort() const { return m_connectionPort; }
64 inline bool ConnectionPortHasBeenSet() const { return m_connectionPortHasBeenSet; }
65 inline void SetConnectionPort(int64_t value) {
66 m_connectionPortHasBeenSet = true;
67 m_connectionPort = value;
68 }
70 SetConnectionPort(value);
71 return *this;
72 }
74
76
80 inline IpProtocol GetProtocol() const { return m_protocol; }
81 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
82 inline void SetProtocol(IpProtocol value) {
83 m_protocolHasBeenSet = true;
84 m_protocol = value;
85 }
87 SetProtocol(value);
88 return *this;
89 }
91 private:
92 int64_t m_containerPort{0};
93
94 int64_t m_connectionPort{0};
95
97 bool m_containerPortHasBeenSet = false;
98 bool m_connectionPortHasBeenSet = false;
99 bool m_protocolHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace GameLift
104} // namespace Aws
AWS_GAMELIFT_API ContainerPortMapping()=default
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ContainerPortMapping & WithConnectionPort(int64_t value)
AWS_GAMELIFT_API ContainerPortMapping(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ContainerPortMapping & WithContainerPort(int64_t value)
ContainerPortMapping & WithProtocol(IpProtocol value)
AWS_GAMELIFT_API ContainerPortMapping & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)