AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ResourceCreationLimitPolicy.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
31 public:
32 AWS_GAMELIFT_API ResourceCreationLimitPolicy() = default;
35 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
47 inline int GetNewGameSessionsPerCreator() const { return m_newGameSessionsPerCreator; }
48 inline bool NewGameSessionsPerCreatorHasBeenSet() const { return m_newGameSessionsPerCreatorHasBeenSet; }
49 inline void SetNewGameSessionsPerCreator(int value) {
50 m_newGameSessionsPerCreatorHasBeenSet = true;
51 m_newGameSessionsPerCreator = value;
52 }
55 return *this;
56 }
58
60
63 inline int GetPolicyPeriodInMinutes() const { return m_policyPeriodInMinutes; }
64 inline bool PolicyPeriodInMinutesHasBeenSet() const { return m_policyPeriodInMinutesHasBeenSet; }
65 inline void SetPolicyPeriodInMinutes(int value) {
66 m_policyPeriodInMinutesHasBeenSet = true;
67 m_policyPeriodInMinutes = value;
68 }
71 return *this;
72 }
74 private:
75 int m_newGameSessionsPerCreator{0};
76
77 int m_policyPeriodInMinutes{0};
78 bool m_newGameSessionsPerCreatorHasBeenSet = false;
79 bool m_policyPeriodInMinutesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace GameLift
84} // namespace Aws
AWS_GAMELIFT_API ResourceCreationLimitPolicy(Aws::Utils::Json::JsonView jsonValue)
ResourceCreationLimitPolicy & WithNewGameSessionsPerCreator(int value)
AWS_GAMELIFT_API ResourceCreationLimitPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ResourceCreationLimitPolicy()=default
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceCreationLimitPolicy & WithPolicyPeriodInMinutes(int value)
Aws::Utils::Json::JsonValue JsonValue