7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
16template <
typename RESULT_TYPE>
17class AmazonWebServiceResult;
45 m_clientStatusHasBeenSet =
true;
46 m_clientStatus = value;
59 template <
typename LogT = Aws::String>
61 m_logHasBeenSet =
true;
62 m_log = std::forward<LogT>(value);
64 template <
typename LogT = Aws::String>
66 SetLog(std::forward<LogT>(value));
75 inline long long GetLatency()
const {
return m_latency; }
77 m_latencyHasBeenSet =
true;
91 template <
typename PrincipalIdT = Aws::String>
93 m_principalIdHasBeenSet =
true;
94 m_principalId = std::forward<PrincipalIdT>(value);
96 template <
typename PrincipalIdT = Aws::String>
108 template <
typename PolicyT = Aws::String>
110 m_policyHasBeenSet =
true;
111 m_policy = std::forward<PolicyT>(value);
113 template <
typename PolicyT = Aws::String>
125 template <
typename AuthorizationT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
127 m_authorizationHasBeenSet =
true;
128 m_authorization = std::forward<AuthorizationT>(value);
130 template <
typename AuthorizationT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
135 template <
typename AuthorizationKeyT = Aws::String,
typename AuthorizationValueT = Aws::Vector<Aws::String>>
137 m_authorizationHasBeenSet =
true;
138 m_authorization.emplace(std::forward<AuthorizationKeyT>(key), std::forward<AuthorizationValueT>(value));
149 template <
typename ClaimsT = Aws::Map<Aws::String, Aws::String>>
151 m_claimsHasBeenSet =
true;
152 m_claims = std::forward<ClaimsT>(value);
154 template <
typename ClaimsT = Aws::Map<Aws::String, Aws::String>>
159 template <
typename ClaimsKeyT = Aws::String,
typename ClaimsValueT = Aws::String>
161 m_claimsHasBeenSet =
true;
162 m_claims.emplace(std::forward<ClaimsKeyT>(key), std::forward<ClaimsValueT>(value));
170 template <
typename RequestIdT = Aws::String>
172 m_requestIdHasBeenSet =
true;
173 m_requestId = std::forward<RequestIdT>(value);
175 template <
typename RequestIdT = Aws::String>
184 int m_clientStatus{0};
188 long long m_latency{0};
200 bool m_clientStatusHasBeenSet =
false;
201 bool m_logHasBeenSet =
false;
202 bool m_latencyHasBeenSet =
false;
203 bool m_principalIdHasBeenSet =
false;
204 bool m_policyHasBeenSet =
false;
205 bool m_authorizationHasBeenSet =
false;
206 bool m_claimsHasBeenSet =
false;
207 bool m_requestIdHasBeenSet =
false;
AWS_APIGATEWAY_API TestInvokeAuthorizerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
int GetClientStatus() const
TestInvokeAuthorizerResult & AddClaims(ClaimsKeyT &&key, ClaimsValueT &&value)
TestInvokeAuthorizerResult & WithAuthorization(AuthorizationT &&value)
void SetClaims(ClaimsT &&value)
const Aws::String & GetLog() const
TestInvokeAuthorizerResult & AddAuthorization(AuthorizationKeyT &&key, AuthorizationValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAuthorization() const
TestInvokeAuthorizerResult & WithPrincipalId(PrincipalIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
TestInvokeAuthorizerResult & WithRequestId(RequestIdT &&value)
void SetAuthorization(AuthorizationT &&value)
void SetPolicy(PolicyT &&value)
TestInvokeAuthorizerResult & WithLatency(long long value)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetPrincipalId() const
TestInvokeAuthorizerResult & WithClientStatus(int value)
void SetClientStatus(int value)
TestInvokeAuthorizerResult & WithLog(LogT &&value)
AWS_APIGATEWAY_API TestInvokeAuthorizerResult()=default
const Aws::Map< Aws::String, Aws::String > & GetClaims() const
void SetLog(LogT &&value)
void SetLatency(long long value)
void SetPrincipalId(PrincipalIdT &&value)
TestInvokeAuthorizerResult & WithPolicy(PolicyT &&value)
AWS_APIGATEWAY_API TestInvokeAuthorizerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
long long GetLatency() const
TestInvokeAuthorizerResult & WithClaims(ClaimsT &&value)
const Aws::String & GetPolicy() 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
Aws::Utils::Json::JsonValue JsonValue