AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateUsagePlanResult.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 UpdateUsagePlanResult();
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 UpdateUsagePlanResult& WithId(const Aws::String& value) { SetId(value); return *this;}
61 inline UpdateUsagePlanResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
62 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithName(const Aws::String& value) { SetName(value); return *this;}
74 inline UpdateUsagePlanResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline UpdateUsagePlanResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithApiStages(const Aws::Vector<ApiStage>& value) { SetApiStages(value); return *this;}
99 inline UpdateUsagePlanResult& WithApiStages(Aws::Vector<ApiStage>&& value) { SetApiStages(std::move(value)); return *this;}
100 inline UpdateUsagePlanResult& AddApiStages(const ApiStage& value) { m_apiStages.push_back(value); return *this; }
101 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithThrottle(const ThrottleSettings& value) { SetThrottle(value); return *this;}
113 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithQuota(const QuotaSettings& value) { SetQuota(value); return *this;}
125 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
138 inline UpdateUsagePlanResult& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
139 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
151 inline UpdateUsagePlanResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
152 inline UpdateUsagePlanResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
153 inline UpdateUsagePlanResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
154 inline UpdateUsagePlanResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
155 inline UpdateUsagePlanResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
156 inline UpdateUsagePlanResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
157 inline UpdateUsagePlanResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
158 inline UpdateUsagePlanResult& 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 UpdateUsagePlanResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
168 inline UpdateUsagePlanResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
169 inline UpdateUsagePlanResult& 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
UpdateUsagePlanResult & WithDescription(const char *value)
UpdateUsagePlanResult & WithRequestId(const char *value)
UpdateUsagePlanResult & AddTags(const char *key, const char *value)
UpdateUsagePlanResult & WithThrottle(const ThrottleSettings &value)
void SetThrottle(const ThrottleSettings &value)
UpdateUsagePlanResult & AddApiStages(const ApiStage &value)
UpdateUsagePlanResult & WithId(const char *value)
void SetApiStages(const Aws::Vector< ApiStage > &value)
UpdateUsagePlanResult & WithDescription(const Aws::String &value)
AWS_APIGATEWAY_API UpdateUsagePlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateUsagePlanResult & WithId(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
UpdateUsagePlanResult & AddTags(Aws::String &&key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
UpdateUsagePlanResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
UpdateUsagePlanResult & WithProductCode(Aws::String &&value)
UpdateUsagePlanResult & AddTags(Aws::String &&key, const Aws::String &value)
UpdateUsagePlanResult & WithDescription(Aws::String &&value)
UpdateUsagePlanResult & AddTags(const Aws::String &key, const Aws::String &value)
UpdateUsagePlanResult & AddTags(Aws::String &&key, Aws::String &&value)
UpdateUsagePlanResult & WithId(Aws::String &&value)
UpdateUsagePlanResult & WithRequestId(Aws::String &&value)
UpdateUsagePlanResult & WithName(const Aws::String &value)
UpdateUsagePlanResult & WithQuota(QuotaSettings &&value)
UpdateUsagePlanResult & WithProductCode(const char *value)
UpdateUsagePlanResult & WithName(Aws::String &&value)
AWS_APIGATEWAY_API UpdateUsagePlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateUsagePlanResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< ApiStage > & GetApiStages() const
UpdateUsagePlanResult & WithQuota(const QuotaSettings &value)
UpdateUsagePlanResult & WithApiStages(const Aws::Vector< ApiStage > &value)
UpdateUsagePlanResult & WithRequestId(const Aws::String &value)
UpdateUsagePlanResult & WithProductCode(const Aws::String &value)
void SetApiStages(Aws::Vector< ApiStage > &&value)
UpdateUsagePlanResult & WithName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
UpdateUsagePlanResult & AddTags(const char *key, Aws::String &&value)
UpdateUsagePlanResult & WithThrottle(ThrottleSettings &&value)
UpdateUsagePlanResult & AddApiStages(ApiStage &&value)
UpdateUsagePlanResult & WithApiStages(Aws::Vector< ApiStage > &&value)
UpdateUsagePlanResult & AddTags(const Aws::String &key, Aws::String &&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