AWS SDK for C++  1.8.71
AWS SDK for C++
CreateUsageLimitRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <aws/redshift/model/Tag.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Redshift
21 {
22 namespace 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 
38  Aws::String SerializePayload() const override;
39 
40  protected:
41  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 
73  inline CreateUsageLimitRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
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 
109  inline CreateUsageLimitRequest& WithFeatureType(const UsageLimitFeatureType& value) { SetFeatureType(value); return *this;}
110 
114  inline CreateUsageLimitRequest& WithFeatureType(UsageLimitFeatureType&& value) { SetFeatureType(std::move(value)); return *this;}
115 
116 
124  inline const UsageLimitLimitType& GetLimitType() const{ return m_limitType; }
125 
133  inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
134 
142  inline void SetLimitType(const UsageLimitLimitType& value) { m_limitTypeHasBeenSet = true; m_limitType = value; }
143 
151  inline void SetLimitType(UsageLimitLimitType&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::move(value); }
152 
160  inline CreateUsageLimitRequest& WithLimitType(const UsageLimitLimitType& value) { SetLimitType(value); return *this;}
161 
169  inline CreateUsageLimitRequest& WithLimitType(UsageLimitLimitType&& value) { SetLimitType(std::move(value)); return *this;}
170 
171 
176  inline long long GetAmount() const{ return m_amount; }
177 
182  inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
183 
188  inline void SetAmount(long long value) { m_amountHasBeenSet = true; m_amount = value; }
189 
194  inline CreateUsageLimitRequest& WithAmount(long long value) { SetAmount(value); return *this;}
195 
196 
201  inline const UsageLimitPeriod& GetPeriod() const{ return m_period; }
202 
207  inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
208 
213  inline void SetPeriod(const UsageLimitPeriod& value) { m_periodHasBeenSet = true; m_period = value; }
214 
219  inline void SetPeriod(UsageLimitPeriod&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
220 
225  inline CreateUsageLimitRequest& WithPeriod(const UsageLimitPeriod& value) { SetPeriod(value); return *this;}
226 
231  inline CreateUsageLimitRequest& WithPeriod(UsageLimitPeriod&& value) { SetPeriod(std::move(value)); return *this;}
232 
233 
238  inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
239 
244  inline bool BreachActionHasBeenSet() const { return m_breachActionHasBeenSet; }
245 
250  inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachActionHasBeenSet = true; m_breachAction = value; }
251 
256  inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachActionHasBeenSet = true; m_breachAction = std::move(value); }
257 
262  inline CreateUsageLimitRequest& WithBreachAction(const UsageLimitBreachAction& value) { SetBreachAction(value); return *this;}
263 
268  inline CreateUsageLimitRequest& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
269 
270 
274  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
275 
279  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
280 
284  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
285 
289  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
290 
294  inline CreateUsageLimitRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
295 
299  inline CreateUsageLimitRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
300 
304  inline CreateUsageLimitRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
305 
309  inline CreateUsageLimitRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
310 
311  private:
312 
313  Aws::String m_clusterIdentifier;
314  bool m_clusterIdentifierHasBeenSet;
315 
316  UsageLimitFeatureType m_featureType;
317  bool m_featureTypeHasBeenSet;
318 
319  UsageLimitLimitType m_limitType;
320  bool m_limitTypeHasBeenSet;
321 
322  long long m_amount;
323  bool m_amountHasBeenSet;
324 
325  UsageLimitPeriod m_period;
326  bool m_periodHasBeenSet;
327 
328  UsageLimitBreachAction m_breachAction;
329  bool m_breachActionHasBeenSet;
330 
331  Aws::Vector<Tag> m_tags;
332  bool m_tagsHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace Redshift
337 } // namespace Aws
void SetTags(const Aws::Vector< Tag > &value)
CreateUsageLimitRequest & WithLimitType(UsageLimitLimitType &&value)
const UsageLimitFeatureType & GetFeatureType() const
CreateUsageLimitRequest & AddTags(Tag &&value)
CreateUsageLimitRequest & WithPeriod(UsageLimitPeriod &&value)
CreateUsageLimitRequest & WithBreachAction(const UsageLimitBreachAction &value)
void SetLimitType(const UsageLimitLimitType &value)
void SetBreachAction(UsageLimitBreachAction &&value)
CreateUsageLimitRequest & WithClusterIdentifier(const Aws::String &value)
CreateUsageLimitRequest & WithLimitType(const UsageLimitLimitType &value)
CreateUsageLimitRequest & WithFeatureType(const UsageLimitFeatureType &value)
const UsageLimitLimitType & GetLimitType() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateUsageLimitRequest & WithAmount(long long value)
CreateUsageLimitRequest & WithPeriod(const UsageLimitPeriod &value)
CreateUsageLimitRequest & WithTags(const Aws::Vector< Tag > &value)
#define AWS_REDSHIFT_API
void SetPeriod(const UsageLimitPeriod &value)
void SetFeatureType(UsageLimitFeatureType &&value)
const UsageLimitBreachAction & GetBreachAction() const
CreateUsageLimitRequest & WithBreachAction(UsageLimitBreachAction &&value)
void SetBreachAction(const UsageLimitBreachAction &value)
CreateUsageLimitRequest & AddTags(const Tag &value)
CreateUsageLimitRequest & WithClusterIdentifier(Aws::String &&value)
CreateUsageLimitRequest & WithFeatureType(UsageLimitFeatureType &&value)
virtual const char * GetServiceRequestName() const override
CreateUsageLimitRequest & WithTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFeatureType(const UsageLimitFeatureType &value)
CreateUsageLimitRequest & WithClusterIdentifier(const char *value)