AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PlayerLatency.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_GAMELIFT_API PlayerLatency() = default;
40 AWS_GAMELIFT_API PlayerLatency(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetPlayerId() const { return m_playerId; }
50 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
51 template<typename PlayerIdT = Aws::String>
52 void SetPlayerId(PlayerIdT&& value) { m_playerIdHasBeenSet = true; m_playerId = std::forward<PlayerIdT>(value); }
53 template<typename PlayerIdT = Aws::String>
54 PlayerLatency& WithPlayerId(PlayerIdT&& value) { SetPlayerId(std::forward<PlayerIdT>(value)); return *this;}
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) { m_regionIdentifierHasBeenSet = true; m_regionIdentifier = std::forward<RegionIdentifierT>(value); }
65 template<typename RegionIdentifierT = Aws::String>
66 PlayerLatency& WithRegionIdentifier(RegionIdentifierT&& value) { SetRegionIdentifier(std::forward<RegionIdentifierT>(value)); return *this;}
68
70
74 inline double GetLatencyInMilliseconds() const { return m_latencyInMilliseconds; }
75 inline bool LatencyInMillisecondsHasBeenSet() const { return m_latencyInMillisecondsHasBeenSet; }
76 inline void SetLatencyInMilliseconds(double value) { m_latencyInMillisecondsHasBeenSet = true; m_latencyInMilliseconds = value; }
77 inline PlayerLatency& WithLatencyInMilliseconds(double value) { SetLatencyInMilliseconds(value); return *this;}
79 private:
80
81 Aws::String m_playerId;
82 bool m_playerIdHasBeenSet = false;
83
84 Aws::String m_regionIdentifier;
85 bool m_regionIdentifierHasBeenSet = false;
86
87 double m_latencyInMilliseconds{0.0};
88 bool m_latencyInMillisecondsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GameLift
93} // 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