AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Unit& GetUnit() const{ return m_unit; }
57 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
58 inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
59 inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
60 inline ServiceLimit& WithUnit(const Unit& value) { SetUnit(value); return *this;}
61 inline ServiceLimit& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
63
65
69 inline long long GetValue() const{ return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; }
72 inline ServiceLimit& WithValue(long long value) { SetValue(value); return *this;}
74 private:
75
76 bool m_isServiceLimited;
77 bool m_isServiceLimitedHasBeenSet = false;
78
79 Unit m_unit;
80 bool m_unitHasBeenSet = false;
81
82 long long m_value;
83 bool m_valueHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Macie2
88} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUnit(const Unit &value)
const Unit & GetUnit() const
ServiceLimit & WithUnit(Unit &&value)
AWS_MACIE2_API ServiceLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API ServiceLimit(Aws::Utils::Json::JsonView jsonValue)
ServiceLimit & WithUnit(const Unit &value)
ServiceLimit & WithValue(long long value)
void SetIsServiceLimited(bool value)
ServiceLimit & WithIsServiceLimited(bool value)
void SetValue(long long value)
Aws::Utils::Json::JsonValue JsonValue