AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Macie2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MACIE2_API ServiceLimit() = default;
36 AWS_MACIE2_API ServiceLimit(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetIsServiceLimited() const { return m_isServiceLimited; }
47 inline bool IsServiceLimitedHasBeenSet() const { return m_isServiceLimitedHasBeenSet; }
48 inline void SetIsServiceLimited(bool value) { m_isServiceLimitedHasBeenSet = true; m_isServiceLimited = value; }
49 inline ServiceLimit& WithIsServiceLimited(bool value) { SetIsServiceLimited(value); return *this;}
51
53
56 inline Unit GetUnit() const { return m_unit; }
57 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
58 inline void SetUnit(Unit value) { m_unitHasBeenSet = true; m_unit = value; }
59 inline ServiceLimit& WithUnit(Unit value) { SetUnit(value); return *this;}
61
63
67 inline long long GetValue() const { return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
70 inline ServiceLimit& WithValue(long long value) { SetValue(value); return *this;}
72 private:
73
74 bool m_isServiceLimited{false};
75 bool m_isServiceLimitedHasBeenSet = false;
76
77 Unit m_unit{Unit::NOT_SET};
78 bool m_unitHasBeenSet = false;
79
80 long long m_value{0};
81 bool m_valueHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Macie2
86} // 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