AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
PlayerLatencyPolicy.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
30 public:
31 AWS_GAMELIFT_API PlayerLatencyPolicy() = default;
32 AWS_GAMELIFT_API PlayerLatencyPolicy(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API PlayerLatencyPolicy& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline int64_t GetMaximumIndividualPlayerLatencyMilliseconds() const { return m_maximumIndividualPlayerLatencyMilliseconds; }
43 return m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet;
44 }
46 m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet = true;
47 m_maximumIndividualPlayerLatencyMilliseconds = value;
48 }
51 return *this;
52 }
54
56
61 inline int64_t GetPolicyDurationSeconds() const { return m_policyDurationSeconds; }
62 inline bool PolicyDurationSecondsHasBeenSet() const { return m_policyDurationSecondsHasBeenSet; }
63 inline void SetPolicyDurationSeconds(int64_t value) {
64 m_policyDurationSecondsHasBeenSet = true;
65 m_policyDurationSeconds = value;
66 }
69 return *this;
70 }
72 private:
73 int64_t m_maximumIndividualPlayerLatencyMilliseconds{0};
74
75 int64_t m_policyDurationSeconds{0};
76 bool m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet = false;
77 bool m_policyDurationSecondsHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GameLift
82} // namespace Aws
PlayerLatencyPolicy & WithMaximumIndividualPlayerLatencyMilliseconds(int64_t value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PlayerLatencyPolicy & WithPolicyDurationSeconds(int64_t value)
AWS_GAMELIFT_API PlayerLatencyPolicy()=default
AWS_GAMELIFT_API PlayerLatencyPolicy(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetMaximumIndividualPlayerLatencyMilliseconds(int64_t value)
AWS_GAMELIFT_API PlayerLatencyPolicy & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)