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