AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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
50 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
51 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
52 template <typename GameSessionArnT = Aws::String>
53 void SetGameSessionArn(GameSessionArnT&& value) {
54 m_gameSessionArnHasBeenSet = true;
55 m_gameSessionArn = std::forward<GameSessionArnT>(value);
56 }
57 template <typename GameSessionArnT = Aws::String>
59 SetGameSessionArn(std::forward<GameSessionArnT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
70 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
71 template <typename IpAddressT = Aws::String>
72 void SetIpAddress(IpAddressT&& value) {
73 m_ipAddressHasBeenSet = true;
74 m_ipAddress = std::forward<IpAddressT>(value);
75 }
76 template <typename IpAddressT = Aws::String>
78 SetIpAddress(std::forward<IpAddressT>(value));
79 return *this;
80 }
82
84
96 inline const Aws::String& GetDnsName() const { return m_dnsName; }
97 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
98 template <typename DnsNameT = Aws::String>
99 void SetDnsName(DnsNameT&& value) {
100 m_dnsNameHasBeenSet = true;
101 m_dnsName = std::forward<DnsNameT>(value);
102 }
103 template <typename DnsNameT = Aws::String>
105 SetDnsName(std::forward<DnsNameT>(value));
106 return *this;
107 }
109
111
115 inline int64_t GetPort() const { return m_port; }
116 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
117 inline void SetPort(int64_t value) {
118 m_portHasBeenSet = true;
119 m_port = value;
120 }
121 inline GameSessionConnectionInfo& WithPort(int64_t value) {
122 SetPort(value);
123 return *this;
124 }
126
128
132 inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const { return m_matchedPlayerSessions; }
133 inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
134 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
135 void SetMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
136 m_matchedPlayerSessionsHasBeenSet = true;
137 m_matchedPlayerSessions = std::forward<MatchedPlayerSessionsT>(value);
138 }
139 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
140 GameSessionConnectionInfo& WithMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
141 SetMatchedPlayerSessions(std::forward<MatchedPlayerSessionsT>(value));
142 return *this;
143 }
144 template <typename MatchedPlayerSessionsT = MatchedPlayerSession>
145 GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
146 m_matchedPlayerSessionsHasBeenSet = true;
147 m_matchedPlayerSessions.emplace_back(std::forward<MatchedPlayerSessionsT>(value));
148 return *this;
149 }
151
153
164 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
165 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
167 m_playerGatewayStatusHasBeenSet = true;
168 m_playerGatewayStatus = value;
169 }
172 return *this;
173 }
175 private:
176 Aws::String m_gameSessionArn;
177
178 Aws::String m_ipAddress;
179
180 Aws::String m_dnsName;
181
182 int64_t m_port{0};
183
184 Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
185
187 bool m_gameSessionArnHasBeenSet = false;
188 bool m_ipAddressHasBeenSet = false;
189 bool m_dnsNameHasBeenSet = false;
190 bool m_portHasBeenSet = false;
191 bool m_matchedPlayerSessionsHasBeenSet = false;
192 bool m_playerGatewayStatusHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace GameLift
197} // 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