AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
PlayerLatency.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
34 public:
35 AWS_GAMELIFT_API PlayerLatency() = default;
36 AWS_GAMELIFT_API PlayerLatency(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_GAMELIFT_API PlayerLatency& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetPlayerId() const { return m_playerId; }
45 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
46 template <typename PlayerIdT = Aws::String>
47 void SetPlayerId(PlayerIdT&& value) {
48 m_playerIdHasBeenSet = true;
49 m_playerId = std::forward<PlayerIdT>(value);
50 }
51 template <typename PlayerIdT = Aws::String>
52 PlayerLatency& WithPlayerId(PlayerIdT&& value) {
53 SetPlayerId(std::forward<PlayerIdT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetRegionIdentifier() const { return m_regionIdentifier; }
65 inline bool RegionIdentifierHasBeenSet() const { return m_regionIdentifierHasBeenSet; }
66 template <typename RegionIdentifierT = Aws::String>
67 void SetRegionIdentifier(RegionIdentifierT&& value) {
68 m_regionIdentifierHasBeenSet = true;
69 m_regionIdentifier = std::forward<RegionIdentifierT>(value);
70 }
71 template <typename RegionIdentifierT = Aws::String>
72 PlayerLatency& WithRegionIdentifier(RegionIdentifierT&& value) {
73 SetRegionIdentifier(std::forward<RegionIdentifierT>(value));
74 return *this;
75 }
77
79
83 inline double GetLatencyInMilliseconds() const { return m_latencyInMilliseconds; }
84 inline bool LatencyInMillisecondsHasBeenSet() const { return m_latencyInMillisecondsHasBeenSet; }
85 inline void SetLatencyInMilliseconds(double value) {
86 m_latencyInMillisecondsHasBeenSet = true;
87 m_latencyInMilliseconds = value;
88 }
91 return *this;
92 }
94 private:
95 Aws::String m_playerId;
96
97 Aws::String m_regionIdentifier;
98
99 double m_latencyInMilliseconds{0.0};
100 bool m_playerIdHasBeenSet = false;
101 bool m_regionIdentifierHasBeenSet = false;
102 bool m_latencyInMillisecondsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GameLift
107} // namespace Aws
PlayerLatency & WithLatencyInMilliseconds(double value)
PlayerLatency & WithPlayerId(PlayerIdT &&value)
void SetRegionIdentifier(RegionIdentifierT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetPlayerId() const
const Aws::String & GetRegionIdentifier() const
AWS_GAMELIFT_API PlayerLatency()=default
AWS_GAMELIFT_API PlayerLatency(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetPlayerId(PlayerIdT &&value)
void SetLatencyInMilliseconds(double value)
PlayerLatency & WithRegionIdentifier(RegionIdentifierT &&value)
AWS_GAMELIFT_API PlayerLatency & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String