AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
34 public:
35 AWS_GAMELIFT_API GameSessionConnectionInfo() = default;
38 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
45 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
46 template <typename GameSessionArnT = Aws::String>
47 void SetGameSessionArn(GameSessionArnT&& value) {
48 m_gameSessionArnHasBeenSet = true;
49 m_gameSessionArn = std::forward<GameSessionArnT>(value);
50 }
51 template <typename GameSessionArnT = Aws::String>
53 SetGameSessionArn(std::forward<GameSessionArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
64 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
65 template <typename IpAddressT = Aws::String>
66 void SetIpAddress(IpAddressT&& value) {
67 m_ipAddressHasBeenSet = true;
68 m_ipAddress = std::forward<IpAddressT>(value);
69 }
70 template <typename IpAddressT = Aws::String>
72 SetIpAddress(std::forward<IpAddressT>(value));
73 return *this;
74 }
76
78
90 inline const Aws::String& GetDnsName() const { return m_dnsName; }
91 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
92 template <typename DnsNameT = Aws::String>
93 void SetDnsName(DnsNameT&& value) {
94 m_dnsNameHasBeenSet = true;
95 m_dnsName = std::forward<DnsNameT>(value);
96 }
97 template <typename DnsNameT = Aws::String>
99 SetDnsName(std::forward<DnsNameT>(value));
100 return *this;
101 }
103
105
109 inline int GetPort() const { return m_port; }
110 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
111 inline void SetPort(int value) {
112 m_portHasBeenSet = true;
113 m_port = value;
114 }
116 SetPort(value);
117 return *this;
118 }
120
122
126 inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const { return m_matchedPlayerSessions; }
127 inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
128 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
129 void SetMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
130 m_matchedPlayerSessionsHasBeenSet = true;
131 m_matchedPlayerSessions = std::forward<MatchedPlayerSessionsT>(value);
132 }
133 template <typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
134 GameSessionConnectionInfo& WithMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
135 SetMatchedPlayerSessions(std::forward<MatchedPlayerSessionsT>(value));
136 return *this;
137 }
138 template <typename MatchedPlayerSessionsT = MatchedPlayerSession>
139 GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSessionsT&& value) {
140 m_matchedPlayerSessionsHasBeenSet = true;
141 m_matchedPlayerSessions.emplace_back(std::forward<MatchedPlayerSessionsT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_gameSessionArn;
147 bool m_gameSessionArnHasBeenSet = false;
148
149 Aws::String m_ipAddress;
150 bool m_ipAddressHasBeenSet = false;
151
152 Aws::String m_dnsName;
153 bool m_dnsNameHasBeenSet = false;
154
155 int m_port{0};
156 bool m_portHasBeenSet = false;
157
158 Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
159 bool m_matchedPlayerSessionsHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace GameLift
164} // 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 & 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