AWS SDK for C++  1.8.56
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 
38  {
39  public:
42  PlayerLatencyPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
50  inline int GetMaximumIndividualPlayerLatencyMilliseconds() const{ return m_maximumIndividualPlayerLatencyMilliseconds; }
51 
56  inline bool MaximumIndividualPlayerLatencyMillisecondsHasBeenSet() const { return m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet; }
57 
62  inline void SetMaximumIndividualPlayerLatencyMilliseconds(int value) { m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet = true; m_maximumIndividualPlayerLatencyMilliseconds = value; }
63 
68  inline PlayerLatencyPolicy& WithMaximumIndividualPlayerLatencyMilliseconds(int value) { SetMaximumIndividualPlayerLatencyMilliseconds(value); return *this;}
69 
70 
76  inline int GetPolicyDurationSeconds() const{ return m_policyDurationSeconds; }
77 
83  inline bool PolicyDurationSecondsHasBeenSet() const { return m_policyDurationSecondsHasBeenSet; }
84 
90  inline void SetPolicyDurationSeconds(int value) { m_policyDurationSecondsHasBeenSet = true; m_policyDurationSeconds = value; }
91 
97  inline PlayerLatencyPolicy& WithPolicyDurationSeconds(int value) { SetPolicyDurationSeconds(value); return *this;}
98 
99  private:
100 
101  int m_maximumIndividualPlayerLatencyMilliseconds;
102  bool m_maximumIndividualPlayerLatencyMillisecondsHasBeenSet;
103 
104  int m_policyDurationSeconds;
105  bool m_policyDurationSecondsHasBeenSet;
106  };
107 
108 } // namespace Model
109 } // namespace GameLift
110 } // namespace Aws
PlayerLatencyPolicy & WithMaximumIndividualPlayerLatencyMilliseconds(int value)
#define AWS_GAMELIFT_API
PlayerLatencyPolicy & WithPolicyDurationSeconds(int value)