AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ServiceLimit.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/Unit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
29 public:
30 AWS_MACIE2_API ServiceLimit() = default;
31 AWS_MACIE2_API ServiceLimit(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetIsServiceLimited() const { return m_isServiceLimited; }
41 inline bool IsServiceLimitedHasBeenSet() const { return m_isServiceLimitedHasBeenSet; }
42 inline void SetIsServiceLimited(bool value) {
43 m_isServiceLimitedHasBeenSet = true;
44 m_isServiceLimited = value;
45 }
46 inline ServiceLimit& WithIsServiceLimited(bool value) {
48 return *this;
49 }
51
53
56 inline Unit GetUnit() const { return m_unit; }
57 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
58 inline void SetUnit(Unit value) {
59 m_unitHasBeenSet = true;
60 m_unit = value;
61 }
62 inline ServiceLimit& WithUnit(Unit value) {
63 SetUnit(value);
64 return *this;
65 }
67
69
73 inline long long GetValue() const { return m_value; }
74 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
75 inline void SetValue(long long value) {
76 m_valueHasBeenSet = true;
77 m_value = value;
78 }
79 inline ServiceLimit& WithValue(long long value) {
80 SetValue(value);
81 return *this;
82 }
84 private:
85 bool m_isServiceLimited{false};
86
87 Unit m_unit{Unit::NOT_SET};
88
89 long long m_value{0};
90 bool m_isServiceLimitedHasBeenSet = false;
91 bool m_unitHasBeenSet = false;
92 bool m_valueHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Macie2
97} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API ServiceLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API ServiceLimit(Aws::Utils::Json::JsonView jsonValue)
ServiceLimit & WithUnit(Unit value)
ServiceLimit & WithValue(long long value)
void SetIsServiceLimited(bool value)
ServiceLimit & WithIsServiceLimited(bool value)
void SetValue(long long value)
AWS_MACIE2_API ServiceLimit()=default
Aws::Utils::Json::JsonValue JsonValue