Class TestInvokeAuthorizerResult
- All Implemented Interfaces:
Serializable, Cloneable
Represents the response of the test invoke request in for a custom Authorizer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAuthorizationEntry(String key, List<String> value) Removes all the entries added into Authorization.clone()booleanThe HTTP status code that the client would have received.The execution latency of the test authorizer requestgetLog()The Amazon API Gateway execution log for the test authorizer request.The policy JSON document returned by the AuthorizerThe principal identity returned by the AuthorizerinthashCode()voidsetAuthorization(Map<String, List<String>> authorization) voidsetClientStatus(Integer clientStatus) The HTTP status code that the client would have received.voidsetLatency(Long latency) The execution latency of the test authorizer requestvoidThe Amazon API Gateway execution log for the test authorizer request.voidThe policy JSON document returned by the AuthorizervoidsetPrincipalId(String principalId) The principal identity returned by the AuthorizertoString()Returns a string representation of this object; useful for testing and debugging.withAuthorization(Map<String, List<String>> authorization) withClientStatus(Integer clientStatus) The HTTP status code that the client would have received.withLatency(Long latency) The execution latency of the test authorizer requestThe Amazon API Gateway execution log for the test authorizer request.withPolicy(String policy) The policy JSON document returned by the AuthorizerwithPrincipalId(String principalId) The principal identity returned by the Authorizer
-
Constructor Details
-
TestInvokeAuthorizerResult
public TestInvokeAuthorizerResult()
-
-
Method Details
-
setClientStatus
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
- Parameters:
clientStatus- The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
-
getClientStatus
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
- Returns:
- The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
-
withClientStatus
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
- Parameters:
clientStatus- The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLog
The Amazon API Gateway execution log for the test authorizer request.
- Parameters:
log- The Amazon API Gateway execution log for the test authorizer request.
-
getLog
The Amazon API Gateway execution log for the test authorizer request.
- Returns:
- The Amazon API Gateway execution log for the test authorizer request.
-
withLog
The Amazon API Gateway execution log for the test authorizer request.
- Parameters:
log- The Amazon API Gateway execution log for the test authorizer request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLatency
The execution latency of the test authorizer request
- Parameters:
latency- The execution latency of the test authorizer request
-
getLatency
The execution latency of the test authorizer request
- Returns:
- The execution latency of the test authorizer request
-
withLatency
The execution latency of the test authorizer request
- Parameters:
latency- The execution latency of the test authorizer request- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrincipalId
The principal identity returned by the Authorizer
- Parameters:
principalId- The principal identity returned by the Authorizer
-
getPrincipalId
The principal identity returned by the Authorizer
- Returns:
- The principal identity returned by the Authorizer
-
withPrincipalId
The principal identity returned by the Authorizer
- Parameters:
principalId- The principal identity returned by the Authorizer- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicy
The policy JSON document returned by the Authorizer
- Parameters:
policy- The policy JSON document returned by the Authorizer
-
getPolicy
The policy JSON document returned by the Authorizer
- Returns:
- The policy JSON document returned by the Authorizer
-
withPolicy
The policy JSON document returned by the Authorizer
- Parameters:
policy- The policy JSON document returned by the Authorizer- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAuthorization
-
setAuthorization
-
withAuthorization
- Parameters:
authorization-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAuthorizationEntry
-
clearAuthorizationEntries
Removes all the entries added into Authorization. <p> Returns a reference to this object so that method calls can be chained together. -
toString
-
equals
-
hashCode
-
clone
-