AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateUsagePlanResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/ApiStage.h>
9#include <aws/apigateway/model/QuotaSettings.h>
10#include <aws/apigateway/model/ThrottleSettings.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace APIGateway {
28namespace Model {
42 public:
43 AWS_APIGATEWAY_API UpdateUsagePlanResult() = default;
46
48
51 inline const Aws::String& GetId() const { return m_id; }
52 template <typename IdT = Aws::String>
53 void SetId(IdT&& value) {
54 m_idHasBeenSet = true;
55 m_id = std::forward<IdT>(value);
56 }
57 template <typename IdT = Aws::String>
59 SetId(std::forward<IdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 template <typename NameT = Aws::String>
70 void SetName(NameT&& value) {
71 m_nameHasBeenSet = true;
72 m_name = std::forward<NameT>(value);
73 }
74 template <typename NameT = Aws::String>
76 SetName(std::forward<NameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 UpdateUsagePlanResult& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<ApiStage>& GetApiStages() const { return m_apiStages; }
103 template <typename ApiStagesT = Aws::Vector<ApiStage>>
104 void SetApiStages(ApiStagesT&& value) {
105 m_apiStagesHasBeenSet = true;
106 m_apiStages = std::forward<ApiStagesT>(value);
107 }
108 template <typename ApiStagesT = Aws::Vector<ApiStage>>
110 SetApiStages(std::forward<ApiStagesT>(value));
111 return *this;
112 }
113 template <typename ApiStagesT = ApiStage>
114 UpdateUsagePlanResult& AddApiStages(ApiStagesT&& value) {
115 m_apiStagesHasBeenSet = true;
116 m_apiStages.emplace_back(std::forward<ApiStagesT>(value));
117 return *this;
118 }
120
122
126 inline const ThrottleSettings& GetThrottle() const { return m_throttle; }
127 template <typename ThrottleT = ThrottleSettings>
128 void SetThrottle(ThrottleT&& value) {
129 m_throttleHasBeenSet = true;
130 m_throttle = std::forward<ThrottleT>(value);
131 }
132 template <typename ThrottleT = ThrottleSettings>
134 SetThrottle(std::forward<ThrottleT>(value));
135 return *this;
136 }
138
140
144 inline const QuotaSettings& GetQuota() const { return m_quota; }
145 template <typename QuotaT = QuotaSettings>
146 void SetQuota(QuotaT&& value) {
147 m_quotaHasBeenSet = true;
148 m_quota = std::forward<QuotaT>(value);
149 }
150 template <typename QuotaT = QuotaSettings>
152 SetQuota(std::forward<QuotaT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::String& GetProductCode() const { return m_productCode; }
163 template <typename ProductCodeT = Aws::String>
164 void SetProductCode(ProductCodeT&& value) {
165 m_productCodeHasBeenSet = true;
166 m_productCode = std::forward<ProductCodeT>(value);
167 }
168 template <typename ProductCodeT = Aws::String>
169 UpdateUsagePlanResult& WithProductCode(ProductCodeT&& value) {
170 SetProductCode(std::forward<ProductCodeT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 void SetTags(TagsT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags = std::forward<TagsT>(value);
185 }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 SetTags(std::forward<TagsT>(value));
189 return *this;
190 }
191 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
192 UpdateUsagePlanResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
195 return *this;
196 }
198
200
201 inline const Aws::String& GetRequestId() const { return m_requestId; }
202 template <typename RequestIdT = Aws::String>
203 void SetRequestId(RequestIdT&& value) {
204 m_requestIdHasBeenSet = true;
205 m_requestId = std::forward<RequestIdT>(value);
206 }
207 template <typename RequestIdT = Aws::String>
209 SetRequestId(std::forward<RequestIdT>(value));
210 return *this;
211 }
213 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
214
215 private:
216 Aws::String m_id;
217
218 Aws::String m_name;
219
220 Aws::String m_description;
221
222 Aws::Vector<ApiStage> m_apiStages;
223
224 ThrottleSettings m_throttle;
225
226 QuotaSettings m_quota;
227
228 Aws::String m_productCode;
229
231
232 Aws::String m_requestId;
233 Aws::Http::HttpResponseCode m_HttpResponseCode;
234 bool m_idHasBeenSet = false;
235 bool m_nameHasBeenSet = false;
236 bool m_descriptionHasBeenSet = false;
237 bool m_apiStagesHasBeenSet = false;
238 bool m_throttleHasBeenSet = false;
239 bool m_quotaHasBeenSet = false;
240 bool m_productCodeHasBeenSet = false;
241 bool m_tagsHasBeenSet = false;
242 bool m_requestIdHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace APIGateway
247} // namespace Aws
UpdateUsagePlanResult & WithApiStages(ApiStagesT &&value)
UpdateUsagePlanResult & WithProductCode(ProductCodeT &&value)
AWS_APIGATEWAY_API UpdateUsagePlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateUsagePlanResult & WithId(IdT &&value)
UpdateUsagePlanResult & AddApiStages(ApiStagesT &&value)
AWS_APIGATEWAY_API UpdateUsagePlanResult()=default
UpdateUsagePlanResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
UpdateUsagePlanResult & WithThrottle(ThrottleT &&value)
UpdateUsagePlanResult & WithTags(TagsT &&value)
UpdateUsagePlanResult & WithDescription(DescriptionT &&value)
UpdateUsagePlanResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APIGATEWAY_API UpdateUsagePlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ApiStage > & GetApiStages() const
UpdateUsagePlanResult & WithQuota(QuotaT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
UpdateUsagePlanResult & WithName(NameT &&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
Aws::Utils::Json::JsonValue JsonValue