AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateUsageLimitRequest.h
Go to the documentation of this file.
1
6#pragma once
16#include <utility>
17
18namespace Aws
19{
20namespace Redshift
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateUsageLimit"; }
37
39
40 protected:
41 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
48 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
49
53 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
54
58 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
59
63 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
64
68 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
69
74
78 inline CreateUsageLimitRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
79
83 inline CreateUsageLimitRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
84
85
89 inline const UsageLimitFeatureType& GetFeatureType() const{ return m_featureType; }
90
94 inline bool FeatureTypeHasBeenSet() const { return m_featureTypeHasBeenSet; }
95
99 inline void SetFeatureType(const UsageLimitFeatureType& value) { m_featureTypeHasBeenSet = true; m_featureType = value; }
100
104 inline void SetFeatureType(UsageLimitFeatureType&& value) { m_featureTypeHasBeenSet = true; m_featureType = std::move(value); }
105
110
114 inline CreateUsageLimitRequest& WithFeatureType(UsageLimitFeatureType&& value) { SetFeatureType(std::move(value)); return *this;}
115
116
126 inline const UsageLimitLimitType& GetLimitType() const{ return m_limitType; }
127
137 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
138
148 inline void SetLimitType(const UsageLimitLimitType& value) { m_limitTypeHasBeenSet = true; m_limitType = value; }
149
159 inline void SetLimitType(UsageLimitLimitType&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::move(value); }
160
170 inline CreateUsageLimitRequest& WithLimitType(const UsageLimitLimitType& value) { SetLimitType(value); return *this;}
171
181 inline CreateUsageLimitRequest& WithLimitType(UsageLimitLimitType&& value) { SetLimitType(std::move(value)); return *this;}
182
183
188 inline long long GetAmount() const{ return m_amount; }
189
194 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
195
200 inline void SetAmount(long long value) { m_amountHasBeenSet = true; m_amount = value; }
201
206 inline CreateUsageLimitRequest& WithAmount(long long value) { SetAmount(value); return *this;}
207
208
213 inline const UsageLimitPeriod& GetPeriod() const{ return m_period; }
214
219 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
220
225 inline void SetPeriod(const UsageLimitPeriod& value) { m_periodHasBeenSet = true; m_period = value; }
226
231 inline void SetPeriod(UsageLimitPeriod&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
232
237 inline CreateUsageLimitRequest& WithPeriod(const UsageLimitPeriod& value) { SetPeriod(value); return *this;}
238
243 inline CreateUsageLimitRequest& WithPeriod(UsageLimitPeriod&& value) { SetPeriod(std::move(value)); return *this;}
244
245
250 inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
251
256 inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
257
262 inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachActionHasBeenSet = true; m_breachAction = value; }
263
268 inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachActionHasBeenSet = true; m_breachAction = std::move(value); }
269
275
280 inline CreateUsageLimitRequest& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
281
282
286 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
287
291 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
292
296 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
297
301 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
302
306 inline CreateUsageLimitRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
307
311 inline CreateUsageLimitRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
312
316 inline CreateUsageLimitRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
317
321 inline CreateUsageLimitRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
322
323 private:
324
325 Aws::String m_clusterIdentifier;
326 bool m_clusterIdentifierHasBeenSet = false;
327
328 UsageLimitFeatureType m_featureType;
329 bool m_featureTypeHasBeenSet = false;
330
331 UsageLimitLimitType m_limitType;
332 bool m_limitTypeHasBeenSet = false;
333
334 long long m_amount;
335 bool m_amountHasBeenSet = false;
336
337 UsageLimitPeriod m_period;
338 bool m_periodHasBeenSet = false;
339
340 UsageLimitBreachAction m_breachAction;
341 bool m_breachActionHasBeenSet = false;
342
343 Aws::Vector<Tag> m_tags;
344 bool m_tagsHasBeenSet = false;
345 };
346
347} // namespace Model
348} // namespace Redshift
349} // namespace Aws
#define AWS_REDSHIFT_API
CreateUsageLimitRequest & AddTags(Tag &&value)
CreateUsageLimitRequest & WithPeriod(UsageLimitPeriod &&value)
CreateUsageLimitRequest & WithLimitType(const UsageLimitLimitType &value)
const UsageLimitLimitType & GetLimitType() const
void SetLimitType(const UsageLimitLimitType &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const UsageLimitBreachAction & GetBreachAction() const
CreateUsageLimitRequest & WithLimitType(UsageLimitLimitType &&value)
CreateUsageLimitRequest & WithBreachAction(const UsageLimitBreachAction &value)
CreateUsageLimitRequest & WithTags(const Aws::Vector< Tag > &value)
CreateUsageLimitRequest & WithTags(Aws::Vector< Tag > &&value)
const UsageLimitFeatureType & GetFeatureType() const
CreateUsageLimitRequest & WithAmount(long long value)
void SetBreachAction(UsageLimitBreachAction &&value)
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFT_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateUsageLimitRequest & WithClusterIdentifier(const Aws::String &value)
CreateUsageLimitRequest & WithBreachAction(UsageLimitBreachAction &&value)
void SetFeatureType(const UsageLimitFeatureType &value)
CreateUsageLimitRequest & WithFeatureType(const UsageLimitFeatureType &value)
CreateUsageLimitRequest & WithClusterIdentifier(Aws::String &&value)
void SetFeatureType(UsageLimitFeatureType &&value)
void SetBreachAction(const UsageLimitBreachAction &value)
CreateUsageLimitRequest & WithPeriod(const UsageLimitPeriod &value)
CreateUsageLimitRequest & WithFeatureType(UsageLimitFeatureType &&value)
void SetPeriod(const UsageLimitPeriod &value)
CreateUsageLimitRequest & AddTags(const Tag &value)
CreateUsageLimitRequest & WithClusterIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector