AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameSessionConnectionInfo.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/model/MatchedPlayerSession.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_GAMELIFT_API GameSessionConnectionInfo();
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetGameSessionArn() const{ return m_gameSessionArn; }
51 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
52 inline void SetGameSessionArn(const Aws::String& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = value; }
53 inline void SetGameSessionArn(Aws::String&& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = std::move(value); }
54 inline void SetGameSessionArn(const char* value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn.assign(value); }
55 inline GameSessionConnectionInfo& WithGameSessionArn(const Aws::String& value) { SetGameSessionArn(value); return *this;}
56 inline GameSessionConnectionInfo& WithGameSessionArn(Aws::String&& value) { SetGameSessionArn(std::move(value)); return *this;}
57 inline GameSessionConnectionInfo& WithGameSessionArn(const char* value) { SetGameSessionArn(value); return *this;}
59
61
65 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
66 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
67 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
68 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
69 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
70 inline GameSessionConnectionInfo& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
71 inline GameSessionConnectionInfo& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
72 inline GameSessionConnectionInfo& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
74
76
88 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
89 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
90 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
91 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
92 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
93 inline GameSessionConnectionInfo& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
94 inline GameSessionConnectionInfo& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
95 inline GameSessionConnectionInfo& WithDnsName(const char* value) { SetDnsName(value); return *this;}
97
99
103 inline int GetPort() const{ return m_port; }
104 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
105 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
106 inline GameSessionConnectionInfo& WithPort(int value) { SetPort(value); return *this;}
108
110
114 inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const{ return m_matchedPlayerSessions; }
115 inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
116 inline void SetMatchedPlayerSessions(const Aws::Vector<MatchedPlayerSession>& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions = value; }
117 inline void SetMatchedPlayerSessions(Aws::Vector<MatchedPlayerSession>&& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions = std::move(value); }
120 inline GameSessionConnectionInfo& AddMatchedPlayerSessions(const MatchedPlayerSession& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions.push_back(value); return *this; }
121 inline GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSession&& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions.push_back(std::move(value)); return *this; }
123 private:
124
125 Aws::String m_gameSessionArn;
126 bool m_gameSessionArnHasBeenSet = false;
127
128 Aws::String m_ipAddress;
129 bool m_ipAddressHasBeenSet = false;
130
131 Aws::String m_dnsName;
132 bool m_dnsNameHasBeenSet = false;
133
134 int m_port;
135 bool m_portHasBeenSet = false;
136
137 Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
138 bool m_matchedPlayerSessionsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace GameLift
143} // namespace Aws
GameSessionConnectionInfo & WithDnsName(const char *value)
GameSessionConnectionInfo & WithIpAddress(const Aws::String &value)
GameSessionConnectionInfo & WithGameSessionArn(const char *value)
GameSessionConnectionInfo & WithDnsName(const Aws::String &value)
const Aws::Vector< MatchedPlayerSession > & GetMatchedPlayerSessions() const
AWS_GAMELIFT_API GameSessionConnectionInfo(Aws::Utils::Json::JsonView jsonValue)
GameSessionConnectionInfo & WithIpAddress(Aws::String &&value)
void SetMatchedPlayerSessions(Aws::Vector< MatchedPlayerSession > &&value)
AWS_GAMELIFT_API GameSessionConnectionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
GameSessionConnectionInfo & WithMatchedPlayerSessions(const Aws::Vector< MatchedPlayerSession > &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameSessionConnectionInfo & WithMatchedPlayerSessions(Aws::Vector< MatchedPlayerSession > &&value)
void SetMatchedPlayerSessions(const Aws::Vector< MatchedPlayerSession > &value)
GameSessionConnectionInfo & AddMatchedPlayerSessions(const MatchedPlayerSession &value)
GameSessionConnectionInfo & WithIpAddress(const char *value)
GameSessionConnectionInfo & WithGameSessionArn(const Aws::String &value)
GameSessionConnectionInfo & AddMatchedPlayerSessions(MatchedPlayerSession &&value)
GameSessionConnectionInfo & WithDnsName(Aws::String &&value)
GameSessionConnectionInfo & WithGameSessionArn(Aws::String &&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