AWS SDK for C++  0.14.3
AWS SDK for C++
TestInvokeAuthorizerResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
42  {
43  public:
47 
52  inline int GetClientStatus() const{ return m_clientStatus; }
53 
58  inline void SetClientStatus(int value) { m_clientStatus = value; }
59 
64  inline TestInvokeAuthorizerResult& WithClientStatus(int value) { SetClientStatus(value); return *this;}
65 
69  inline const Aws::String& GetLog() const{ return m_log; }
70 
74  inline void SetLog(const Aws::String& value) { m_log = value; }
75 
79  inline void SetLog(Aws::String&& value) { m_log = value; }
80 
84  inline void SetLog(const char* value) { m_log.assign(value); }
85 
89  inline TestInvokeAuthorizerResult& WithLog(const Aws::String& value) { SetLog(value); return *this;}
90 
94  inline TestInvokeAuthorizerResult& WithLog(Aws::String&& value) { SetLog(value); return *this;}
95 
99  inline TestInvokeAuthorizerResult& WithLog(const char* value) { SetLog(value); return *this;}
100 
104  inline long long GetLatency() const{ return m_latency; }
105 
109  inline void SetLatency(long long value) { m_latency = value; }
110 
114  inline TestInvokeAuthorizerResult& WithLatency(long long value) { SetLatency(value); return *this;}
115 
119  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
120 
124  inline void SetPrincipalId(const Aws::String& value) { m_principalId = value; }
125 
129  inline void SetPrincipalId(Aws::String&& value) { m_principalId = value; }
130 
134  inline void SetPrincipalId(const char* value) { m_principalId.assign(value); }
135 
139  inline TestInvokeAuthorizerResult& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
140 
144  inline TestInvokeAuthorizerResult& WithPrincipalId(Aws::String&& value) { SetPrincipalId(value); return *this;}
145 
149  inline TestInvokeAuthorizerResult& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
150 
154  inline const Aws::String& GetPolicy() const{ return m_policy; }
155 
159  inline void SetPolicy(const Aws::String& value) { m_policy = value; }
160 
164  inline void SetPolicy(Aws::String&& value) { m_policy = value; }
165 
169  inline void SetPolicy(const char* value) { m_policy.assign(value); }
170 
174  inline TestInvokeAuthorizerResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
175 
179  inline TestInvokeAuthorizerResult& WithPolicy(Aws::String&& value) { SetPolicy(value); return *this;}
180 
184  inline TestInvokeAuthorizerResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
185 
186 
187  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAuthorization() const{ return m_authorization; }
188 
189 
190  inline void SetAuthorization(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_authorization = value; }
191 
192 
193  inline void SetAuthorization(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_authorization = value; }
194 
195 
196  inline TestInvokeAuthorizerResult& WithAuthorization(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetAuthorization(value); return *this;}
197 
198 
199  inline TestInvokeAuthorizerResult& WithAuthorization(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetAuthorization(value); return *this;}
200 
201 
202  inline TestInvokeAuthorizerResult& AddAuthorization(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_authorization[key] = value; return *this; }
203 
204 
205  inline TestInvokeAuthorizerResult& AddAuthorization(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_authorization[key] = value; return *this; }
206 
207 
208  inline TestInvokeAuthorizerResult& AddAuthorization(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_authorization[key] = value; return *this; }
209 
210 
211  inline TestInvokeAuthorizerResult& AddAuthorization(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_authorization[key] = value; return *this; }
212 
213 
214  inline TestInvokeAuthorizerResult& AddAuthorization(const char* key, Aws::Vector<Aws::String>&& value) { m_authorization[key] = value; return *this; }
215 
216 
217  inline TestInvokeAuthorizerResult& AddAuthorization(const char* key, const Aws::Vector<Aws::String>& value) { m_authorization[key] = value; return *this; }
218 
219 
220  inline const Aws::Map<Aws::String, Aws::String>& GetClaims() const{ return m_claims; }
221 
222 
223  inline void SetClaims(const Aws::Map<Aws::String, Aws::String>& value) { m_claims = value; }
224 
225 
226  inline void SetClaims(Aws::Map<Aws::String, Aws::String>&& value) { m_claims = value; }
227 
228 
229  inline TestInvokeAuthorizerResult& WithClaims(const Aws::Map<Aws::String, Aws::String>& value) { SetClaims(value); return *this;}
230 
231 
232  inline TestInvokeAuthorizerResult& WithClaims(Aws::Map<Aws::String, Aws::String>&& value) { SetClaims(value); return *this;}
233 
234 
235  inline TestInvokeAuthorizerResult& AddClaims(const Aws::String& key, const Aws::String& value) { m_claims[key] = value; return *this; }
236 
237 
238  inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, const Aws::String& value) { m_claims[key] = value; return *this; }
239 
240 
241  inline TestInvokeAuthorizerResult& AddClaims(const Aws::String& key, Aws::String&& value) { m_claims[key] = value; return *this; }
242 
243 
244  inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, Aws::String&& value) { m_claims[key] = value; return *this; }
245 
246 
247  inline TestInvokeAuthorizerResult& AddClaims(const char* key, Aws::String&& value) { m_claims[key] = value; return *this; }
248 
249 
250  inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, const char* value) { m_claims[key] = value; return *this; }
251 
252 
253  inline TestInvokeAuthorizerResult& AddClaims(const char* key, const char* value) { m_claims[key] = value; return *this; }
254 
255  private:
256  int m_clientStatus;
257  Aws::String m_log;
258  long long m_latency;
259  Aws::String m_principalId;
260  Aws::String m_policy;
263  };
264 
265 } // namespace Model
266 } // namespace APIGateway
267 } // namespace Aws
void SetAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
TestInvokeAuthorizerResult & AddClaims(const Aws::String &key, Aws::String &&value)
void SetClaims(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerResult & AddAuthorization(const char *key, Aws::Vector< Aws::String > &&value)
void SetClaims(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerResult & AddAuthorization(const Aws::String &key, const Aws::Vector< Aws::String > &value)
TestInvokeAuthorizerResult & WithLog(const Aws::String &value)
TestInvokeAuthorizerResult & WithLog(const char *value)
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, Aws::String &&value)
TestInvokeAuthorizerResult & WithPrincipalId(const char *value)
TestInvokeAuthorizerResult & WithClientStatus(int value)
TestInvokeAuthorizerResult & WithClaims(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerResult & WithPolicy(Aws::String &&value)
TestInvokeAuthorizerResult & AddClaims(const char *key, Aws::String &&value)
TestInvokeAuthorizerResult & WithAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
TestInvokeAuthorizerResult & WithLog(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetClaims() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
TestInvokeAuthorizerResult & WithPolicy(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
TestInvokeAuthorizerResult & WithPrincipalId(Aws::String &&value)
TestInvokeAuthorizerResult & AddAuthorization(const Aws::String &key, Aws::Vector< Aws::String > &&value)
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAuthorization() const
TestInvokeAuthorizerResult & AddAuthorization(const char *key, const Aws::Vector< Aws::String > &value)
TestInvokeAuthorizerResult & AddClaims(const Aws::String &key, const Aws::String &value)
TestInvokeAuthorizerResult & WithLatency(long long value)
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, const Aws::String &value)
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, Aws::Vector< Aws::String > &&value)
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TestInvokeAuthorizerResult & WithPrincipalId(const Aws::String &value)
TestInvokeAuthorizerResult & WithPolicy(const char *value)
#define AWS_APIGATEWAY_API
TestInvokeAuthorizerResult & WithAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
TestInvokeAuthorizerResult & AddClaims(const char *key, const char *value)
TestInvokeAuthorizerResult & WithClaims(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).