AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LimitSummary.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEADLINE_API LimitSummary() = default;
36 AWS_DEADLINE_API LimitSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::String& GetDisplayName() const { return m_displayName; }
49 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
50 template<typename DisplayNameT = Aws::String>
51 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
52 template<typename DisplayNameT = Aws::String>
53 LimitSummary& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
55
57
62 inline const Aws::String& GetAmountRequirementName() const { return m_amountRequirementName; }
63 inline bool AmountRequirementNameHasBeenSet() const { return m_amountRequirementNameHasBeenSet; }
64 template<typename AmountRequirementNameT = Aws::String>
65 void SetAmountRequirementName(AmountRequirementNameT&& value) { m_amountRequirementNameHasBeenSet = true; m_amountRequirementName = std::forward<AmountRequirementNameT>(value); }
66 template<typename AmountRequirementNameT = Aws::String>
67 LimitSummary& WithAmountRequirementName(AmountRequirementNameT&& value) { SetAmountRequirementName(std::forward<AmountRequirementNameT>(value)); return *this;}
69
71
78 inline int GetMaxCount() const { return m_maxCount; }
79 inline bool MaxCountHasBeenSet() const { return m_maxCountHasBeenSet; }
80 inline void SetMaxCount(int value) { m_maxCountHasBeenSet = true; m_maxCount = value; }
81 inline LimitSummary& WithMaxCount(int value) { SetMaxCount(value); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
89 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
90 template<typename CreatedAtT = Aws::Utils::DateTime>
91 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
92 template<typename CreatedAtT = Aws::Utils::DateTime>
93 LimitSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
95
97
100 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
101 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
102 template<typename CreatedByT = Aws::String>
103 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
104 template<typename CreatedByT = Aws::String>
105 LimitSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
113 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
114 template<typename UpdatedAtT = Aws::Utils::DateTime>
115 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
116 template<typename UpdatedAtT = Aws::Utils::DateTime>
117 LimitSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
119
121
124 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
125 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
126 template<typename UpdatedByT = Aws::String>
127 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
128 template<typename UpdatedByT = Aws::String>
129 LimitSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
131
133
136 inline const Aws::String& GetFarmId() const { return m_farmId; }
137 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
138 template<typename FarmIdT = Aws::String>
139 void SetFarmId(FarmIdT&& value) { m_farmIdHasBeenSet = true; m_farmId = std::forward<FarmIdT>(value); }
140 template<typename FarmIdT = Aws::String>
141 LimitSummary& WithFarmId(FarmIdT&& value) { SetFarmId(std::forward<FarmIdT>(value)); return *this;}
143
145
148 inline const Aws::String& GetLimitId() const { return m_limitId; }
149 inline bool LimitIdHasBeenSet() const { return m_limitIdHasBeenSet; }
150 template<typename LimitIdT = Aws::String>
151 void SetLimitId(LimitIdT&& value) { m_limitIdHasBeenSet = true; m_limitId = std::forward<LimitIdT>(value); }
152 template<typename LimitIdT = Aws::String>
153 LimitSummary& WithLimitId(LimitIdT&& value) { SetLimitId(std::forward<LimitIdT>(value)); return *this;}
155
157
162 inline int GetCurrentCount() const { return m_currentCount; }
163 inline bool CurrentCountHasBeenSet() const { return m_currentCountHasBeenSet; }
164 inline void SetCurrentCount(int value) { m_currentCountHasBeenSet = true; m_currentCount = value; }
165 inline LimitSummary& WithCurrentCount(int value) { SetCurrentCount(value); return *this;}
167 private:
168
169 Aws::String m_displayName;
170 bool m_displayNameHasBeenSet = false;
171
172 Aws::String m_amountRequirementName;
173 bool m_amountRequirementNameHasBeenSet = false;
174
175 int m_maxCount{0};
176 bool m_maxCountHasBeenSet = false;
177
178 Aws::Utils::DateTime m_createdAt{};
179 bool m_createdAtHasBeenSet = false;
180
181 Aws::String m_createdBy;
182 bool m_createdByHasBeenSet = false;
183
184 Aws::Utils::DateTime m_updatedAt{};
185 bool m_updatedAtHasBeenSet = false;
186
187 Aws::String m_updatedBy;
188 bool m_updatedByHasBeenSet = false;
189
190 Aws::String m_farmId;
191 bool m_farmIdHasBeenSet = false;
192
193 Aws::String m_limitId;
194 bool m_limitIdHasBeenSet = false;
195
196 int m_currentCount{0};
197 bool m_currentCountHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace deadline
202} // namespace Aws
const Aws::String & GetAmountRequirementName() const
AWS_DEADLINE_API LimitSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LimitSummary & WithAmountRequirementName(AmountRequirementNameT &&value)
LimitSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetLimitId(LimitIdT &&value)
LimitSummary & WithCreatedBy(CreatedByT &&value)
LimitSummary & WithMaxCount(int value)
void SetFarmId(FarmIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
LimitSummary & WithCurrentCount(int value)
const Aws::String & GetFarmId() const
LimitSummary & WithLimitId(LimitIdT &&value)
AWS_DEADLINE_API LimitSummary()=default
void SetUpdatedAt(UpdatedAtT &&value)
LimitSummary & WithFarmId(FarmIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
LimitSummary & WithDisplayName(DisplayNameT &&value)
void SetDisplayName(DisplayNameT &&value)
void SetUpdatedBy(UpdatedByT &&value)
const Aws::String & GetLimitId() const
void SetCreatedBy(CreatedByT &&value)
void SetAmountRequirementName(AmountRequirementNameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDisplayName() const
LimitSummary & WithUpdatedBy(UpdatedByT &&value)
const Aws::String & GetUpdatedBy() const
AWS_DEADLINE_API LimitSummary(Aws::Utils::Json::JsonView jsonValue)
LimitSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetCreatedBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue