AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
PlayerConnectionEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
29 public:
30 AWS_GAMELIFT_API PlayerConnectionEndpoint() = default;
33 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() 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 int GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) {
64 m_portHasBeenSet = true;
65 m_port = value;
66 }
68 SetPort(value);
69 return *this;
70 }
72 private:
73 Aws::String m_ipAddress;
74
75 int m_port{0};
76 bool m_ipAddressHasBeenSet = false;
77 bool m_portHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GameLift
82} // namespace Aws
PlayerConnectionEndpoint & WithPort(int value)
AWS_GAMELIFT_API PlayerConnectionEndpoint()=default
PlayerConnectionEndpoint & WithIpAddress(IpAddressT &&value)
AWS_GAMELIFT_API PlayerConnectionEndpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API PlayerConnectionEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue