AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GameSessionConnectionInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/MatchedPlayerSession.h>
11#include <aws/gamelift/model/PlayerGatewayStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift {
23namespace Model {
24
35 public:
36 AWS_GAMELIFT_API GameSessionConnectionInfo() = default;
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
46 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
47 template <typename GameSessionArnT = Aws::String>
48 void SetGameSessionArn(GameSessionArnT&& value) {
49 m_gameSessionArnHasBeenSet = true;
50 m_gameSessionArn = std::forward<GameSessionArnT>(value);
51 }
52 template <typename GameSessionArnT = Aws::String>
54 SetGameSessionArn(std::forward<GameSessionArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
65 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
66 template <typename IpAddressT = Aws::String>
67 void SetIpAddress(IpAddressT&& value) {
68 m_ipAddressHasBeenSet = true;
69 m_ipAddress = std::forward<IpAddressT>(value);
70 }
71 template <typename IpAddressT = Aws::String>
73 SetIpAddress(std::forward<IpAddressT>(value));
74 return *this;
75 }
77
79
91 inline const Aws::String& GetDnsName() const { return m_dnsName; }
92 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
93 template <typename DnsNameT = Aws::String>
94 void SetDnsName(DnsNameT&& value) {
95 m_dnsNameHasBeenSet = true;
96 m_dnsName = std::forward<DnsNameT>(value);
97 }
98 template <typename DnsNameT = Aws::String>
100 SetDnsName(std::forward<DnsNameT>(value));
101 return *this;
102 }
104
106
110 inline int GetPort() const { return m_port; }
111 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
112 inline void SetPort(int value) {
113 m_portHasBeenSet = true;
114 m_port = value;
115 }
117 SetPort(value);
118 return *this;
119 }
121
123
127 inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const { return m_matchedPlayerSessions; }
128 inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
129 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
130 void SetMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
131 m_matchedPlayerSessionsHasBeenSet = true;
132 m_matchedPlayerSessions = std::forward<MatchedPlayerSessionsT>(value);
133 }
134 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
135 GameSessionConnectionInfo& WithMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
136 SetMatchedPlayerSessions(std::forward<MatchedPlayerSessionsT>(value));
137 return *this;
138 }
139 template <typename MatchedPlayerSessionsT = MatchedPlayerSession>
140 GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
141 m_matchedPlayerSessionsHasBeenSet = true;
142 m_matchedPlayerSessions.emplace_back(std::forward<MatchedPlayerSessionsT>(value));
143 return *this;
144 }
146
148
159 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
160 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
162 m_playerGatewayStatusHasBeenSet = true;
163 m_playerGatewayStatus = value;
164 }
167 return *this;
168 }
170 private:
171 Aws::String m_gameSessionArn;
172
173 Aws::String m_ipAddress;
174
175 Aws::String m_dnsName;
176
177 int m_port{0};
178
179 Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
180
182 bool m_gameSessionArnHasBeenSet = false;
183 bool m_ipAddressHasBeenSet = false;
184 bool m_dnsNameHasBeenSet = false;
185 bool m_portHasBeenSet = false;
186 bool m_matchedPlayerSessionsHasBeenSet = false;
187 bool m_playerGatewayStatusHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace GameLift
192} // namespace Aws
GameSessionConnectionInfo & WithGameSessionArn(GameSessionArnT &&value)
AWS_GAMELIFT_API GameSessionConnectionInfo()=default
const Aws::Vector< MatchedPlayerSession > & GetMatchedPlayerSessions() const
AWS_GAMELIFT_API GameSessionConnectionInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API GameSessionConnectionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
GameSessionConnectionInfo & WithMatchedPlayerSessions(MatchedPlayerSessionsT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameSessionConnectionInfo & AddMatchedPlayerSessions(MatchedPlayerSessionsT &&value)
GameSessionConnectionInfo & WithPlayerGatewayStatus(PlayerGatewayStatus value)
GameSessionConnectionInfo & WithIpAddress(IpAddressT &&value)
void SetMatchedPlayerSessions(MatchedPlayerSessionsT &&value)
GameSessionConnectionInfo & WithDnsName(DnsNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue