AWS SDK for C++  0.12.9
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 long GetClientStatus() const{ return m_clientStatus; }
53 
58  inline void SetClientStatus(long value) { m_clientStatus = value; }
59 
64  inline TestInvokeAuthorizerResult& WithClientStatus(long 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  private:
220  long m_clientStatus;
221  Aws::String m_log;
222  long long m_latency;
223  Aws::String m_principalId;
224  Aws::String m_policy;
226  };
227 
228 } // namespace Model
229 } // namespace APIGateway
230 } // namespace Aws
void SetAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
TestInvokeAuthorizerResult & AddAuthorization(const char *key, Aws::Vector< 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 & WithPrincipalId(const char *value)
TestInvokeAuthorizerResult & WithPolicy(Aws::String &&value)
TestInvokeAuthorizerResult & WithClientStatus(long value)
TestInvokeAuthorizerResult & WithAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
TestInvokeAuthorizerResult & WithLog(Aws::String &&value)
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 & WithLatency(long long value)
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, Aws::Vector< Aws::String > &&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)
JSON (JavaScript Object Notation).