AWS SDK for C++  1.9.47
AWS SDK for C++
PlayerLatencyPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace GameLift
20 {
21 namespace Model
22 {
23 
36  {
37  public:
42 
43 
48  inline int GetMaximumIndividualPlayerLatencyMilliseconds() const{ return m_maximumIndividualPlayerLatencyMilliseconds; }
49 
54  inline bool MaximumIndividualPlayerLatencyMillisecondsHasBeenSet() const { return m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet; }
55 
60  inline void SetMaximumIndividualPlayerLatencyMilliseconds(int value) { m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet = true; m_maximumIndividualPlayerLatencyMilliseconds = value; }
61 
66  inline PlayerLatencyPolicy& WithMaximumIndividualPlayerLatencyMilliseconds(int value) { SetMaximumIndividualPlayerLatencyMilliseconds(value); return *this;}
67 
68 
74  inline int GetPolicyDurationSeconds() const{ return m_policyDurationSeconds; }
75 
81  inline bool PolicyDurationSecondsHasBeenSet() const { return m_policyDurationSecondsHasBeenSet; }
82 
88  inline void SetPolicyDurationSeconds(int value) { m_policyDurationSecondsHasBeenSet = true; m_policyDurationSeconds = value; }
89 
95  inline PlayerLatencyPolicy& WithPolicyDurationSeconds(int value) { SetPolicyDurationSeconds(value); return *this;}
96 
97  private:
98 
99  int m_maximumIndividualPlayerLatencyMilliseconds;
100  bool m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet;
101 
102  int m_policyDurationSeconds;
103  bool m_policyDurationSecondsHasBeenSet;
104  };
105 
106 } // namespace Model
107 } // namespace GameLift
108 } // namespace Aws
Aws::GameLift::Model::PlayerLatencyPolicy::WithPolicyDurationSeconds
PlayerLatencyPolicy & WithPolicyDurationSeconds(int value)
Definition: PlayerLatencyPolicy.h:95
Aws::GameLift::Model::PlayerLatencyPolicy::WithMaximumIndividualPlayerLatencyMilliseconds
PlayerLatencyPolicy & WithMaximumIndividualPlayerLatencyMilliseconds(int value)
Definition: PlayerLatencyPolicy.h:66
Aws::GameLift::Model::PlayerLatencyPolicy
Definition: PlayerLatencyPolicy.h:36
Aws::GameLift::Model::PlayerLatencyPolicy::GetMaximumIndividualPlayerLatencyMilliseconds
int GetMaximumIndividualPlayerLatencyMilliseconds() const
Definition: PlayerLatencyPolicy.h:48
Aws::GameLift::Model::PlayerLatencyPolicy::operator=
PlayerLatencyPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::PlayerLatencyPolicy::GetPolicyDurationSeconds
int GetPolicyDurationSeconds() const
Definition: PlayerLatencyPolicy.h:74
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::PlayerLatencyPolicy::MaximumIndividualPlayerLatencyMillisecondsHasBeenSet
bool MaximumIndividualPlayerLatencyMillisecondsHasBeenSet() const
Definition: PlayerLatencyPolicy.h:54
Aws::GameLift::Model::PlayerLatencyPolicy::SetPolicyDurationSeconds
void SetPolicyDurationSeconds(int value)
Definition: PlayerLatencyPolicy.h:88
Aws::GameLift::Model::PlayerLatencyPolicy::PlayerLatencyPolicy
PlayerLatencyPolicy(Aws::Utils::Json::JsonView jsonValue)
GameLift_EXPORTS.h
Aws::GameLift::Model::PlayerLatencyPolicy::PolicyDurationSecondsHasBeenSet
bool PolicyDurationSecondsHasBeenSet() const
Definition: PlayerLatencyPolicy.h:81
Aws::GameLift::Model::PlayerLatencyPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::PlayerLatencyPolicy::PlayerLatencyPolicy
PlayerLatencyPolicy()
Aws::GameLift::Model::PlayerLatencyPolicy::SetMaximumIndividualPlayerLatencyMilliseconds
void SetMaximumIndividualPlayerLatencyMilliseconds(int value)
Definition: PlayerLatencyPolicy.h:60