Class TestInvokeAuthorizerResult
- java.lang.Object
-
- com.amazonaws.services.apigateway.model.TestInvokeAuthorizerResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class TestInvokeAuthorizerResult extends Object implements Serializable, Cloneable
Represents the response of the test invoke request in for a custom Authorizer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestInvokeAuthorizerResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 requestString
getLog()
The Amazon API Gateway execution log for the test authorizer request.String
getPolicy()
The policy JSON document returned by the AuthorizerString
getPrincipalId()
The principal identity returned by the Authorizerint
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 requestvoid
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 Authorizervoid
setPrincipalId(String principalId)
The principal identity returned by the AuthorizerString
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 requestTestInvokeAuthorizerResult
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 AuthorizerTestInvokeAuthorizerResult
withPrincipalId(String principalId)
The principal identity returned by the Authorizer
-
-
-
Method Detail
-
setClientStatus
public void setClientStatus(Integer clientStatus)
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
public Integer 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
public TestInvokeAuthorizerResult withClientStatus(Integer clientStatus)
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
public void setLog(String log)
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
public String 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
public TestInvokeAuthorizerResult withLog(String log)
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
public void setLatency(Long latency)
The execution latency of the test authorizer request
- Parameters:
latency
- The execution latency of the test authorizer request
-
getLatency
public Long getLatency()
The execution latency of the test authorizer request
- Returns:
- The execution latency of the test authorizer request
-
withLatency
public TestInvokeAuthorizerResult withLatency(Long latency)
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
public void setPrincipalId(String principalId)
The principal identity returned by the Authorizer
- Parameters:
principalId
- The principal identity returned by the Authorizer
-
getPrincipalId
public String getPrincipalId()
The principal identity returned by the Authorizer
- Returns:
- The principal identity returned by the Authorizer
-
withPrincipalId
public TestInvokeAuthorizerResult withPrincipalId(String principalId)
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
public void setPolicy(String policy)
The policy JSON document returned by the Authorizer
- Parameters:
policy
- The policy JSON document returned by the Authorizer
-
getPolicy
public String getPolicy()
The policy JSON document returned by the Authorizer
- Returns:
- The policy JSON document returned by the Authorizer
-
withPolicy
public TestInvokeAuthorizerResult withPolicy(String policy)
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.
-
setAuthorization
public void setAuthorization(Map<String,List<String>> authorization)
- Parameters:
authorization
-
-
withAuthorization
public TestInvokeAuthorizerResult withAuthorization(Map<String,List<String>> authorization)
- Parameters:
authorization
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAuthorizationEntry
public TestInvokeAuthorizerResult addAuthorizationEntry(String key, List<String> value)
-
clearAuthorizationEntries
public TestInvokeAuthorizerResult clearAuthorizationEntries()
Removes all the entries added into Authorization. <p> Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TestInvokeAuthorizerResult clone()
-
-