AWS SDK for C++  1.9.104
AWS SDK for C++
ResourceCreationLimitPolicy.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 
37  {
38  public:
43 
44 
49  inline int GetNewGameSessionsPerCreator() const{ return m_newGameSessionsPerCreator; }
50 
55  inline bool NewGameSessionsPerCreatorHasBeenSet() const { return m_newGameSessionsPerCreatorHasBeenSet; }
56 
61  inline void SetNewGameSessionsPerCreator(int value) { m_newGameSessionsPerCreatorHasBeenSet = true; m_newGameSessionsPerCreator = value; }
62 
67  inline ResourceCreationLimitPolicy& WithNewGameSessionsPerCreator(int value) { SetNewGameSessionsPerCreator(value); return *this;}
68 
69 
73  inline int GetPolicyPeriodInMinutes() const{ return m_policyPeriodInMinutes; }
74 
78  inline bool PolicyPeriodInMinutesHasBeenSet() const { return m_policyPeriodInMinutesHasBeenSet; }
79 
83  inline void SetPolicyPeriodInMinutes(int value) { m_policyPeriodInMinutesHasBeenSet = true; m_policyPeriodInMinutes = value; }
84 
88  inline ResourceCreationLimitPolicy& WithPolicyPeriodInMinutes(int value) { SetPolicyPeriodInMinutes(value); return *this;}
89 
90  private:
91 
92  int m_newGameSessionsPerCreator;
93  bool m_newGameSessionsPerCreatorHasBeenSet;
94 
95  int m_policyPeriodInMinutes;
96  bool m_policyPeriodInMinutesHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace GameLift
101 } // namespace Aws
Aws::GameLift::Model::ResourceCreationLimitPolicy::NewGameSessionsPerCreatorHasBeenSet
bool NewGameSessionsPerCreatorHasBeenSet() const
Definition: ResourceCreationLimitPolicy.h:55
Aws::GameLift::Model::ResourceCreationLimitPolicy::GetNewGameSessionsPerCreator
int GetNewGameSessionsPerCreator() const
Definition: ResourceCreationLimitPolicy.h:49
Aws::GameLift::Model::ResourceCreationLimitPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ResourceCreationLimitPolicy
Definition: ResourceCreationLimitPolicy.h:37
Aws::GameLift::Model::ResourceCreationLimitPolicy::PolicyPeriodInMinutesHasBeenSet
bool PolicyPeriodInMinutesHasBeenSet() const
Definition: ResourceCreationLimitPolicy.h:78
GameLift_EXPORTS.h
Aws::GameLift::Model::ResourceCreationLimitPolicy::ResourceCreationLimitPolicy
ResourceCreationLimitPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::ResourceCreationLimitPolicy::WithPolicyPeriodInMinutes
ResourceCreationLimitPolicy & WithPolicyPeriodInMinutes(int value)
Definition: ResourceCreationLimitPolicy.h:88
Aws::GameLift::Model::ResourceCreationLimitPolicy::ResourceCreationLimitPolicy
ResourceCreationLimitPolicy()
Aws::GameLift::Model::ResourceCreationLimitPolicy::SetPolicyPeriodInMinutes
void SetPolicyPeriodInMinutes(int value)
Definition: ResourceCreationLimitPolicy.h:83
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::ResourceCreationLimitPolicy::SetNewGameSessionsPerCreator
void SetNewGameSessionsPerCreator(int value)
Definition: ResourceCreationLimitPolicy.h:61
Aws::GameLift::Model::ResourceCreationLimitPolicy::WithNewGameSessionsPerCreator
ResourceCreationLimitPolicy & WithNewGameSessionsPerCreator(int value)
Definition: ResourceCreationLimitPolicy.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::ResourceCreationLimitPolicy::operator=
ResourceCreationLimitPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::ResourceCreationLimitPolicy::GetPolicyPeriodInMinutes
int GetPolicyPeriodInMinutes() const
Definition: ResourceCreationLimitPolicy.h:73