public class TestInvokeAuthorizerResult extends Object implements Serializable, Cloneable
Represents the response of the test invoke request in for a custom Authorizer
Constructor and Description |
---|
TestInvokeAuthorizerResult() |
Modifier and Type | Method and Description |
---|---|
TestInvokeAuthorizerResult |
addAuthorizationEntry(String key,
List<String> value) |
TestInvokeAuthorizerResult |
clearAuthorizationEntries()
Removes all the entries added into Authorization.
|
TestInvokeAuthorizerResult |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getAuthorization() |
Integer |
getClientStatus()
The HTTP status code that the client would have received.
|
Long |
getLatency()
The execution latency of the test authorizer request
|
String |
getLog()
The Amazon API Gateway execution log for the test authorizer request.
|
String |
getPolicy()
The policy JSON document returned by the Authorizer
|
String |
getPrincipalId()
The principal identity returned by the Authorizer
|
int |
hashCode() |
void |
setAuthorization(Map<String,List<String>> authorization) |
void |
setClientStatus(Integer clientStatus)
The HTTP status code that the client would have received.
|
void |
setLatency(Long latency)
The execution latency of the test authorizer request
|
void |
setLog(String log)
The Amazon API Gateway execution log for the test authorizer request.
|
void |
setPolicy(String policy)
The policy JSON document returned by the Authorizer
|
void |
setPrincipalId(String principalId)
The principal identity returned by the Authorizer
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestInvokeAuthorizerResult |
withAuthorization(Map<String,List<String>> authorization) |
TestInvokeAuthorizerResult |
withClientStatus(Integer clientStatus)
The HTTP status code that the client would have received.
|
TestInvokeAuthorizerResult |
withLatency(Long latency)
The execution latency of the test authorizer request
|
TestInvokeAuthorizerResult |
withLog(String log)
The Amazon API Gateway execution log for the test authorizer request.
|
TestInvokeAuthorizerResult |
withPolicy(String policy)
The policy JSON document returned by the Authorizer
|
TestInvokeAuthorizerResult |
withPrincipalId(String principalId)
The principal identity returned by the Authorizer
|
public void setClientStatus(Integer clientStatus)
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
clientStatus
- The HTTP status code that the client would have received. Value is
0 if the authorizer succeeded.public Integer getClientStatus()
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
public TestInvokeAuthorizerResult withClientStatus(Integer clientStatus)
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
clientStatus
- The HTTP status code that the client would have received. Value is
0 if the authorizer succeeded.public void setLog(String log)
The Amazon API Gateway execution log for the test authorizer request.
log
- The Amazon API Gateway execution log for the test authorizer
request.public String getLog()
The Amazon API Gateway execution log for the test authorizer request.
public TestInvokeAuthorizerResult withLog(String log)
The Amazon API Gateway execution log for the test authorizer request.
log
- The Amazon API Gateway execution log for the test authorizer
request.public void setLatency(Long latency)
The execution latency of the test authorizer request
latency
- The execution latency of the test authorizer requestpublic Long getLatency()
The execution latency of the test authorizer request
public TestInvokeAuthorizerResult withLatency(Long latency)
The execution latency of the test authorizer request
latency
- The execution latency of the test authorizer requestpublic void setPrincipalId(String principalId)
The principal identity returned by the Authorizer
principalId
- The principal identity returned by the Authorizerpublic String getPrincipalId()
The principal identity returned by the Authorizer
public TestInvokeAuthorizerResult withPrincipalId(String principalId)
The principal identity returned by the Authorizer
principalId
- The principal identity returned by the Authorizerpublic void setPolicy(String policy)
The policy JSON document returned by the Authorizer
policy
- The policy JSON document returned by the Authorizerpublic String getPolicy()
The policy JSON document returned by the Authorizer
public TestInvokeAuthorizerResult withPolicy(String policy)
The policy JSON document returned by the Authorizer
policy
- The policy JSON document returned by the Authorizerpublic void setAuthorization(Map<String,List<String>> authorization)
authorization
- public TestInvokeAuthorizerResult withAuthorization(Map<String,List<String>> authorization)
authorization
- public TestInvokeAuthorizerResult addAuthorizationEntry(String key, List<String> value)
public TestInvokeAuthorizerResult clearAuthorizationEntries()
public String toString()
toString
in class Object
Object.toString()
public TestInvokeAuthorizerResult clone()
Copyright © 2016. All rights reserved.