AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
PlayerConnectionDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/PlayerConnectionEndpoint.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift {
23namespace Model {
24
38 public:
39 AWS_GAMELIFT_API PlayerConnectionDetail() = default;
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetPlayerId() const { return m_playerId; }
49 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
50 template <typename PlayerIdT = Aws::String>
51 void SetPlayerId(PlayerIdT&& value) {
52 m_playerIdHasBeenSet = true;
53 m_playerId = std::forward<PlayerIdT>(value);
54 }
55 template <typename PlayerIdT = Aws::String>
57 SetPlayerId(std::forward<PlayerIdT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<PlayerConnectionEndpoint>& GetEndpoints() const { return m_endpoints; }
70 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
71 template <typename EndpointsT = Aws::Vector<PlayerConnectionEndpoint>>
72 void SetEndpoints(EndpointsT&& value) {
73 m_endpointsHasBeenSet = true;
74 m_endpoints = std::forward<EndpointsT>(value);
75 }
76 template <typename EndpointsT = Aws::Vector<PlayerConnectionEndpoint>>
78 SetEndpoints(std::forward<EndpointsT>(value));
79 return *this;
80 }
81 template <typename EndpointsT = PlayerConnectionEndpoint>
82 PlayerConnectionDetail& AddEndpoints(EndpointsT&& value) {
83 m_endpointsHasBeenSet = true;
84 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetPlayerGatewayToken() const { return m_playerGatewayToken; }
96 inline bool PlayerGatewayTokenHasBeenSet() const { return m_playerGatewayTokenHasBeenSet; }
97 template <typename PlayerGatewayTokenT = Aws::String>
98 void SetPlayerGatewayToken(PlayerGatewayTokenT&& value) {
99 m_playerGatewayTokenHasBeenSet = true;
100 m_playerGatewayToken = std::forward<PlayerGatewayTokenT>(value);
101 }
102 template <typename PlayerGatewayTokenT = Aws::String>
103 PlayerConnectionDetail& WithPlayerGatewayToken(PlayerGatewayTokenT&& value) {
104 SetPlayerGatewayToken(std::forward<PlayerGatewayTokenT>(value));
105 return *this;
106 }
108
110
119 inline const Aws::Utils::DateTime& GetExpiration() const { return m_expiration; }
120 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
121 template <typename ExpirationT = Aws::Utils::DateTime>
122 void SetExpiration(ExpirationT&& value) {
123 m_expirationHasBeenSet = true;
124 m_expiration = std::forward<ExpirationT>(value);
125 }
126 template <typename ExpirationT = Aws::Utils::DateTime>
128 SetExpiration(std::forward<ExpirationT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_playerId;
134
136
137 Aws::String m_playerGatewayToken;
138
139 Aws::Utils::DateTime m_expiration{};
140 bool m_playerIdHasBeenSet = false;
141 bool m_endpointsHasBeenSet = false;
142 bool m_playerGatewayTokenHasBeenSet = false;
143 bool m_expirationHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace GameLift
148} // namespace Aws
const Aws::Vector< PlayerConnectionEndpoint > & GetEndpoints() const
PlayerConnectionDetail & WithPlayerGatewayToken(PlayerGatewayTokenT &&value)
AWS_GAMELIFT_API PlayerConnectionDetail()=default
AWS_GAMELIFT_API PlayerConnectionDetail(Aws::Utils::Json::JsonView jsonValue)
PlayerConnectionDetail & WithPlayerId(PlayerIdT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API PlayerConnectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
PlayerConnectionDetail & WithEndpoints(EndpointsT &&value)
void SetPlayerGatewayToken(PlayerGatewayTokenT &&value)
PlayerConnectionDetail & WithExpiration(ExpirationT &&value)
PlayerConnectionDetail & AddEndpoints(EndpointsT &&value)
const Aws::Utils::DateTime & GetExpiration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue