AWS SDK for C++  1.9.153
AWS SDK for C++
TestInvokeAuthorizerResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace APIGateway
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
47  inline int GetClientStatus() const{ return m_clientStatus; }
48 
53  inline void SetClientStatus(int value) { m_clientStatus = value; }
54 
59  inline TestInvokeAuthorizerResult& WithClientStatus(int value) { SetClientStatus(value); return *this;}
60 
61 
65  inline const Aws::String& GetLog() const{ return m_log; }
66 
70  inline void SetLog(const Aws::String& value) { m_log = value; }
71 
75  inline void SetLog(Aws::String&& value) { m_log = std::move(value); }
76 
80  inline void SetLog(const char* value) { m_log.assign(value); }
81 
85  inline TestInvokeAuthorizerResult& WithLog(const Aws::String& value) { SetLog(value); return *this;}
86 
90  inline TestInvokeAuthorizerResult& WithLog(Aws::String&& value) { SetLog(std::move(value)); return *this;}
91 
95  inline TestInvokeAuthorizerResult& WithLog(const char* value) { SetLog(value); return *this;}
96 
97 
101  inline long long GetLatency() const{ return m_latency; }
102 
106  inline void SetLatency(long long value) { m_latency = value; }
107 
111  inline TestInvokeAuthorizerResult& WithLatency(long long value) { SetLatency(value); return *this;}
112 
113 
117  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
118 
122  inline void SetPrincipalId(const Aws::String& value) { m_principalId = value; }
123 
127  inline void SetPrincipalId(Aws::String&& value) { m_principalId = std::move(value); }
128 
132  inline void SetPrincipalId(const char* value) { m_principalId.assign(value); }
133 
137  inline TestInvokeAuthorizerResult& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
138 
142  inline TestInvokeAuthorizerResult& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
143 
147  inline TestInvokeAuthorizerResult& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
148 
149 
153  inline const Aws::String& GetPolicy() const{ return m_policy; }
154 
158  inline void SetPolicy(const Aws::String& value) { m_policy = value; }
159 
163  inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
164 
168  inline void SetPolicy(const char* value) { m_policy.assign(value); }
169 
173  inline TestInvokeAuthorizerResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
174 
178  inline TestInvokeAuthorizerResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
179 
183  inline TestInvokeAuthorizerResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
184 
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 = std::move(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(std::move(value)); return *this;}
200 
201 
202  inline TestInvokeAuthorizerResult& AddAuthorization(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_authorization.emplace(key, value); return *this; }
203 
204 
205  inline TestInvokeAuthorizerResult& AddAuthorization(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_authorization.emplace(std::move(key), value); return *this; }
206 
207 
208  inline TestInvokeAuthorizerResult& AddAuthorization(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_authorization.emplace(key, std::move(value)); return *this; }
209 
210 
211  inline TestInvokeAuthorizerResult& AddAuthorization(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_authorization.emplace(std::move(key), std::move(value)); return *this; }
212 
213 
214  inline TestInvokeAuthorizerResult& AddAuthorization(const char* key, Aws::Vector<Aws::String>&& value) { m_authorization.emplace(key, std::move(value)); return *this; }
215 
216 
217  inline TestInvokeAuthorizerResult& AddAuthorization(const char* key, const Aws::Vector<Aws::String>& value) { m_authorization.emplace(key, value); return *this; }
218 
219 
226  inline const Aws::Map<Aws::String, Aws::String>& GetClaims() const{ return m_claims; }
227 
234  inline void SetClaims(const Aws::Map<Aws::String, Aws::String>& value) { m_claims = value; }
235 
242  inline void SetClaims(Aws::Map<Aws::String, Aws::String>&& value) { m_claims = std::move(value); }
243 
250  inline TestInvokeAuthorizerResult& WithClaims(const Aws::Map<Aws::String, Aws::String>& value) { SetClaims(value); return *this;}
251 
258  inline TestInvokeAuthorizerResult& WithClaims(Aws::Map<Aws::String, Aws::String>&& value) { SetClaims(std::move(value)); return *this;}
259 
266  inline TestInvokeAuthorizerResult& AddClaims(const Aws::String& key, const Aws::String& value) { m_claims.emplace(key, value); return *this; }
267 
274  inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, const Aws::String& value) { m_claims.emplace(std::move(key), value); return *this; }
275 
282  inline TestInvokeAuthorizerResult& AddClaims(const Aws::String& key, Aws::String&& value) { m_claims.emplace(key, std::move(value)); return *this; }
283 
290  inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, Aws::String&& value) { m_claims.emplace(std::move(key), std::move(value)); return *this; }
291 
298  inline TestInvokeAuthorizerResult& AddClaims(const char* key, Aws::String&& value) { m_claims.emplace(key, std::move(value)); return *this; }
299 
306  inline TestInvokeAuthorizerResult& AddClaims(Aws::String&& key, const char* value) { m_claims.emplace(std::move(key), value); return *this; }
307 
314  inline TestInvokeAuthorizerResult& AddClaims(const char* key, const char* value) { m_claims.emplace(key, value); return *this; }
315 
316  private:
317 
318  int m_clientStatus;
319 
320  Aws::String m_log;
321 
322  long long m_latency;
323 
324  Aws::String m_principalId;
325 
326  Aws::String m_policy;
327 
329 
331  };
332 
333 } // namespace Model
334 } // namespace APIGateway
335 } // namespace Aws
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:158
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddAuthorization
TestInvokeAuthorizerResult & AddAuthorization(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:208
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetAuthorization
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAuthorization() const
Definition: TestInvokeAuthorizerResult.h:187
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetLog
void SetLog(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:70
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, const char *value)
Definition: TestInvokeAuthorizerResult.h:306
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:163
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithPrincipalId
TestInvokeAuthorizerResult & WithPrincipalId(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:142
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(const char *key, Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:298
Aws::APIGateway::Model::TestInvokeAuthorizerResult::TestInvokeAuthorizerResult
TestInvokeAuthorizerResult()
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetClientStatus
int GetClientStatus() const
Definition: TestInvokeAuthorizerResult.h:47
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithLatency
TestInvokeAuthorizerResult & WithLatency(long long value)
Definition: TestInvokeAuthorizerResult.h:111
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetClaims
const Aws::Map< Aws::String, Aws::String > & GetClaims() const
Definition: TestInvokeAuthorizerResult.h:226
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithLog
TestInvokeAuthorizerResult & WithLog(const char *value)
Definition: TestInvokeAuthorizerResult.h:95
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithPolicy
TestInvokeAuthorizerResult & WithPolicy(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:178
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetLog
void SetLog(const char *value)
Definition: TestInvokeAuthorizerResult.h:80
Aws::APIGateway::Model::TestInvokeAuthorizerResult
Definition: TestInvokeAuthorizerResult.h:36
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(const Aws::String &key, const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:266
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetPolicy
void SetPolicy(const char *value)
Definition: TestInvokeAuthorizerResult.h:168
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithPrincipalId
TestInvokeAuthorizerResult & WithPrincipalId(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:137
AWSVector.h
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetLatency
long long GetLatency() const
Definition: TestInvokeAuthorizerResult.h:101
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(const char *key, const char *value)
Definition: TestInvokeAuthorizerResult.h:314
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetClaims
void SetClaims(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:242
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetClaims
void SetClaims(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:234
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithPolicy
TestInvokeAuthorizerResult & WithPolicy(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:173
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddAuthorization
TestInvokeAuthorizerResult & AddAuthorization(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:202
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:122
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithAuthorization
TestInvokeAuthorizerResult & WithAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: TestInvokeAuthorizerResult.h:199
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithClaims
TestInvokeAuthorizerResult & WithClaims(Aws::Map< Aws::String, Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:258
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(const Aws::String &key, Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:282
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:290
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetAuthorization
void SetAuthorization(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: TestInvokeAuthorizerResult.h:193
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithLog
TestInvokeAuthorizerResult & WithLog(const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:85
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithLog
TestInvokeAuthorizerResult & WithLog(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:90
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithClientStatus
TestInvokeAuthorizerResult & WithClientStatus(int value)
Definition: TestInvokeAuthorizerResult.h:59
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddAuthorization
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:205
AWSString.h
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: TestInvokeAuthorizerResult.h:132
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddClaims
TestInvokeAuthorizerResult & AddClaims(Aws::String &&key, const Aws::String &value)
Definition: TestInvokeAuthorizerResult.h:274
Aws::APIGateway::Model::TestInvokeAuthorizerResult::operator=
TestInvokeAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithPrincipalId
TestInvokeAuthorizerResult & WithPrincipalId(const char *value)
Definition: TestInvokeAuthorizerResult.h:147
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithClaims
TestInvokeAuthorizerResult & WithClaims(const Aws::Map< Aws::String, Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:250
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetAuthorization
void SetAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: TestInvokeAuthorizerResult.h:190
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: TestInvokeAuthorizerResult.h:117
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddAuthorization
TestInvokeAuthorizerResult & AddAuthorization(const char *key, Aws::Vector< Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:214
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetLog
void SetLog(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:75
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithAuthorization
TestInvokeAuthorizerResult & WithAuthorization(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: TestInvokeAuthorizerResult.h:196
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetLatency
void SetLatency(long long value)
Definition: TestInvokeAuthorizerResult.h:106
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetClientStatus
void SetClientStatus(int value)
Definition: TestInvokeAuthorizerResult.h:53
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddAuthorization
TestInvokeAuthorizerResult & AddAuthorization(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: TestInvokeAuthorizerResult.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::TestInvokeAuthorizerResult::TestInvokeAuthorizerResult
TestInvokeAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::TestInvokeAuthorizerResult::AddAuthorization
TestInvokeAuthorizerResult & AddAuthorization(const char *key, const Aws::Vector< Aws::String > &value)
Definition: TestInvokeAuthorizerResult.h:217
Aws::APIGateway::Model::TestInvokeAuthorizerResult::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: TestInvokeAuthorizerResult.h:127
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetPolicy
const Aws::String & GetPolicy() const
Definition: TestInvokeAuthorizerResult.h:153
AWSMap.h
Aws::APIGateway::Model::TestInvokeAuthorizerResult::GetLog
const Aws::String & GetLog() const
Definition: TestInvokeAuthorizerResult.h:65
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::TestInvokeAuthorizerResult::WithPolicy
TestInvokeAuthorizerResult & WithPolicy(const char *value)
Definition: TestInvokeAuthorizerResult.h:183