AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
PlayerConnectionEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/gamelift/GameLift_EXPORTS.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
29 public:
30 AWS_GAMELIFT_API PlayerConnectionEndpoint() = default;
31 AWS_GAMELIFT_API PlayerConnectionEndpoint(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_GAMELIFT_API PlayerConnectionEndpoint& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
41 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
42 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
43 template <typename IpAddressT = Aws::String>
44 void SetIpAddress(IpAddressT&& value) {
45 m_ipAddressHasBeenSet = true;
46 m_ipAddress = std::forward<IpAddressT>(value);
47 }
48 template <typename IpAddressT = Aws::String>
50 SetIpAddress(std::forward<IpAddressT>(value));
51 return *this;
52 }
54
56
61 inline int64_t GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int64_t value) {
64 m_portHasBeenSet = true;
65 m_port = value;
66 }
67 inline PlayerConnectionEndpoint& WithPort(int64_t value) {
68 SetPort(value);
69 return *this;
70 }
72 private:
73 Aws::String m_ipAddress;
74
75 int64_t m_port{0};
76 bool m_ipAddressHasBeenSet = false;
77 bool m_portHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GameLift
82} // namespace Aws
AWS_GAMELIFT_API PlayerConnectionEndpoint(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API PlayerConnectionEndpoint & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API PlayerConnectionEndpoint()=default
PlayerConnectionEndpoint & WithIpAddress(IpAddressT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PlayerConnectionEndpoint & WithPort(int64_t value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String