AWS SDK for C++  1.9.159
AWS SDK for C++
CreateUsagePlanResult.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 CreateUsagePlanResult& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
79  inline CreateUsagePlanResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
84  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline CreateUsagePlanResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
147 
151  inline CreateUsagePlanResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
152 
156  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithApiStages(const Aws::Vector<ApiStage>& value) { SetApiStages(value); return *this;}
178 
182  inline CreateUsagePlanResult& WithApiStages(Aws::Vector<ApiStage>&& value) { SetApiStages(std::move(value)); return *this;}
183 
187  inline CreateUsagePlanResult& AddApiStages(const ApiStage& value) { m_apiStages.push_back(value); return *this; }
188 
192  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithThrottle(const ThrottleSettings& value) { SetThrottle(value); return *this;}
214 
218  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithQuota(const QuotaSettings& value) { SetQuota(value); return *this;}
240 
244  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
276 
281  inline CreateUsagePlanResult& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
282 
287  inline CreateUsagePlanResult& 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 CreateUsagePlanResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
313 
318  inline CreateUsagePlanResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
319 
324  inline CreateUsagePlanResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
325 
330  inline CreateUsagePlanResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
331 
336  inline CreateUsagePlanResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
337 
342  inline CreateUsagePlanResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
343 
348  inline CreateUsagePlanResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
349 
354  inline CreateUsagePlanResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
355 
360  inline CreateUsagePlanResult& 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::APIGateway::Model::CreateUsagePlanResult::WithDescription
CreateUsagePlanResult & WithDescription(const char *value)
Definition: CreateUsagePlanResult.h:156
Aws::APIGateway::Model::CreateUsagePlanResult::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateUsagePlanResult.h:294
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::CreateUsagePlanResult::SetProductCode
void SetProductCode(const Aws::String &value)
Definition: CreateUsagePlanResult.h:257
Aws::APIGateway::Model::CreateUsagePlanResult::SetId
void SetId(const Aws::String &value)
Definition: CreateUsagePlanResult.h:59
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateUsagePlanResult.h:324
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateUsagePlanResult::SetThrottle
void SetThrottle(const ThrottleSettings &value)
Definition: CreateUsagePlanResult.h:203
Aws::APIGateway::Model::CreateUsagePlanResult::WithTags
CreateUsagePlanResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateUsagePlanResult.h:312
Aws::APIGateway::Model::CreateUsagePlanResult::GetId
const Aws::String & GetId() const
Definition: CreateUsagePlanResult.h:54
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateUsagePlanResult.h:342
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateUsagePlanResult.h:336
Aws::APIGateway::Model::CreateUsagePlanResult::SetThrottle
void SetThrottle(ThrottleSettings &&value)
Definition: CreateUsagePlanResult.h:208
Aws::APIGateway::Model::CreateUsagePlanResult::WithName
CreateUsagePlanResult & WithName(const char *value)
Definition: CreateUsagePlanResult.h:120
Aws::APIGateway::Model::CreateUsagePlanResult::SetApiStages
void SetApiStages(const Aws::Vector< ApiStage > &value)
Definition: CreateUsagePlanResult.h:167
Aws::APIGateway::Model::CreateUsagePlanResult::SetDescription
void SetDescription(const char *value)
Definition: CreateUsagePlanResult.h:141
Aws::APIGateway::Model::CreateUsagePlanResult::WithId
CreateUsagePlanResult & WithId(const Aws::String &value)
Definition: CreateUsagePlanResult.h:74
QuotaSettings.h
Aws::APIGateway::Model::CreateUsagePlanResult::SetApiStages
void SetApiStages(Aws::Vector< ApiStage > &&value)
Definition: CreateUsagePlanResult.h:172
Aws::APIGateway::Model::CreateUsagePlanResult::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateUsagePlanResult.h:131
Aws::APIGateway::Model::CreateUsagePlanResult::SetName
void SetName(const char *value)
Definition: CreateUsagePlanResult.h:105
Aws::APIGateway::Model::CreateUsagePlanResult::WithName
CreateUsagePlanResult & WithName(Aws::String &&value)
Definition: CreateUsagePlanResult.h:115
Aws::APIGateway::Model::CreateUsagePlanResult
Definition: CreateUsagePlanResult.h:44
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateUsagePlanResult::AddApiStages
CreateUsagePlanResult & AddApiStages(ApiStage &&value)
Definition: CreateUsagePlanResult.h:192
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::APIGateway::Model::CreateUsagePlanResult::WithId
CreateUsagePlanResult & WithId(const char *value)
Definition: CreateUsagePlanResult.h:84
Aws::APIGateway::Model::CreateUsagePlanResult::WithThrottle
CreateUsagePlanResult & WithThrottle(ThrottleSettings &&value)
Definition: CreateUsagePlanResult.h:218
Aws::APIGateway::Model::CreateUsagePlanResult::AddApiStages
CreateUsagePlanResult & AddApiStages(const ApiStage &value)
Definition: CreateUsagePlanResult.h:187
Aws::APIGateway::Model::CreateUsagePlanResult::WithProductCode
CreateUsagePlanResult & WithProductCode(const char *value)
Definition: CreateUsagePlanResult.h:287
ApiStage.h
Aws::APIGateway::Model::CreateUsagePlanResult::WithQuota
CreateUsagePlanResult & WithQuota(const QuotaSettings &value)
Definition: CreateUsagePlanResult.h:239
Aws::APIGateway::Model::CreateUsagePlanResult::WithThrottle
CreateUsagePlanResult & WithThrottle(const ThrottleSettings &value)
Definition: CreateUsagePlanResult.h:213
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(const char *key, Aws::String &&value)
Definition: CreateUsagePlanResult.h:348
Aws::APIGateway::Model::CreateUsagePlanResult::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateUsagePlanResult.h:306
Aws::APIGateway::Model::CreateUsagePlanResult::WithProductCode
CreateUsagePlanResult & WithProductCode(const Aws::String &value)
Definition: CreateUsagePlanResult.h:275
Aws::APIGateway::Model::ThrottleSettings
Definition: ThrottleSettings.h:30
Aws::APIGateway::Model::CreateUsagePlanResult::WithId
CreateUsagePlanResult & WithId(Aws::String &&value)
Definition: CreateUsagePlanResult.h:79
Aws::APIGateway::Model::CreateUsagePlanResult::WithDescription
CreateUsagePlanResult & WithDescription(Aws::String &&value)
Definition: CreateUsagePlanResult.h:151
Aws::APIGateway::Model::CreateUsagePlanResult::WithTags
CreateUsagePlanResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateUsagePlanResult.h:318
Aws::APIGateway::Model::CreateUsagePlanResult::GetApiStages
const Aws::Vector< ApiStage > & GetApiStages() const
Definition: CreateUsagePlanResult.h:162
AWSString.h
Aws::APIGateway::Model::CreateUsagePlanResult::SetQuota
void SetQuota(const QuotaSettings &value)
Definition: CreateUsagePlanResult.h:229
Aws::APIGateway::Model::CreateUsagePlanResult::SetProductCode
void SetProductCode(const char *value)
Definition: CreateUsagePlanResult.h:269
Aws::APIGateway::Model::CreateUsagePlanResult::GetProductCode
const Aws::String & GetProductCode() const
Definition: CreateUsagePlanResult.h:251
Aws::APIGateway::Model::CreateUsagePlanResult::WithDescription
CreateUsagePlanResult & WithDescription(const Aws::String &value)
Definition: CreateUsagePlanResult.h:146
Aws::APIGateway::Model::CreateUsagePlanResult::SetId
void SetId(const char *value)
Definition: CreateUsagePlanResult.h:69
Aws::APIGateway::Model::CreateUsagePlanResult::WithApiStages
CreateUsagePlanResult & WithApiStages(const Aws::Vector< ApiStage > &value)
Definition: CreateUsagePlanResult.h:177
Aws::APIGateway::Model::CreateUsagePlanResult::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateUsagePlanResult.h:136
Aws::APIGateway::Model::CreateUsagePlanResult::GetQuota
const QuotaSettings & GetQuota() const
Definition: CreateUsagePlanResult.h:224
Aws::APIGateway::Model::CreateUsagePlanResult::SetProductCode
void SetProductCode(Aws::String &&value)
Definition: CreateUsagePlanResult.h:263
Aws::APIGateway::Model::CreateUsagePlanResult::WithName
CreateUsagePlanResult & WithName(const Aws::String &value)
Definition: CreateUsagePlanResult.h:110
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateUsagePlanResult::GetDescription
const Aws::String & GetDescription() const
Definition: CreateUsagePlanResult.h:126
Aws::APIGateway::Model::CreateUsagePlanResult::GetThrottle
const ThrottleSettings & GetThrottle() const
Definition: CreateUsagePlanResult.h:198
Aws::APIGateway::Model::CreateUsagePlanResult::GetName
const Aws::String & GetName() const
Definition: CreateUsagePlanResult.h:90
Aws::APIGateway::Model::CreateUsagePlanResult::SetQuota
void SetQuota(QuotaSettings &&value)
Definition: CreateUsagePlanResult.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::CreateUsagePlanResult::WithProductCode
CreateUsagePlanResult & WithProductCode(Aws::String &&value)
Definition: CreateUsagePlanResult.h:281
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(const char *key, const char *value)
Definition: CreateUsagePlanResult.h:360
Aws::APIGateway::Model::CreateUsagePlanResult::operator=
CreateUsagePlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::CreateUsagePlanResult::SetName
void SetName(const Aws::String &value)
Definition: CreateUsagePlanResult.h:95
Aws::APIGateway::Model::CreateUsagePlanResult::WithQuota
CreateUsagePlanResult & WithQuota(QuotaSettings &&value)
Definition: CreateUsagePlanResult.h:244
Aws::APIGateway::Model::CreateUsagePlanResult::WithApiStages
CreateUsagePlanResult & WithApiStages(Aws::Vector< ApiStage > &&value)
Definition: CreateUsagePlanResult.h:182
Aws::APIGateway::Model::CreateUsagePlanResult::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateUsagePlanResult.h:300
Aws::APIGateway::Model::CreateUsagePlanResult::CreateUsagePlanResult
CreateUsagePlanResult()
Aws::APIGateway::Model::QuotaSettings
Definition: QuotaSettings.h:32
Aws::APIGateway::Model::CreateUsagePlanResult::CreateUsagePlanResult
CreateUsagePlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ThrottleSettings.h
AWSMap.h
Aws::APIGateway::Model::CreateUsagePlanResult::SetName
void SetName(Aws::String &&value)
Definition: CreateUsagePlanResult.h:100
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateUsagePlanResult.h:330
Aws::APIGateway::Model::CreateUsagePlanResult::AddTags
CreateUsagePlanResult & AddTags(Aws::String &&key, const char *value)
Definition: CreateUsagePlanResult.h:354
Aws::APIGateway::Model::CreateUsagePlanResult::SetId
void SetId(Aws::String &&value)
Definition: CreateUsagePlanResult.h:64
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19