AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ConnectionPortRange.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
30 public:
31 AWS_GAMELIFT_API ConnectionPortRange() = default;
32 AWS_GAMELIFT_API ConnectionPortRange(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API ConnectionPortRange& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline int64_t GetFromPort() const { return m_fromPort; }
41 inline bool FromPortHasBeenSet() const { return m_fromPortHasBeenSet; }
42 inline void SetFromPort(int64_t value) {
43 m_fromPortHasBeenSet = true;
44 m_fromPort = value;
45 }
46 inline ConnectionPortRange& WithFromPort(int64_t value) {
47 SetFromPort(value);
48 return *this;
49 }
51
53
57 inline int64_t GetToPort() const { return m_toPort; }
58 inline bool ToPortHasBeenSet() const { return m_toPortHasBeenSet; }
59 inline void SetToPort(int64_t value) {
60 m_toPortHasBeenSet = true;
61 m_toPort = value;
62 }
63 inline ConnectionPortRange& WithToPort(int64_t value) {
64 SetToPort(value);
65 return *this;
66 }
68 private:
69 int64_t m_fromPort{0};
70
71 int64_t m_toPort{0};
72 bool m_fromPortHasBeenSet = false;
73 bool m_toPortHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace GameLift
78} // namespace Aws
ConnectionPortRange & WithFromPort(int64_t value)
AWS_GAMELIFT_API ConnectionPortRange()=default
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ConnectionPortRange & WithToPort(int64_t value)
AWS_GAMELIFT_API ConnectionPortRange & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API ConnectionPortRange(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)