AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename GameSessionArnT = Aws::String>
53 void SetGameSessionArn(GameSessionArnT&& value) { m_gameSessionArnHasBeenSet = true; m_gameSessionArn = std::forward<GameSessionArnT>(value); }
54 template<typename GameSessionArnT = Aws::String>
55 GameSessionConnectionInfo& WithGameSessionArn(GameSessionArnT&& value) { SetGameSessionArn(std::forward<GameSessionArnT>(value)); return *this;}
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) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
67 template<typename IpAddressT = Aws::String>
68 GameSessionConnectionInfo& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
70
72
84 inline const Aws::String& GetDnsName() const { return m_dnsName; }
85 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
86 template<typename DnsNameT = Aws::String>
87 void SetDnsName(DnsNameT&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::forward<DnsNameT>(value); }
88 template<typename DnsNameT = Aws::String>
89 GameSessionConnectionInfo& WithDnsName(DnsNameT&& value) { SetDnsName(std::forward<DnsNameT>(value)); return *this;}
91
93
97 inline int GetPort() const { return m_port; }
98 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
99 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
100 inline GameSessionConnectionInfo& WithPort(int value) { SetPort(value); return *this;}
102
104
108 inline const Aws::Vector<MatchedPlayerSession>& GetMatchedPlayerSessions() const { return m_matchedPlayerSessions; }
109 inline bool MatchedPlayerSessionsHasBeenSet() const { return m_matchedPlayerSessionsHasBeenSet; }
110 template<typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
111 void SetMatchedPlayerSessions(MatchedPlayerSessionsT&& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions = std::forward<MatchedPlayerSessionsT>(value); }
112 template<typename MatchedPlayerSessionsT = Aws::Vector<MatchedPlayerSession>>
113 GameSessionConnectionInfo& WithMatchedPlayerSessions(MatchedPlayerSessionsT&& value) { SetMatchedPlayerSessions(std::forward<MatchedPlayerSessionsT>(value)); return *this;}
114 template<typename MatchedPlayerSessionsT = MatchedPlayerSession>
115 GameSessionConnectionInfo& AddMatchedPlayerSessions(MatchedPlayerSessionsT&& value) { m_matchedPlayerSessionsHasBeenSet = true; m_matchedPlayerSessions.emplace_back(std::forward<MatchedPlayerSessionsT>(value)); return *this; }
117 private:
118
119 Aws::String m_gameSessionArn;
120 bool m_gameSessionArnHasBeenSet = false;
121
122 Aws::String m_ipAddress;
123 bool m_ipAddressHasBeenSet = false;
124
125 Aws::String m_dnsName;
126 bool m_dnsNameHasBeenSet = false;
127
128 int m_port{0};
129 bool m_portHasBeenSet = false;
130
131 Aws::Vector<MatchedPlayerSession> m_matchedPlayerSessions;
132 bool m_matchedPlayerSessionsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace GameLift
137} // 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