AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
AppLimit.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyGen3 {
20namespace Model {
21
28class AppLimit {
29 public:
30 AWS_AMPLIFYGEN3_API AppLimit() = default;
31 AWS_AMPLIFYGEN3_API AppLimit(Aws::Utils::Json::JsonView jsonValue);
32 AWS_AMPLIFYGEN3_API AppLimit& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
47 AppLimit& WithArn(ArnT&& value) {
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRegion() const { return m_region; }
58 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
59 template <typename RegionT = Aws::String>
60 void SetRegion(RegionT&& value) {
61 m_regionHasBeenSet = true;
62 m_region = std::forward<RegionT>(value);
63 }
64 template <typename RegionT = Aws::String>
65 AppLimit& WithRegion(RegionT&& value) {
66 SetRegion(std::forward<RegionT>(value));
67 return *this;
68 }
70
72
75 inline int GetCurrent() const { return m_current; }
76 inline bool CurrentHasBeenSet() const { return m_currentHasBeenSet; }
77 inline void SetCurrent(int value) {
78 m_currentHasBeenSet = true;
79 m_current = value;
80 }
81 inline AppLimit& WithCurrent(int value) {
82 SetCurrent(value);
83 return *this;
84 }
86
88
91 inline int GetTargetLimit() const { return m_targetLimit; }
92 inline bool TargetLimitHasBeenSet() const { return m_targetLimitHasBeenSet; }
93 inline void SetTargetLimit(int value) {
94 m_targetLimitHasBeenSet = true;
95 m_targetLimit = value;
96 }
97 inline AppLimit& WithTargetLimit(int value) {
98 SetTargetLimit(value);
99 return *this;
100 }
102 private:
103 Aws::String m_arn;
104
105 Aws::String m_region;
106
107 int m_current{0};
108
109 int m_targetLimit{0};
110 bool m_arnHasBeenSet = false;
111 bool m_regionHasBeenSet = false;
112 bool m_currentHasBeenSet = false;
113 bool m_targetLimitHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace AmplifyGen3
118} // namespace Aws
AWS_AMPLIFYGEN3_API AppLimit()=default
const Aws::String & GetArn() const
Definition AppLimit.h:39
AppLimit & WithArn(ArnT &&value)
Definition AppLimit.h:47
AppLimit & WithCurrent(int value)
Definition AppLimit.h:81
AWS_AMPLIFYGEN3_API AppLimit(Aws::Utils::Json::JsonView jsonValue)
void SetArn(ArnT &&value)
Definition AppLimit.h:42
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRegion(RegionT &&value)
Definition AppLimit.h:60
AWS_AMPLIFYGEN3_API AppLimit & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegion() const
Definition AppLimit.h:57
AppLimit & WithRegion(RegionT &&value)
Definition AppLimit.h:65
AppLimit & WithTargetLimit(int value)
Definition AppLimit.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue