AWS SDK for C++

AWS SDK for C++ Version 1.11.817

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/crt/cbor/Cbor.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/MatchedPlayerSession.h>
12#include <aws/gamelift/model/PlayerGatewayStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace GameLift {
23namespace Model {
24
35 public:
36 AWS_GAMELIFT_API GameSessionConnectionInfo() = default;
37 AWS_GAMELIFT_API GameSessionConnectionInfo(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_GAMELIFT_API GameSessionConnectionInfo& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
48 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
49 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
50 template <typename GameSessionArnT = Aws::String>
51 void SetGameSessionArn(GameSessionArnT&& value) {
52 m_gameSessionArnHasBeenSet = true;
53 m_gameSessionArn = std::forward<GameSessionArnT>(value);
54 }
55 template <typename GameSessionArnT = Aws::String>
57 SetGameSessionArn(std::forward<GameSessionArnT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
68 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
69 template <typename IpAddressT = Aws::String>
70 void SetIpAddress(IpAddressT&& value) {
71 m_ipAddressHasBeenSet = true;
72 m_ipAddress = std::forward<IpAddressT>(value);
73 }
74 template <typename IpAddressT = Aws::String>
76 SetIpAddress(std::forward<IpAddressT>(value));
77 return *this;
78 }
80
82
94 inline const Aws::String& GetDnsName() const { return m_dnsName; }
95 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
96 template <typename DnsNameT = Aws::String>
97 void SetDnsName(DnsNameT&& value) {
98 m_dnsNameHasBeenSet = true;
99 m_dnsName = std::forward<DnsNameT>(value);
100 }
101 template <typename DnsNameT = Aws::String>
103 SetDnsName(std::forward<DnsNameT>(value));
104 return *this;
105 }
107
109
113 inline int64_t GetPort() const { return m_port; }
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115 inline void SetPort(int64_t value) {
116 m_portHasBeenSet = true;
117 m_port = value;
118 }
119 inline GameSessionConnectionInfo& WithPort(int64_t value) {
120 SetPort(value);
121 return *this;
122 }
124
126
130 inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const { return m_matchedPlayerSessions; }
131 inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
132 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
133 void SetMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
134 m_matchedPlayerSessionsHasBeenSet = true;
135 m_matchedPlayerSessions = std::forward<MatchedPlayerSessionsT>(value);
136 }
137 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
138 GameSessionConnectionInfo& WithMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
139 SetMatchedPlayerSessions(std::forward<MatchedPlayerSessionsT>(value));
140 return *this;
141 }
142 template <typename MatchedPlayerSessionsT = MatchedPlayerSession>
143 GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
144 m_matchedPlayerSessionsHasBeenSet = true;
145 m_matchedPlayerSessions.emplace_back(std::forward<MatchedPlayerSessionsT>(value));
146 return *this;
147 }
149
151
162 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
163 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
165 m_playerGatewayStatusHasBeenSet = true;
166 m_playerGatewayStatus = value;
167 }
170 return *this;
171 }
173 private:
174 Aws::String m_gameSessionArn;
175
176 Aws::String m_ipAddress;
177
178 Aws::String m_dnsName;
179
180 int64_t m_port{0};
181
182 Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
183
185 bool m_gameSessionArnHasBeenSet = false;
186 bool m_ipAddressHasBeenSet = false;
187 bool m_dnsNameHasBeenSet = false;
188 bool m_portHasBeenSet = false;
189 bool m_matchedPlayerSessionsHasBeenSet = false;
190 bool m_playerGatewayStatusHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace GameLift
195} // namespace Aws
GameSessionConnectionInfo & WithGameSessionArn(GameSessionArnT &&value)
AWS_GAMELIFT_API GameSessionConnectionInfo()=default
AWS_GAMELIFT_API GameSessionConnectionInfo(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< MatchedPlayerSession > & GetMatchedPlayerSessions() const
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API GameSessionConnectionInfo & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
GameSessionConnectionInfo & WithMatchedPlayerSessions(MatchedPlayerSessionsT &&value)
GameSessionConnectionInfo & AddMatchedPlayerSessions(MatchedPlayerSessionsT &&value)
GameSessionConnectionInfo & WithPlayerGatewayStatus(PlayerGatewayStatus value)
GameSessionConnectionInfo & WithPort(int64_t 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