AWS SDK for C++  1.9.159
AWS SDK for C++
GameSessionConnectionInfo.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
39  {
40  public:
45 
46 
50  inline const Aws::String& GetGameSessionArn() const{ return m_gameSessionArn; }
51 
55  inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
56 
60  inline void SetGameSessionArn(const Aws::String& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = value; }
61 
65  inline void SetGameSessionArn(Aws::String&& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = std::move(value); }
66 
70  inline void SetGameSessionArn(const char* value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn.assign(value); }
71 
75  inline GameSessionConnectionInfo& WithGameSessionArn(const Aws::String& value) { SetGameSessionArn(value); return *this;}
76 
80  inline GameSessionConnectionInfo& WithGameSessionArn(Aws::String&& value) { SetGameSessionArn(std::move(value)); return *this;}
81 
85  inline GameSessionConnectionInfo& WithGameSessionArn(const char* value) { SetGameSessionArn(value); return *this;}
86 
87 
92  inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
93 
98  inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
99 
104  inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
105 
110  inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
111 
116  inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
117 
122  inline GameSessionConnectionInfo& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
123 
128  inline GameSessionConnectionInfo& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
129 
134  inline GameSessionConnectionInfo& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
135 
136 
149  inline const Aws::String& GetDnsName() const{ return m_dnsName; }
150 
163  inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
164 
177  inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
178 
191  inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
192 
205  inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
206 
219  inline GameSessionConnectionInfo& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
220 
233  inline GameSessionConnectionInfo& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
234 
247  inline GameSessionConnectionInfo& WithDnsName(const char* value) { SetDnsName(value); return *this;}
248 
249 
254  inline int GetPort() const{ return m_port; }
255 
260  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
261 
266  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
267 
272  inline GameSessionConnectionInfo& WithPort(int value) { SetPort(value); return *this;}
273 
274 
279  inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const{ return m_matchedPlayerSessions; }
280 
285  inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
286 
291  inline void SetMatchedPlayerSessions(const Aws::Vector<MatchedPlayerSession>& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions = value; }
292 
297  inline void SetMatchedPlayerSessions(Aws::Vector<MatchedPlayerSession>&& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions = std::move(value); }
298 
303  inline GameSessionConnectionInfo& WithMatchedPlayerSessions(const Aws::Vector<MatchedPlayerSession>& value) { SetMatchedPlayerSessions(value); return *this;}
304 
309  inline GameSessionConnectionInfo& WithMatchedPlayerSessions(Aws::Vector<MatchedPlayerSession>&& value) { SetMatchedPlayerSessions(std::move(value)); return *this;}
310 
315  inline GameSessionConnectionInfo& AddMatchedPlayerSessions(const MatchedPlayerSession& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions.push_back(value); return *this; }
316 
321  inline GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSession&& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions.push_back(std::move(value)); return *this; }
322 
323  private:
324 
325  Aws::String m_gameSessionArn;
326  bool m_gameSessionArnHasBeenSet;
327 
328  Aws::String m_ipAddress;
329  bool m_ipAddressHasBeenSet;
330 
331  Aws::String m_dnsName;
332  bool m_dnsNameHasBeenSet;
333 
334  int m_port;
335  bool m_portHasBeenSet;
336 
337  Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
338  bool m_matchedPlayerSessionsHasBeenSet;
339  };
340 
341 } // namespace Model
342 } // namespace GameLift
343 } // namespace Aws
Aws::GameLift::Model::GameSessionConnectionInfo::SetPort
void SetPort(int value)
Definition: GameSessionConnectionInfo.h:266
Aws::GameLift::Model::GameSessionConnectionInfo::SetMatchedPlayerSessions
void SetMatchedPlayerSessions(Aws::Vector< MatchedPlayerSession > &&value)
Definition: GameSessionConnectionInfo.h:297
Aws::GameLift::Model::GameSessionConnectionInfo::SetIpAddress
void SetIpAddress(Aws::String &&value)
Definition: GameSessionConnectionInfo.h:110
Aws::GameLift::Model::GameSessionConnectionInfo::SetGameSessionArn
void SetGameSessionArn(const char *value)
Definition: GameSessionConnectionInfo.h:70
Aws::GameLift::Model::GameSessionConnectionInfo::AddMatchedPlayerSessions
GameSessionConnectionInfo & AddMatchedPlayerSessions(const MatchedPlayerSession &value)
Definition: GameSessionConnectionInfo.h:315
Aws::GameLift::Model::GameSessionConnectionInfo::WithGameSessionArn
GameSessionConnectionInfo & WithGameSessionArn(const Aws::String &value)
Definition: GameSessionConnectionInfo.h:75
Aws::GameLift::Model::GameSessionConnectionInfo::SetDnsName
void SetDnsName(const Aws::String &value)
Definition: GameSessionConnectionInfo.h:177
MatchedPlayerSession.h
Aws::GameLift::Model::GameSessionConnectionInfo::WithDnsName
GameSessionConnectionInfo & WithDnsName(const char *value)
Definition: GameSessionConnectionInfo.h:247
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::GameSessionConnectionInfo::SetMatchedPlayerSessions
void SetMatchedPlayerSessions(const Aws::Vector< MatchedPlayerSession > &value)
Definition: GameSessionConnectionInfo.h:291
Aws::GameLift::Model::MatchedPlayerSession
Definition: MatchedPlayerSession.h:37
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::GameSessionConnectionInfo::WithIpAddress
GameSessionConnectionInfo & WithIpAddress(const Aws::String &value)
Definition: GameSessionConnectionInfo.h:122
Aws::GameLift::Model::GameSessionConnectionInfo::WithMatchedPlayerSessions
GameSessionConnectionInfo & WithMatchedPlayerSessions(const Aws::Vector< MatchedPlayerSession > &value)
Definition: GameSessionConnectionInfo.h:303
AWSVector.h
Aws::GameLift::Model::GameSessionConnectionInfo
Definition: GameSessionConnectionInfo.h:39
Aws::GameLift::Model::GameSessionConnectionInfo::WithGameSessionArn
GameSessionConnectionInfo & WithGameSessionArn(Aws::String &&value)
Definition: GameSessionConnectionInfo.h:80
Aws::GameLift::Model::GameSessionConnectionInfo::operator=
GameSessionConnectionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
GameLift_EXPORTS.h
Aws::GameLift::Model::GameSessionConnectionInfo::GameSessionConnectionInfo
GameSessionConnectionInfo()
Aws::GameLift::Model::GameSessionConnectionInfo::SetDnsName
void SetDnsName(const char *value)
Definition: GameSessionConnectionInfo.h:205
Aws::GameLift::Model::GameSessionConnectionInfo::WithPort
GameSessionConnectionInfo & WithPort(int value)
Definition: GameSessionConnectionInfo.h:272
Aws::GameLift::Model::GameSessionConnectionInfo::GetDnsName
const Aws::String & GetDnsName() const
Definition: GameSessionConnectionInfo.h:149
Aws::GameLift::Model::GameSessionConnectionInfo::GetIpAddress
const Aws::String & GetIpAddress() const
Definition: GameSessionConnectionInfo.h:92
Aws::GameLift::Model::GameSessionConnectionInfo::WithMatchedPlayerSessions
GameSessionConnectionInfo & WithMatchedPlayerSessions(Aws::Vector< MatchedPlayerSession > &&value)
Definition: GameSessionConnectionInfo.h:309
Aws::GameLift::Model::GameSessionConnectionInfo::PortHasBeenSet
bool PortHasBeenSet() const
Definition: GameSessionConnectionInfo.h:260
Aws::GameLift::Model::GameSessionConnectionInfo::IpAddressHasBeenSet
bool IpAddressHasBeenSet() const
Definition: GameSessionConnectionInfo.h:98
Aws::GameLift::Model::GameSessionConnectionInfo::DnsNameHasBeenSet
bool DnsNameHasBeenSet() const
Definition: GameSessionConnectionInfo.h:163
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GameLift::Model::GameSessionConnectionInfo::SetIpAddress
void SetIpAddress(const Aws::String &value)
Definition: GameSessionConnectionInfo.h:104
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::GameSessionConnectionInfo::SetDnsName
void SetDnsName(Aws::String &&value)
Definition: GameSessionConnectionInfo.h:191
Aws::GameLift::Model::GameSessionConnectionInfo::AddMatchedPlayerSessions
GameSessionConnectionInfo & AddMatchedPlayerSessions(MatchedPlayerSession &&value)
Definition: GameSessionConnectionInfo.h:321
Aws::GameLift::Model::GameSessionConnectionInfo::WithDnsName
GameSessionConnectionInfo & WithDnsName(const Aws::String &value)
Definition: GameSessionConnectionInfo.h:219
Aws::GameLift::Model::GameSessionConnectionInfo::GetPort
int GetPort() const
Definition: GameSessionConnectionInfo.h:254
Aws::GameLift::Model::GameSessionConnectionInfo::GameSessionConnectionInfo
GameSessionConnectionInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::GameSessionConnectionInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::GameSessionConnectionInfo::WithDnsName
GameSessionConnectionInfo & WithDnsName(Aws::String &&value)
Definition: GameSessionConnectionInfo.h:233
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::GameSessionConnectionInfo::WithIpAddress
GameSessionConnectionInfo & WithIpAddress(const char *value)
Definition: GameSessionConnectionInfo.h:134
Aws::GameLift::Model::GameSessionConnectionInfo::WithIpAddress
GameSessionConnectionInfo & WithIpAddress(Aws::String &&value)
Definition: GameSessionConnectionInfo.h:128
Aws::GameLift::Model::GameSessionConnectionInfo::GameSessionArnHasBeenSet
bool GameSessionArnHasBeenSet() const
Definition: GameSessionConnectionInfo.h:55
Aws::GameLift::Model::GameSessionConnectionInfo::GetGameSessionArn
const Aws::String & GetGameSessionArn() const
Definition: GameSessionConnectionInfo.h:50
Aws::GameLift::Model::GameSessionConnectionInfo::WithGameSessionArn
GameSessionConnectionInfo & WithGameSessionArn(const char *value)
Definition: GameSessionConnectionInfo.h:85
Aws::GameLift::Model::GameSessionConnectionInfo::SetGameSessionArn
void SetGameSessionArn(Aws::String &&value)
Definition: GameSessionConnectionInfo.h:65
Aws::GameLift::Model::GameSessionConnectionInfo::SetIpAddress
void SetIpAddress(const char *value)
Definition: GameSessionConnectionInfo.h:116
Aws::GameLift::Model::GameSessionConnectionInfo::SetGameSessionArn
void SetGameSessionArn(const Aws::String &value)
Definition: GameSessionConnectionInfo.h:60
Aws::GameLift::Model::GameSessionConnectionInfo::GetMatchedPlayerSessions
const Aws::Vector< MatchedPlayerSession > & GetMatchedPlayerSessions() const
Definition: GameSessionConnectionInfo.h:279
Aws::GameLift::Model::GameSessionConnectionInfo::MatchedPlayerSessionsHasBeenSet
bool MatchedPlayerSessionsHasBeenSet() const
Definition: GameSessionConnectionInfo.h:285