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 TestInvokeAuthorizerResultaddAuthorizationEntry(String key, List<String> value)TestInvokeAuthorizerResultclearAuthorizationEntries()Removes all the entries added into Authorization.TestInvokeAuthorizerResultclone()booleanequals(Object obj)Map<String,List<String>>getAuthorization()IntegergetClientStatus()The HTTP status code that the client would have received.LonggetLatency()The execution latency of the test authorizer requestStringgetLog()The Amazon API Gateway execution log for the test authorizer request.StringgetPolicy()The policy JSON document returned by the AuthorizerStringgetPrincipalId()The 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 requestvoidsetLog(String log)The Amazon API Gateway execution log for the test authorizer request.voidsetPolicy(String policy)The policy JSON document returned by the AuthorizervoidsetPrincipalId(String principalId)The principal identity returned by the AuthorizerStringtoString()Returns a string representation of this object; useful for testing and debugging.TestInvokeAuthorizerResultwithAuthorization(Map<String,List<String>> authorization)TestInvokeAuthorizerResultwithClientStatus(Integer clientStatus)The HTTP status code that the client would have received.TestInvokeAuthorizerResultwithLatency(Long latency)The execution latency of the test authorizer requestTestInvokeAuthorizerResultwithLog(String log)The Amazon API Gateway execution log for the test authorizer request.TestInvokeAuthorizerResultwithPolicy(String policy)The policy JSON document returned by the AuthorizerTestInvokeAuthorizerResultwithPrincipalId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TestInvokeAuthorizerResult clone()
-
-