AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
50
51
53
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline void SetId(const Aws::String& value) { m_id = value; }
58 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
59 inline void SetId(const char* value) { m_id.assign(value); }
60 inline GetUsagePlanResult& WithId(const Aws::String& value) { SetId(value); return *this;}
61 inline GetUsagePlanResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
62 inline GetUsagePlanResult& WithId(const char* value) { SetId(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline void SetName(const Aws::String& value) { m_name = value; }
71 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
72 inline void SetName(const char* value) { m_name.assign(value); }
73 inline GetUsagePlanResult& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline GetUsagePlanResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline GetUsagePlanResult& WithName(const char* value) { SetName(value); return *this;}
77
79
82 inline const Aws::String& GetDescription() const{ return m_description; }
83 inline void SetDescription(const Aws::String& value) { m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_description.assign(value); }
86 inline GetUsagePlanResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline GetUsagePlanResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline GetUsagePlanResult& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
95 inline const Aws::Vector<ApiStage>& GetApiStages() const{ return m_apiStages; }
96 inline void SetApiStages(const Aws::Vector<ApiStage>& value) { m_apiStages = value; }
97 inline void SetApiStages(Aws::Vector<ApiStage>&& value) { m_apiStages = std::move(value); }
98 inline GetUsagePlanResult& WithApiStages(const Aws::Vector<ApiStage>& value) { SetApiStages(value); return *this;}
99 inline GetUsagePlanResult& WithApiStages(Aws::Vector<ApiStage>&& value) { SetApiStages(std::move(value)); return *this;}
100 inline GetUsagePlanResult& AddApiStages(const ApiStage& value) { m_apiStages.push_back(value); return *this; }
101 inline GetUsagePlanResult& AddApiStages(ApiStage&& value) { m_apiStages.push_back(std::move(value)); return *this; }
103
105
109 inline const ThrottleSettings& GetThrottle() const{ return m_throttle; }
110 inline void SetThrottle(const ThrottleSettings& value) { m_throttle = value; }
111 inline void SetThrottle(ThrottleSettings&& value) { m_throttle = std::move(value); }
112 inline GetUsagePlanResult& WithThrottle(const ThrottleSettings& value) { SetThrottle(value); return *this;}
113 inline GetUsagePlanResult& WithThrottle(ThrottleSettings&& value) { SetThrottle(std::move(value)); return *this;}
115
117
121 inline const QuotaSettings& GetQuota() const{ return m_quota; }
122 inline void SetQuota(const QuotaSettings& value) { m_quota = value; }
123 inline void SetQuota(QuotaSettings&& value) { m_quota = std::move(value); }
124 inline GetUsagePlanResult& WithQuota(const QuotaSettings& value) { SetQuota(value); return *this;}
125 inline GetUsagePlanResult& WithQuota(QuotaSettings&& value) { SetQuota(std::move(value)); return *this;}
127
129
133 inline const Aws::String& GetProductCode() const{ return m_productCode; }
134 inline void SetProductCode(const Aws::String& value) { m_productCode = value; }
135 inline void SetProductCode(Aws::String&& value) { m_productCode = std::move(value); }
136 inline void SetProductCode(const char* value) { m_productCode.assign(value); }
137 inline GetUsagePlanResult& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
138 inline GetUsagePlanResult& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
139 inline GetUsagePlanResult& WithProductCode(const char* value) { SetProductCode(value); return *this;}
141
143
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
148 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
149 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
150 inline GetUsagePlanResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
151 inline GetUsagePlanResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
152 inline GetUsagePlanResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
153 inline GetUsagePlanResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
154 inline GetUsagePlanResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
155 inline GetUsagePlanResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
156 inline GetUsagePlanResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
157 inline GetUsagePlanResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
158 inline GetUsagePlanResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
160
162
163 inline const Aws::String& GetRequestId() const{ return m_requestId; }
164 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
165 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
166 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
167 inline GetUsagePlanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
168 inline GetUsagePlanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
169 inline GetUsagePlanResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
171 private:
172
173 Aws::String m_id;
174
175 Aws::String m_name;
176
177 Aws::String m_description;
178
179 Aws::Vector<ApiStage> m_apiStages;
180
181 ThrottleSettings m_throttle;
182
183 QuotaSettings m_quota;
184
185 Aws::String m_productCode;
186
188
189 Aws::String m_requestId;
190 };
191
192} // namespace Model
193} // namespace APIGateway
194} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
GetUsagePlanResult & AddTags(Aws::String &&key, Aws::String &&value)
GetUsagePlanResult & AddTags(Aws::String &&key, const char *value)
void SetDescription(const Aws::String &value)
GetUsagePlanResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
GetUsagePlanResult & WithQuota(const QuotaSettings &value)
GetUsagePlanResult & WithApiStages(const Aws::Vector< ApiStage > &value)
GetUsagePlanResult & WithId(Aws::String &&value)
GetUsagePlanResult & WithName(const char *value)
GetUsagePlanResult & AddTags(const char *key, const char *value)
GetUsagePlanResult & WithProductCode(Aws::String &&value)
GetUsagePlanResult & AddApiStages(ApiStage &&value)
GetUsagePlanResult & WithProductCode(const char *value)
void SetApiStages(Aws::Vector< ApiStage > &&value)
GetUsagePlanResult & WithName(const Aws::String &value)
GetUsagePlanResult & AddTags(const char *key, Aws::String &&value)
GetUsagePlanResult & WithProductCode(const Aws::String &value)
const ThrottleSettings & GetThrottle() const
GetUsagePlanResult & AddTags(Aws::String &&key, const Aws::String &value)
GetUsagePlanResult & WithRequestId(const Aws::String &value)
AWS_APIGATEWAY_API GetUsagePlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUsagePlanResult & WithId(const Aws::String &value)
void SetThrottle(ThrottleSettings &&value)
GetUsagePlanResult & AddApiStages(const ApiStage &value)
GetUsagePlanResult & AddTags(const Aws::String &key, Aws::String &&value)
void SetProductCode(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
GetUsagePlanResult & WithThrottle(const ThrottleSettings &value)
void SetApiStages(const Aws::Vector< ApiStage > &value)
GetUsagePlanResult & WithDescription(const char *value)
GetUsagePlanResult & AddTags(const Aws::String &key, const Aws::String &value)
AWS_APIGATEWAY_API GetUsagePlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetUsagePlanResult & WithRequestId(Aws::String &&value)
GetUsagePlanResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
GetUsagePlanResult & WithQuota(QuotaSettings &&value)
GetUsagePlanResult & WithName(Aws::String &&value)
GetUsagePlanResult & WithDescription(Aws::String &&value)
void SetThrottle(const ThrottleSettings &value)
GetUsagePlanResult & WithApiStages(Aws::Vector< ApiStage > &&value)
void SetRequestId(const Aws::String &value)
GetUsagePlanResult & WithRequestId(const char *value)
void SetQuota(const QuotaSettings &value)
GetUsagePlanResult & WithDescription(const Aws::String &value)
GetUsagePlanResult & WithId(const char *value)
GetUsagePlanResult & WithThrottle(ThrottleSettings &&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