AWS SDK for C++  1.9.104
AWS SDK for C++
ModifyUsageLimitResult.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 template<typename RESULT_TYPE>
21 class AmazonWebServiceResult;
22 
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlDocument;
28 } // namespace Xml
29 } // namespace Utils
30 namespace Redshift
31 {
32 namespace Model
33 {
40  {
41  public:
45 
46 
50  inline const Aws::String& GetUsageLimitId() const{ return m_usageLimitId; }
51 
55  inline void SetUsageLimitId(const Aws::String& value) { m_usageLimitId = value; }
56 
60  inline void SetUsageLimitId(Aws::String&& value) { m_usageLimitId = std::move(value); }
61 
65  inline void SetUsageLimitId(const char* value) { m_usageLimitId.assign(value); }
66 
70  inline ModifyUsageLimitResult& WithUsageLimitId(const Aws::String& value) { SetUsageLimitId(value); return *this;}
71 
75  inline ModifyUsageLimitResult& WithUsageLimitId(Aws::String&& value) { SetUsageLimitId(std::move(value)); return *this;}
76 
80  inline ModifyUsageLimitResult& WithUsageLimitId(const char* value) { SetUsageLimitId(value); return *this;}
81 
82 
86  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
87 
91  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifier = value; }
92 
96  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifier = std::move(value); }
97 
101  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifier.assign(value); }
102 
106  inline ModifyUsageLimitResult& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
107 
111  inline ModifyUsageLimitResult& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
112 
116  inline ModifyUsageLimitResult& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
117 
118 
122  inline const UsageLimitFeatureType& GetFeatureType() const{ return m_featureType; }
123 
127  inline void SetFeatureType(const UsageLimitFeatureType& value) { m_featureType = value; }
128 
132  inline void SetFeatureType(UsageLimitFeatureType&& value) { m_featureType = std::move(value); }
133 
137  inline ModifyUsageLimitResult& WithFeatureType(const UsageLimitFeatureType& value) { SetFeatureType(value); return *this;}
138 
142  inline ModifyUsageLimitResult& WithFeatureType(UsageLimitFeatureType&& value) { SetFeatureType(std::move(value)); return *this;}
143 
144 
149  inline const UsageLimitLimitType& GetLimitType() const{ return m_limitType; }
150 
155  inline void SetLimitType(const UsageLimitLimitType& value) { m_limitType = value; }
156 
161  inline void SetLimitType(UsageLimitLimitType&& value) { m_limitType = std::move(value); }
162 
167  inline ModifyUsageLimitResult& WithLimitType(const UsageLimitLimitType& value) { SetLimitType(value); return *this;}
168 
173  inline ModifyUsageLimitResult& WithLimitType(UsageLimitLimitType&& value) { SetLimitType(std::move(value)); return *this;}
174 
175 
180  inline long long GetAmount() const{ return m_amount; }
181 
186  inline void SetAmount(long long value) { m_amount = value; }
187 
192  inline ModifyUsageLimitResult& WithAmount(long long value) { SetAmount(value); return *this;}
193 
194 
199  inline const UsageLimitPeriod& GetPeriod() const{ return m_period; }
200 
205  inline void SetPeriod(const UsageLimitPeriod& value) { m_period = value; }
206 
211  inline void SetPeriod(UsageLimitPeriod&& value) { m_period = std::move(value); }
212 
217  inline ModifyUsageLimitResult& WithPeriod(const UsageLimitPeriod& value) { SetPeriod(value); return *this;}
218 
223  inline ModifyUsageLimitResult& WithPeriod(UsageLimitPeriod&& value) { SetPeriod(std::move(value)); return *this;}
224 
225 
233  inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
234 
242  inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachAction = value; }
243 
251  inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachAction = std::move(value); }
252 
260  inline ModifyUsageLimitResult& WithBreachAction(const UsageLimitBreachAction& value) { SetBreachAction(value); return *this;}
261 
269  inline ModifyUsageLimitResult& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
270 
271 
275  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
276 
280  inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
281 
285  inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
286 
290  inline ModifyUsageLimitResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
291 
295  inline ModifyUsageLimitResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
296 
300  inline ModifyUsageLimitResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
301 
305  inline ModifyUsageLimitResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
306 
307 
308 
309  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
310 
311 
312  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
313 
314 
315  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
316 
317 
318  inline ModifyUsageLimitResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
319 
320 
321  inline ModifyUsageLimitResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
322 
323  private:
324 
325  Aws::String m_usageLimitId;
326 
327  Aws::String m_clusterIdentifier;
328 
329  UsageLimitFeatureType m_featureType;
330 
331  UsageLimitLimitType m_limitType;
332 
333  long long m_amount;
334 
335  UsageLimitPeriod m_period;
336 
337  UsageLimitBreachAction m_breachAction;
338 
339  Aws::Vector<Tag> m_tags;
340 
341  ResponseMetadata m_responseMetadata;
342  };
343 
344 } // namespace Model
345 } // namespace Redshift
346 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::ModifyUsageLimitResult::SetUsageLimitId
void SetUsageLimitId(const char *value)
Definition: ModifyUsageLimitResult.h:65
Aws::Redshift::Model::ModifyUsageLimitResult::WithClusterIdentifier
ModifyUsageLimitResult & WithClusterIdentifier(const char *value)
Definition: ModifyUsageLimitResult.h:116
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::ModifyUsageLimitResult::AddTags
ModifyUsageLimitResult & AddTags(Tag &&value)
Definition: ModifyUsageLimitResult.h:305
Aws::Redshift::Model::ModifyUsageLimitResult::WithLimitType
ModifyUsageLimitResult & WithLimitType(UsageLimitLimitType &&value)
Definition: ModifyUsageLimitResult.h:173
Aws::Redshift::Model::ModifyUsageLimitResult::GetFeatureType
const UsageLimitFeatureType & GetFeatureType() const
Definition: ModifyUsageLimitResult.h:122
Aws::Redshift::Model::ModifyUsageLimitResult::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ModifyUsageLimitResult.h:91
UsageLimitBreachAction.h
Aws::Redshift::Model::ModifyUsageLimitResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ModifyUsageLimitResult.h:315
Aws::Redshift::Model::ModifyUsageLimitResult::WithAmount
ModifyUsageLimitResult & WithAmount(long long value)
Definition: ModifyUsageLimitResult.h:192
Aws::Redshift::Model::ModifyUsageLimitResult::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ModifyUsageLimitResult.h:280
Aws::Redshift::Model::ModifyUsageLimitResult::SetAmount
void SetAmount(long long value)
Definition: ModifyUsageLimitResult.h:186
Aws::Redshift::Model::ModifyUsageLimitResult
Definition: ModifyUsageLimitResult.h:40
Aws::Redshift::Model::ModifyUsageLimitResult::SetFeatureType
void SetFeatureType(UsageLimitFeatureType &&value)
Definition: ModifyUsageLimitResult.h:132
Aws::Redshift::Model::ModifyUsageLimitResult::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ModifyUsageLimitResult.h:101
Tag.h
Aws::Redshift::Model::ModifyUsageLimitResult::SetFeatureType
void SetFeatureType(const UsageLimitFeatureType &value)
Definition: ModifyUsageLimitResult.h:127
Aws::Redshift::Model::ModifyUsageLimitResult::ModifyUsageLimitResult
ModifyUsageLimitResult()
Aws::Redshift::Model::ModifyUsageLimitResult::WithUsageLimitId
ModifyUsageLimitResult & WithUsageLimitId(const Aws::String &value)
Definition: ModifyUsageLimitResult.h:70
Aws::Redshift::Model::ModifyUsageLimitResult::SetBreachAction
void SetBreachAction(UsageLimitBreachAction &&value)
Definition: ModifyUsageLimitResult.h:251
Aws::Redshift::Model::ModifyUsageLimitResult::WithBreachAction
ModifyUsageLimitResult & WithBreachAction(UsageLimitBreachAction &&value)
Definition: ModifyUsageLimitResult.h:269
Aws::Redshift::Model::ModifyUsageLimitResult::SetLimitType
void SetLimitType(const UsageLimitLimitType &value)
Definition: ModifyUsageLimitResult.h:155
Aws::Redshift::Model::ModifyUsageLimitResult::WithResponseMetadata
ModifyUsageLimitResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: ModifyUsageLimitResult.h:321
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UsageLimitFeatureType.h
Aws::Redshift::Model::ModifyUsageLimitResult::SetUsageLimitId
void SetUsageLimitId(Aws::String &&value)
Definition: ModifyUsageLimitResult.h:60
AWSVector.h
Aws::Redshift::Model::ModifyUsageLimitResult::WithFeatureType
ModifyUsageLimitResult & WithFeatureType(const UsageLimitFeatureType &value)
Definition: ModifyUsageLimitResult.h:137
Aws::Redshift::Model::ModifyUsageLimitResult::ModifyUsageLimitResult
ModifyUsageLimitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::ModifyUsageLimitResult::GetBreachAction
const UsageLimitBreachAction & GetBreachAction() const
Definition: ModifyUsageLimitResult.h:233
Aws::Redshift::Model::ModifyUsageLimitResult::WithClusterIdentifier
ModifyUsageLimitResult & WithClusterIdentifier(const Aws::String &value)
Definition: ModifyUsageLimitResult.h:106
Aws::Redshift::Model::UsageLimitBreachAction
UsageLimitBreachAction
Definition: UsageLimitBreachAction.h:17
Aws::Redshift::Model::ModifyUsageLimitResult::WithBreachAction
ModifyUsageLimitResult & WithBreachAction(const UsageLimitBreachAction &value)
Definition: ModifyUsageLimitResult.h:260
Aws::Redshift::Model::ModifyUsageLimitResult::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ModifyUsageLimitResult.h:96
Aws::Redshift::Model::ModifyUsageLimitResult::AddTags
ModifyUsageLimitResult & AddTags(const Tag &value)
Definition: ModifyUsageLimitResult.h:300
Aws::Redshift::Model::ModifyUsageLimitResult::GetAmount
long long GetAmount() const
Definition: ModifyUsageLimitResult.h:180
Aws::Redshift::Model::ModifyUsageLimitResult::SetPeriod
void SetPeriod(const UsageLimitPeriod &value)
Definition: ModifyUsageLimitResult.h:205
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifyUsageLimitResult::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ModifyUsageLimitResult.h:285
UsageLimitPeriod.h
Aws::Redshift::Model::ModifyUsageLimitResult::GetLimitType
const UsageLimitLimitType & GetLimitType() const
Definition: ModifyUsageLimitResult.h:149
AWSString.h
Aws::Redshift::Model::ModifyUsageLimitResult::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ModifyUsageLimitResult.h:86
Aws::Redshift::Model::ModifyUsageLimitResult::operator=
ModifyUsageLimitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::ModifyUsageLimitResult::WithTags
ModifyUsageLimitResult & WithTags(const Aws::Vector< Tag > &value)
Definition: ModifyUsageLimitResult.h:290
Aws::Redshift::Model::ModifyUsageLimitResult::WithUsageLimitId
ModifyUsageLimitResult & WithUsageLimitId(const char *value)
Definition: ModifyUsageLimitResult.h:80
Aws::Redshift::Model::ModifyUsageLimitResult::WithTags
ModifyUsageLimitResult & WithTags(Aws::Vector< Tag > &&value)
Definition: ModifyUsageLimitResult.h:295
Aws::Redshift::Model::ModifyUsageLimitResult::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ModifyUsageLimitResult.h:275
Aws::Redshift::Model::ModifyUsageLimitResult::WithUsageLimitId
ModifyUsageLimitResult & WithUsageLimitId(Aws::String &&value)
Definition: ModifyUsageLimitResult.h:75
UsageLimitLimitType.h
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::UsageLimitLimitType
UsageLimitLimitType
Definition: UsageLimitLimitType.h:17
Aws::Redshift::Model::ModifyUsageLimitResult::WithPeriod
ModifyUsageLimitResult & WithPeriod(UsageLimitPeriod &&value)
Definition: ModifyUsageLimitResult.h:223
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyUsageLimitResult::WithPeriod
ModifyUsageLimitResult & WithPeriod(const UsageLimitPeriod &value)
Definition: ModifyUsageLimitResult.h:217
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyUsageLimitResult::SetLimitType
void SetLimitType(UsageLimitLimitType &&value)
Definition: ModifyUsageLimitResult.h:161
Aws::Redshift::Model::ModifyUsageLimitResult::SetBreachAction
void SetBreachAction(const UsageLimitBreachAction &value)
Definition: ModifyUsageLimitResult.h:242
ResponseMetadata.h
Aws::Redshift::Model::ModifyUsageLimitResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ModifyUsageLimitResult.h:309
Aws::Redshift::Model::ModifyUsageLimitResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ModifyUsageLimitResult.h:312
Aws::Redshift::Model::ModifyUsageLimitResult::WithResponseMetadata
ModifyUsageLimitResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: ModifyUsageLimitResult.h:318
Aws::Redshift::Model::ModifyUsageLimitResult::GetPeriod
const UsageLimitPeriod & GetPeriod() const
Definition: ModifyUsageLimitResult.h:199
Aws::Redshift::Model::ModifyUsageLimitResult::WithFeatureType
ModifyUsageLimitResult & WithFeatureType(UsageLimitFeatureType &&value)
Definition: ModifyUsageLimitResult.h:142
Aws::Redshift::Model::ModifyUsageLimitResult::SetPeriod
void SetPeriod(UsageLimitPeriod &&value)
Definition: ModifyUsageLimitResult.h:211
Aws::Redshift::Model::ModifyUsageLimitResult::WithClusterIdentifier
ModifyUsageLimitResult & WithClusterIdentifier(Aws::String &&value)
Definition: ModifyUsageLimitResult.h:111
Aws::Redshift::Model::ModifyUsageLimitResult::GetUsageLimitId
const Aws::String & GetUsageLimitId() const
Definition: ModifyUsageLimitResult.h:50
Aws::Redshift::Model::UsageLimitFeatureType
UsageLimitFeatureType
Definition: UsageLimitFeatureType.h:17
Aws::Redshift::Model::UsageLimitPeriod
UsageLimitPeriod
Definition: UsageLimitPeriod.h:17
Aws::Redshift::Model::ModifyUsageLimitResult::WithLimitType
ModifyUsageLimitResult & WithLimitType(const UsageLimitLimitType &value)
Definition: ModifyUsageLimitResult.h:167
Aws::Redshift::Model::ModifyUsageLimitResult::SetUsageLimitId
void SetUsageLimitId(const Aws::String &value)
Definition: ModifyUsageLimitResult.h:55