AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetUsagePlanResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/apigateway/model/ThrottleSettings.h>
11#include <aws/apigateway/model/QuotaSettings.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/apigateway/model/ApiStage.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace APIGateway
29{
30namespace Model
31{
45 {
46 public:
47 AWS_APIGATEWAY_API GetUsagePlanResult() = default;
50
51
53
56 inline const Aws::String& GetId() const { return m_id; }
57 template<typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
59 template<typename IdT = Aws::String>
60 GetUsagePlanResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 template<typename NameT = Aws::String>
69 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 GetUsagePlanResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 GetUsagePlanResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::Vector<ApiStage>& GetApiStages() const { return m_apiStages; }
90 template<typename ApiStagesT = Aws::Vector<ApiStage>>
91 void SetApiStages(ApiStagesT&& value) { m_apiStagesHasBeenSet = true; m_apiStages = std::forward<ApiStagesT>(value); }
92 template<typename ApiStagesT = Aws::Vector<ApiStage>>
93 GetUsagePlanResult& WithApiStages(ApiStagesT&& value) { SetApiStages(std::forward<ApiStagesT>(value)); return *this;}
94 template<typename ApiStagesT = ApiStage>
95 GetUsagePlanResult& AddApiStages(ApiStagesT&& value) { m_apiStagesHasBeenSet = true; m_apiStages.emplace_back(std::forward<ApiStagesT>(value)); return *this; }
97
99
103 inline const ThrottleSettings& GetThrottle() const { return m_throttle; }
104 template<typename ThrottleT = ThrottleSettings>
105 void SetThrottle(ThrottleT&& value) { m_throttleHasBeenSet = true; m_throttle = std::forward<ThrottleT>(value); }
106 template<typename ThrottleT = ThrottleSettings>
107 GetUsagePlanResult& WithThrottle(ThrottleT&& value) { SetThrottle(std::forward<ThrottleT>(value)); return *this;}
109
111
115 inline const QuotaSettings& GetQuota() const { return m_quota; }
116 template<typename QuotaT = QuotaSettings>
117 void SetQuota(QuotaT&& value) { m_quotaHasBeenSet = true; m_quota = std::forward<QuotaT>(value); }
118 template<typename QuotaT = QuotaSettings>
119 GetUsagePlanResult& WithQuota(QuotaT&& value) { SetQuota(std::forward<QuotaT>(value)); return *this;}
121
123
127 inline const Aws::String& GetProductCode() const { return m_productCode; }
128 template<typename ProductCodeT = Aws::String>
129 void SetProductCode(ProductCodeT&& value) { m_productCodeHasBeenSet = true; m_productCode = std::forward<ProductCodeT>(value); }
130 template<typename ProductCodeT = Aws::String>
131 GetUsagePlanResult& WithProductCode(ProductCodeT&& value) { SetProductCode(std::forward<ProductCodeT>(value)); return *this;}
133
135
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 GetUsagePlanResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
144 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 GetUsagePlanResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
147 }
149
151
152 inline const Aws::String& GetRequestId() const { return m_requestId; }
153 template<typename RequestIdT = Aws::String>
154 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
155 template<typename RequestIdT = Aws::String>
156 GetUsagePlanResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
158 private:
159
160 Aws::String m_id;
161 bool m_idHasBeenSet = false;
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 Aws::Vector<ApiStage> m_apiStages;
170 bool m_apiStagesHasBeenSet = false;
171
172 ThrottleSettings m_throttle;
173 bool m_throttleHasBeenSet = false;
174
175 QuotaSettings m_quota;
176 bool m_quotaHasBeenSet = false;
177
178 Aws::String m_productCode;
179 bool m_productCodeHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183
184 Aws::String m_requestId;
185 bool m_requestIdHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace APIGateway
190} // namespace Aws
GetUsagePlanResult & WithApiStages(ApiStagesT &&value)
AWS_APIGATEWAY_API GetUsagePlanResult()=default
GetUsagePlanResult & WithId(IdT &&value)
GetUsagePlanResult & WithQuota(QuotaT &&value)
const ThrottleSettings & GetThrottle() const
AWS_APIGATEWAY_API GetUsagePlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API GetUsagePlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetUsagePlanResult & WithDescription(DescriptionT &&value)
GetUsagePlanResult & WithTags(TagsT &&value)
GetUsagePlanResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetUsagePlanResult & WithRequestId(RequestIdT &&value)
GetUsagePlanResult & WithProductCode(ProductCodeT &&value)
GetUsagePlanResult & WithName(NameT &&value)
GetUsagePlanResult & AddApiStages(ApiStagesT &&value)
GetUsagePlanResult & WithThrottle(ThrottleT &&value)
const Aws::Vector< ApiStage > & GetApiStages() const
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