@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TestInvokeAuthorizerResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the response of the test invoke request for a custom Authorizer
Constructor and Description |
---|
TestInvokeAuthorizerResult() |
Modifier and Type | Method and Description |
---|---|
TestInvokeAuthorizerResult |
addAuthorizationEntry(String key,
List<String> value) |
TestInvokeAuthorizerResult |
addClaimsEntry(String key,
String value) |
TestInvokeAuthorizerResult |
clearAuthorizationEntries()
Removes all the entries added into Authorization.
|
TestInvokeAuthorizerResult |
clearClaimsEntries()
Removes all the entries added into Claims.
|
TestInvokeAuthorizerResult |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getAuthorization() |
Map<String,String> |
getClaims()
The open identity claims, with
any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
|
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 JSON policy document returned by the Authorizer
|
String |
getPrincipalId()
The principal identity returned by the Authorizer
|
int |
hashCode() |
void |
setAuthorization(Map<String,List<String>> authorization) |
void |
setClaims(Map<String,String> claims)
The open identity claims, with
any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
|
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 JSON policy 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 |
withClaims(Map<String,String> claims)
The open identity claims, with
any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
|
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 JSON policy document returned by the Authorizer
|
TestInvokeAuthorizerResult |
withPrincipalId(String principalId)
The principal identity returned by the Authorizer
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 request.public 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 request.public 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 JSON policy document returned by the Authorizer
policy
- The JSON policy document returned by the Authorizerpublic String getPolicy()
The JSON policy document returned by the Authorizer
public TestInvokeAuthorizerResult withPolicy(String policy)
The JSON policy document returned by the Authorizer
policy
- The JSON policy 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 Map<String,String> getClaims()
The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
public void setClaims(Map<String,String> claims)
The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
claims
- The open identity
claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for
the API.public TestInvokeAuthorizerResult withClaims(Map<String,String> claims)
The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
claims
- The open identity
claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for
the API.public TestInvokeAuthorizerResult addClaimsEntry(String key, String value)
public TestInvokeAuthorizerResult clearClaimsEntries()
public String toString()
toString
in class Object
Object.toString()
public TestInvokeAuthorizerResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.