AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
PlayerLatency.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
33 public:
34 AWS_GAMELIFT_API PlayerLatency() = default;
35 AWS_GAMELIFT_API PlayerLatency(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetPlayerId() const { return m_playerId; }
44 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
45 template <typename PlayerIdT = Aws::String>
46 void SetPlayerId(PlayerIdT&& value) {
47 m_playerIdHasBeenSet = true;
48 m_playerId = std::forward<PlayerIdT>(value);
49 }
50 template <typename PlayerIdT = Aws::String>
51 PlayerLatency& WithPlayerId(PlayerIdT&& value) {
52 SetPlayerId(std::forward<PlayerIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetRegionIdentifier() const { return m_regionIdentifier; }
62 inline bool RegionIdentifierHasBeenSet() const { return m_regionIdentifierHasBeenSet; }
63 template <typename RegionIdentifierT = Aws::String>
64 void SetRegionIdentifier(RegionIdentifierT&& value) {
65 m_regionIdentifierHasBeenSet = true;
66 m_regionIdentifier = std::forward<RegionIdentifierT>(value);
67 }
68 template <typename RegionIdentifierT = Aws::String>
69 PlayerLatency& WithRegionIdentifier(RegionIdentifierT&& value) {
70 SetRegionIdentifier(std::forward<RegionIdentifierT>(value));
71 return *this;
72 }
74
76
80 inline double GetLatencyInMilliseconds() const { return m_latencyInMilliseconds; }
81 inline bool LatencyInMillisecondsHasBeenSet() const { return m_latencyInMillisecondsHasBeenSet; }
82 inline void SetLatencyInMilliseconds(double value) {
83 m_latencyInMillisecondsHasBeenSet = true;
84 m_latencyInMilliseconds = value;
85 }
88 return *this;
89 }
91 private:
92 Aws::String m_playerId;
93
94 Aws::String m_regionIdentifier;
95
96 double m_latencyInMilliseconds{0.0};
97 bool m_playerIdHasBeenSet = false;
98 bool m_regionIdentifierHasBeenSet = false;
99 bool m_latencyInMillisecondsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace GameLift
104} // namespace Aws
PlayerLatency & WithLatencyInMilliseconds(double value)
PlayerLatency & WithPlayerId(PlayerIdT &&value)
AWS_GAMELIFT_API PlayerLatency(Aws::Utils::Json::JsonView jsonValue)
void SetRegionIdentifier(RegionIdentifierT &&value)
const Aws::String & GetPlayerId() const
const Aws::String & GetRegionIdentifier() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API PlayerLatency()=default
AWS_GAMELIFT_API PlayerLatency & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPlayerId(PlayerIdT &&value)
void SetLatencyInMilliseconds(double value)
PlayerLatency & WithRegionIdentifier(RegionIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue