AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ResourceCreationLimitPolicy.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Cbor {
13class CborValue;
14} // namespace Cbor
15} // namespace Utils
16namespace GameLift {
17namespace Model {
18
31 public:
32 AWS_GAMELIFT_API ResourceCreationLimitPolicy() = default;
33 AWS_GAMELIFT_API ResourceCreationLimitPolicy(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API ResourceCreationLimitPolicy& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
47 inline int64_t GetNewGameSessionsPerCreator() const { return m_newGameSessionsPerCreator; }
48 inline bool NewGameSessionsPerCreatorHasBeenSet() const { return m_newGameSessionsPerCreatorHasBeenSet; }
49 inline void SetNewGameSessionsPerCreator(int64_t value) {
50 m_newGameSessionsPerCreatorHasBeenSet = true;
51 m_newGameSessionsPerCreator = value;
52 }
55 return *this;
56 }
58
60
63 inline int64_t GetPolicyPeriodInMinutes() const { return m_policyPeriodInMinutes; }
64 inline bool PolicyPeriodInMinutesHasBeenSet() const { return m_policyPeriodInMinutesHasBeenSet; }
65 inline void SetPolicyPeriodInMinutes(int64_t value) {
66 m_policyPeriodInMinutesHasBeenSet = true;
67 m_policyPeriodInMinutes = value;
68 }
71 return *this;
72 }
74 private:
75 int64_t m_newGameSessionsPerCreator{0};
76
77 int64_t m_policyPeriodInMinutes{0};
78 bool m_newGameSessionsPerCreatorHasBeenSet = false;
79 bool m_policyPeriodInMinutesHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace GameLift
84} // namespace Aws
ResourceCreationLimitPolicy & WithPolicyPeriodInMinutes(int64_t value)
AWS_GAMELIFT_API ResourceCreationLimitPolicy & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceCreationLimitPolicy & WithNewGameSessionsPerCreator(int64_t value)
AWS_GAMELIFT_API ResourceCreationLimitPolicy()=default
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API ResourceCreationLimitPolicy(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)