AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
PlayerLatencyPolicy.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
30 public:
31 AWS_GAMELIFT_API PlayerLatencyPolicy() = default;
34 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int 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 int GetPolicyDurationSeconds() const { return m_policyDurationSeconds; }
62 inline bool PolicyDurationSecondsHasBeenSet() const { return m_policyDurationSecondsHasBeenSet; }
63 inline void SetPolicyDurationSeconds(int value) {
64 m_policyDurationSecondsHasBeenSet = true;
65 m_policyDurationSeconds = value;
66 }
69 return *this;
70 }
72 private:
73 int m_maximumIndividualPlayerLatencyMilliseconds{0};
74
75 int 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(int value)
AWS_GAMELIFT_API PlayerLatencyPolicy()=default
AWS_GAMELIFT_API PlayerLatencyPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API PlayerLatencyPolicy(Aws::Utils::Json::JsonView jsonValue)
PlayerLatencyPolicy & WithPolicyDurationSeconds(int value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue