AWS SDK for C++

AWS SDK for C++ Version 1.11.851

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
38 public:
39 AWS_GAMELIFT_API ResourceCreationLimitPolicy() = default;
40 AWS_GAMELIFT_API ResourceCreationLimitPolicy(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_GAMELIFT_API ResourceCreationLimitPolicy& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
43
45
54 inline int64_t GetNewGameSessionsPerCreator() const { return m_newGameSessionsPerCreator; }
55 inline bool NewGameSessionsPerCreatorHasBeenSet() const { return m_newGameSessionsPerCreatorHasBeenSet; }
56 inline void SetNewGameSessionsPerCreator(int64_t value) {
57 m_newGameSessionsPerCreatorHasBeenSet = true;
58 m_newGameSessionsPerCreator = value;
59 }
62 return *this;
63 }
65
67
70 inline int64_t GetPolicyPeriodInMinutes() const { return m_policyPeriodInMinutes; }
71 inline bool PolicyPeriodInMinutesHasBeenSet() const { return m_policyPeriodInMinutesHasBeenSet; }
72 inline void SetPolicyPeriodInMinutes(int64_t value) {
73 m_policyPeriodInMinutesHasBeenSet = true;
74 m_policyPeriodInMinutes = value;
75 }
78 return *this;
79 }
81 private:
82 int64_t m_newGameSessionsPerCreator{0};
83
84 int64_t m_policyPeriodInMinutes{0};
85 bool m_newGameSessionsPerCreatorHasBeenSet = false;
86 bool m_policyPeriodInMinutesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace GameLift
91} // 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)