AWS SDK for C++  1.9.20
AWS SDK for C++
GetUsagePlanResult.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 template<typename RESULT_TYPE>
19 class AmazonWebServiceResult;
20 
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace APIGateway
29 {
30 namespace Model
31 {
44  {
45  public:
49 
50 
54  inline const Aws::String& GetId() const{ return m_id; }
55 
59  inline void SetId(const Aws::String& value) { m_id = value; }
60 
64  inline void SetId(Aws::String&& value) { m_id = std::move(value); }
65 
69  inline void SetId(const char* value) { m_id.assign(value); }
70 
74  inline GetUsagePlanResult& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
79  inline GetUsagePlanResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
84  inline GetUsagePlanResult& WithId(const char* value) { SetId(value); return *this;}
85 
86 
90  inline const Aws::String& GetName() const{ return m_name; }
91 
95  inline void SetName(const Aws::String& value) { m_name = value; }
96 
100  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
101 
105  inline void SetName(const char* value) { m_name.assign(value); }
106 
110  inline GetUsagePlanResult& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline GetUsagePlanResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline GetUsagePlanResult& WithName(const char* value) { SetName(value); return *this;}
121 
122 
126  inline const Aws::String& GetDescription() const{ return m_description; }
127 
131  inline void SetDescription(const Aws::String& value) { m_description = value; }
132 
136  inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
137 
141  inline void SetDescription(const char* value) { m_description.assign(value); }
142 
146  inline GetUsagePlanResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
147 
151  inline GetUsagePlanResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
152 
156  inline GetUsagePlanResult& WithDescription(const char* value) { SetDescription(value); return *this;}
157 
158 
162  inline const Aws::Vector<ApiStage>& GetApiStages() const{ return m_apiStages; }
163 
167  inline void SetApiStages(const Aws::Vector<ApiStage>& value) { m_apiStages = value; }
168 
172  inline void SetApiStages(Aws::Vector<ApiStage>&& value) { m_apiStages = std::move(value); }
173 
177  inline GetUsagePlanResult& WithApiStages(const Aws::Vector<ApiStage>& value) { SetApiStages(value); return *this;}
178 
182  inline GetUsagePlanResult& WithApiStages(Aws::Vector<ApiStage>&& value) { SetApiStages(std::move(value)); return *this;}
183 
187  inline GetUsagePlanResult& AddApiStages(const ApiStage& value) { m_apiStages.push_back(value); return *this; }
188 
192  inline GetUsagePlanResult& AddApiStages(ApiStage&& value) { m_apiStages.push_back(std::move(value)); return *this; }
193 
194 
198  inline const ThrottleSettings& GetThrottle() const{ return m_throttle; }
199 
203  inline void SetThrottle(const ThrottleSettings& value) { m_throttle = value; }
204 
208  inline void SetThrottle(ThrottleSettings&& value) { m_throttle = std::move(value); }
209 
213  inline GetUsagePlanResult& WithThrottle(const ThrottleSettings& value) { SetThrottle(value); return *this;}
214 
218  inline GetUsagePlanResult& WithThrottle(ThrottleSettings&& value) { SetThrottle(std::move(value)); return *this;}
219 
220 
224  inline const QuotaSettings& GetQuota() const{ return m_quota; }
225 
229  inline void SetQuota(const QuotaSettings& value) { m_quota = value; }
230 
234  inline void SetQuota(QuotaSettings&& value) { m_quota = std::move(value); }
235 
239  inline GetUsagePlanResult& WithQuota(const QuotaSettings& value) { SetQuota(value); return *this;}
240 
244  inline GetUsagePlanResult& WithQuota(QuotaSettings&& value) { SetQuota(std::move(value)); return *this;}
245 
246 
251  inline const Aws::String& GetProductCode() const{ return m_productCode; }
252 
257  inline void SetProductCode(const Aws::String& value) { m_productCode = value; }
258 
263  inline void SetProductCode(Aws::String&& value) { m_productCode = std::move(value); }
264 
269  inline void SetProductCode(const char* value) { m_productCode.assign(value); }
270 
275  inline GetUsagePlanResult& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
276 
281  inline GetUsagePlanResult& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
282 
287  inline GetUsagePlanResult& WithProductCode(const char* value) { SetProductCode(value); return *this;}
288 
289 
294  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
295 
300  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
301 
306  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
307 
312  inline GetUsagePlanResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
313 
318  inline GetUsagePlanResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
319 
324  inline GetUsagePlanResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
325 
330  inline GetUsagePlanResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
331 
336  inline GetUsagePlanResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
337 
342  inline GetUsagePlanResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
343 
348  inline GetUsagePlanResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
349 
354  inline GetUsagePlanResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
355 
360  inline GetUsagePlanResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
361 
362  private:
363 
364  Aws::String m_id;
365 
366  Aws::String m_name;
367 
368  Aws::String m_description;
369 
370  Aws::Vector<ApiStage> m_apiStages;
371 
372  ThrottleSettings m_throttle;
373 
374  QuotaSettings m_quota;
375 
376  Aws::String m_productCode;
377 
379  };
380 
381 } // namespace Model
382 } // namespace APIGateway
383 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::GetUsagePlanResult::WithApiStages
GetUsagePlanResult & WithApiStages(const Aws::Vector< ApiStage > &value)
Definition: GetUsagePlanResult.h:177
Aws::APIGateway::Model::GetUsagePlanResult::WithDescription
GetUsagePlanResult & WithDescription(Aws::String &&value)
Definition: GetUsagePlanResult.h:151
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetUsagePlanResult::WithThrottle
GetUsagePlanResult & WithThrottle(const ThrottleSettings &value)
Definition: GetUsagePlanResult.h:213
Aws::APIGateway::Model::GetUsagePlanResult::WithApiStages
GetUsagePlanResult & WithApiStages(Aws::Vector< ApiStage > &&value)
Definition: GetUsagePlanResult.h:182
Aws::APIGateway::Model::GetUsagePlanResult::SetId
void SetId(Aws::String &&value)
Definition: GetUsagePlanResult.h:64
Aws::APIGateway::Model::GetUsagePlanResult::GetApiStages
const Aws::Vector< ApiStage > & GetApiStages() const
Definition: GetUsagePlanResult.h:162
QuotaSettings.h
Aws::APIGateway::Model::GetUsagePlanResult::SetDescription
void SetDescription(const Aws::String &value)
Definition: GetUsagePlanResult.h:131
Aws::APIGateway::Model::GetUsagePlanResult::SetName
void SetName(Aws::String &&value)
Definition: GetUsagePlanResult.h:100
Aws::APIGateway::Model::GetUsagePlanResult::WithName
GetUsagePlanResult & WithName(const char *value)
Definition: GetUsagePlanResult.h:120
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetUsagePlanResult::SetProductCode
void SetProductCode(Aws::String &&value)
Definition: GetUsagePlanResult.h:263
Aws::APIGateway::Model::GetUsagePlanResult::SetProductCode
void SetProductCode(const Aws::String &value)
Definition: GetUsagePlanResult.h:257
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::GetUsagePlanResult::WithQuota
GetUsagePlanResult & WithQuota(QuotaSettings &&value)
Definition: GetUsagePlanResult.h:244
Aws::APIGateway::Model::GetUsagePlanResult::WithProductCode
GetUsagePlanResult & WithProductCode(const Aws::String &value)
Definition: GetUsagePlanResult.h:275
Aws::APIGateway::Model::GetUsagePlanResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: GetUsagePlanResult.h:294
Aws::APIGateway::Model::GetUsagePlanResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetUsagePlanResult.h:300
AWSVector.h
Aws::APIGateway::Model::GetUsagePlanResult::GetName
const Aws::String & GetName() const
Definition: GetUsagePlanResult.h:90
Aws::APIGateway::Model::GetUsagePlanResult::WithTags
GetUsagePlanResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetUsagePlanResult.h:312
Aws::APIGateway::Model::GetUsagePlanResult::WithId
GetUsagePlanResult & WithId(Aws::String &&value)
Definition: GetUsagePlanResult.h:79
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: GetUsagePlanResult.h:330
Aws::APIGateway::Model::GetUsagePlanResult::GetUsagePlanResult
GetUsagePlanResult()
Aws::APIGateway::Model::GetUsagePlanResult::WithName
GetUsagePlanResult & WithName(const Aws::String &value)
Definition: GetUsagePlanResult.h:110
Aws::APIGateway::Model::GetUsagePlanResult::WithName
GetUsagePlanResult & WithName(Aws::String &&value)
Definition: GetUsagePlanResult.h:115
Aws::APIGateway::Model::GetUsagePlanResult::GetProductCode
const Aws::String & GetProductCode() const
Definition: GetUsagePlanResult.h:251
Aws::APIGateway::Model::GetUsagePlanResult::WithId
GetUsagePlanResult & WithId(const Aws::String &value)
Definition: GetUsagePlanResult.h:74
Aws::APIGateway::Model::GetUsagePlanResult::SetId
void SetId(const char *value)
Definition: GetUsagePlanResult.h:69
Aws::APIGateway::Model::GetUsagePlanResult::WithTags
GetUsagePlanResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetUsagePlanResult.h:318
Aws::APIGateway::Model::GetUsagePlanResult::SetApiStages
void SetApiStages(const Aws::Vector< ApiStage > &value)
Definition: GetUsagePlanResult.h:167
Aws::APIGateway::Model::GetUsagePlanResult::GetId
const Aws::String & GetId() const
Definition: GetUsagePlanResult.h:54
Aws::APIGateway::Model::GetUsagePlanResult
Definition: GetUsagePlanResult.h:44
Aws::APIGateway::Model::GetUsagePlanResult::WithDescription
GetUsagePlanResult & WithDescription(const char *value)
Definition: GetUsagePlanResult.h:156
ApiStage.h
Aws::APIGateway::Model::GetUsagePlanResult::WithId
GetUsagePlanResult & WithId(const char *value)
Definition: GetUsagePlanResult.h:84
Aws::APIGateway::Model::GetUsagePlanResult::AddApiStages
GetUsagePlanResult & AddApiStages(ApiStage &&value)
Definition: GetUsagePlanResult.h:192
Aws::APIGateway::Model::ThrottleSettings
Definition: ThrottleSettings.h:30
Aws::APIGateway::Model::GetUsagePlanResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetUsagePlanResult.h:306
Aws::APIGateway::Model::GetUsagePlanResult::WithProductCode
GetUsagePlanResult & WithProductCode(const char *value)
Definition: GetUsagePlanResult.h:287
Aws::APIGateway::Model::GetUsagePlanResult::SetName
void SetName(const char *value)
Definition: GetUsagePlanResult.h:105
Aws::APIGateway::Model::GetUsagePlanResult::GetUsagePlanResult
GetUsagePlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::GetUsagePlanResult::WithQuota
GetUsagePlanResult & WithQuota(const QuotaSettings &value)
Definition: GetUsagePlanResult.h:239
Aws::APIGateway::Model::GetUsagePlanResult::SetQuota
void SetQuota(const QuotaSettings &value)
Definition: GetUsagePlanResult.h:229
Aws::APIGateway::Model::GetUsagePlanResult::SetId
void SetId(const Aws::String &value)
Definition: GetUsagePlanResult.h:59
Aws::APIGateway::Model::GetUsagePlanResult::SetProductCode
void SetProductCode(const char *value)
Definition: GetUsagePlanResult.h:269
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(Aws::String &&key, const char *value)
Definition: GetUsagePlanResult.h:354
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: GetUsagePlanResult.h:336
AWSString.h
Aws::APIGateway::Model::GetUsagePlanResult::SetThrottle
void SetThrottle(const ThrottleSettings &value)
Definition: GetUsagePlanResult.h:203
Aws::APIGateway::Model::GetUsagePlanResult::WithThrottle
GetUsagePlanResult & WithThrottle(ThrottleSettings &&value)
Definition: GetUsagePlanResult.h:218
Aws::APIGateway::Model::GetUsagePlanResult::SetApiStages
void SetApiStages(Aws::Vector< ApiStage > &&value)
Definition: GetUsagePlanResult.h:172
Aws::APIGateway::Model::GetUsagePlanResult::SetThrottle
void SetThrottle(ThrottleSettings &&value)
Definition: GetUsagePlanResult.h:208
Aws::APIGateway::Model::GetUsagePlanResult::operator=
GetUsagePlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::GetUsagePlanResult::GetQuota
const QuotaSettings & GetQuota() const
Definition: GetUsagePlanResult.h:224
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(const char *key, const char *value)
Definition: GetUsagePlanResult.h:360
Aws::APIGateway::Model::GetUsagePlanResult::WithProductCode
GetUsagePlanResult & WithProductCode(Aws::String &&value)
Definition: GetUsagePlanResult.h:281
Aws::APIGateway::Model::GetUsagePlanResult::GetDescription
const Aws::String & GetDescription() const
Definition: GetUsagePlanResult.h:126
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(const char *key, Aws::String &&value)
Definition: GetUsagePlanResult.h:348
Aws::APIGateway::Model::GetUsagePlanResult::WithDescription
GetUsagePlanResult & WithDescription(const Aws::String &value)
Definition: GetUsagePlanResult.h:146
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: GetUsagePlanResult.h:324
Aws::APIGateway::Model::GetUsagePlanResult::SetQuota
void SetQuota(QuotaSettings &&value)
Definition: GetUsagePlanResult.h:234
Aws::APIGateway::Model::ApiStage
Definition: ApiStage.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetUsagePlanResult::SetDescription
void SetDescription(Aws::String &&value)
Definition: GetUsagePlanResult.h:136
Aws::APIGateway::Model::GetUsagePlanResult::AddTags
GetUsagePlanResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: GetUsagePlanResult.h:342
Aws::APIGateway::Model::QuotaSettings
Definition: QuotaSettings.h:32
Aws::APIGateway::Model::GetUsagePlanResult::SetDescription
void SetDescription(const char *value)
Definition: GetUsagePlanResult.h:141
ThrottleSettings.h
AWSMap.h
Aws::APIGateway::Model::GetUsagePlanResult::SetName
void SetName(const Aws::String &value)
Definition: GetUsagePlanResult.h:95
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::GetUsagePlanResult::AddApiStages
GetUsagePlanResult & AddApiStages(const ApiStage &value)
Definition: GetUsagePlanResult.h:187
Aws::APIGateway::Model::GetUsagePlanResult::GetThrottle
const ThrottleSettings & GetThrottle() const
Definition: GetUsagePlanResult.h:198