AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUsagePlanRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/ThrottleSettings.h>
12#include <aws/apigateway/model/QuotaSettings.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/apigateway/model/ApiStage.h>
15#include <utility>
16
17namespace Aws
18{
19namespace APIGateway
20{
21namespace Model
22{
23
32 {
33 public:
34 AWS_APIGATEWAY_API CreateUsagePlanRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CreateUsagePlan"; }
41
42 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline CreateUsagePlanRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline CreateUsagePlanRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline CreateUsagePlanRequest& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline CreateUsagePlanRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline CreateUsagePlanRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline CreateUsagePlanRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::Vector<ApiStage>& GetApiStages() const{ return m_apiStages; }
78 inline bool ApiStagesHasBeenSet() const { return m_apiStagesHasBeenSet; }
79 inline void SetApiStages(const Aws::Vector<ApiStage>& value) { m_apiStagesHasBeenSet = true; m_apiStages = value; }
80 inline void SetApiStages(Aws::Vector<ApiStage>&& value) { m_apiStagesHasBeenSet = true; m_apiStages = std::move(value); }
81 inline CreateUsagePlanRequest& WithApiStages(const Aws::Vector<ApiStage>& value) { SetApiStages(value); return *this;}
82 inline CreateUsagePlanRequest& WithApiStages(Aws::Vector<ApiStage>&& value) { SetApiStages(std::move(value)); return *this;}
83 inline CreateUsagePlanRequest& AddApiStages(const ApiStage& value) { m_apiStagesHasBeenSet = true; m_apiStages.push_back(value); return *this; }
84 inline CreateUsagePlanRequest& AddApiStages(ApiStage&& value) { m_apiStagesHasBeenSet = true; m_apiStages.push_back(std::move(value)); return *this; }
86
88
91 inline const ThrottleSettings& GetThrottle() const{ return m_throttle; }
92 inline bool ThrottleHasBeenSet() const { return m_throttleHasBeenSet; }
93 inline void SetThrottle(const ThrottleSettings& value) { m_throttleHasBeenSet = true; m_throttle = value; }
94 inline void SetThrottle(ThrottleSettings&& value) { m_throttleHasBeenSet = true; m_throttle = std::move(value); }
95 inline CreateUsagePlanRequest& WithThrottle(const ThrottleSettings& value) { SetThrottle(value); return *this;}
96 inline CreateUsagePlanRequest& WithThrottle(ThrottleSettings&& value) { SetThrottle(std::move(value)); return *this;}
98
100
103 inline const QuotaSettings& GetQuota() const{ return m_quota; }
104 inline bool QuotaHasBeenSet() const { return m_quotaHasBeenSet; }
105 inline void SetQuota(const QuotaSettings& value) { m_quotaHasBeenSet = true; m_quota = value; }
106 inline void SetQuota(QuotaSettings&& value) { m_quotaHasBeenSet = true; m_quota = std::move(value); }
107 inline CreateUsagePlanRequest& WithQuota(const QuotaSettings& value) { SetQuota(value); return *this;}
108 inline CreateUsagePlanRequest& WithQuota(QuotaSettings&& value) { SetQuota(std::move(value)); return *this;}
110
112
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateUsagePlanRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
122 inline CreateUsagePlanRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
123 inline CreateUsagePlanRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
124 inline CreateUsagePlanRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
125 inline CreateUsagePlanRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
126 inline CreateUsagePlanRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
127 inline CreateUsagePlanRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
128 inline CreateUsagePlanRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
129 inline CreateUsagePlanRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 Aws::Vector<ApiStage> m_apiStages;
140 bool m_apiStagesHasBeenSet = false;
141
142 ThrottleSettings m_throttle;
143 bool m_throttleHasBeenSet = false;
144
145 QuotaSettings m_quota;
146 bool m_quotaHasBeenSet = false;
147
149 bool m_tagsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace APIGateway
154} // namespace Aws
void SetThrottle(const ThrottleSettings &value)
CreateUsagePlanRequest & AddTags(const char *key, const char *value)
CreateUsagePlanRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUsagePlanRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUsagePlanRequest & WithApiStages(Aws::Vector< ApiStage > &&value)
CreateUsagePlanRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetApiStages(Aws::Vector< ApiStage > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetApiStages(const Aws::Vector< ApiStage > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUsagePlanRequest & WithDescription(const Aws::String &value)
CreateUsagePlanRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateUsagePlanRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateUsagePlanRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUsagePlanRequest & AddTags(const char *key, Aws::String &&value)
CreateUsagePlanRequest & WithDescription(const char *value)
CreateUsagePlanRequest & WithDescription(Aws::String &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateUsagePlanRequest & WithThrottle(const ThrottleSettings &value)
CreateUsagePlanRequest & WithQuota(const QuotaSettings &value)
CreateUsagePlanRequest & WithName(Aws::String &&value)
CreateUsagePlanRequest & AddApiStages(ApiStage &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ApiStage > & GetApiStages() const
CreateUsagePlanRequest & WithApiStages(const Aws::Vector< ApiStage > &value)
CreateUsagePlanRequest & AddTags(Aws::String &&key, const char *value)
CreateUsagePlanRequest & WithName(const Aws::String &value)
CreateUsagePlanRequest & WithThrottle(ThrottleSettings &&value)
CreateUsagePlanRequest & WithQuota(QuotaSettings &&value)
CreateUsagePlanRequest & AddApiStages(const ApiStage &value)
CreateUsagePlanRequest & WithName(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector