Class TestInvokeAuthorizerRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Make a request to simulate the execution of an Authorizer.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalContextEntry
(String key, String value) addHeadersEntry
(String key, String value) addStageVariablesEntry
(String key, String value) Removes all the entries added into AdditionalContext.Removes all the entries added into Headers.Removes all the entries added into StageVariables.clone()
Creates a shallow clone of this request.boolean
[Optional] A key-value map of additional context variables.Specifies a test invoke authorizer request's Authorizer ID.getBody()
[Optional] The simulated request body of an incoming invocation request.[Required] A key-value map of headers to simulate an incoming invocation request.[Optional] The URI path, including query string, of the simulated invocation request.Specifies a test invoke authorizer request's RestApi identifier.A key-value map of stage variables to simulate an invocation on a deployed Stage.int
hashCode()
void
setAdditionalContext
(Map<String, String> additionalContext) [Optional] A key-value map of additional context variables.void
setAuthorizerId
(String authorizerId) Specifies a test invoke authorizer request's Authorizer ID.void
[Optional] The simulated request body of an incoming invocation request.void
setHeaders
(Map<String, String> headers) [Required] A key-value map of headers to simulate an incoming invocation request.void
setPathWithQueryString
(String pathWithQueryString) [Optional] The URI path, including query string, of the simulated invocation request.void
setRestApiId
(String restApiId) Specifies a test invoke authorizer request's RestApi identifier.void
setStageVariables
(Map<String, String> stageVariables) A key-value map of stage variables to simulate an invocation on a deployed Stage.toString()
Returns a string representation of this object; useful for testing and debugging.withAdditionalContext
(Map<String, String> additionalContext) [Optional] A key-value map of additional context variables.withAuthorizerId
(String authorizerId) Specifies a test invoke authorizer request's Authorizer ID.[Optional] The simulated request body of an incoming invocation request.withHeaders
(Map<String, String> headers) [Required] A key-value map of headers to simulate an incoming invocation request.withPathWithQueryString
(String pathWithQueryString) [Optional] The URI path, including query string, of the simulated invocation request.withRestApiId
(String restApiId) Specifies a test invoke authorizer request's RestApi identifier.withStageVariables
(Map<String, String> stageVariables) A key-value map of stage variables to simulate an invocation on a deployed Stage.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
TestInvokeAuthorizerRequest
public TestInvokeAuthorizerRequest()
-
-
Method Details
-
setRestApiId
Specifies a test invoke authorizer request's RestApi identifier.
- Parameters:
restApiId
- Specifies a test invoke authorizer request's RestApi identifier.
-
getRestApiId
Specifies a test invoke authorizer request's RestApi identifier.
- Returns:
- Specifies a test invoke authorizer request's RestApi identifier.
-
withRestApiId
Specifies a test invoke authorizer request's RestApi identifier.
- Parameters:
restApiId
- Specifies a test invoke authorizer request's RestApi identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAuthorizerId
Specifies a test invoke authorizer request's Authorizer ID.
- Parameters:
authorizerId
- Specifies a test invoke authorizer request's Authorizer ID.
-
getAuthorizerId
Specifies a test invoke authorizer request's Authorizer ID.
- Returns:
- Specifies a test invoke authorizer request's Authorizer ID.
-
withAuthorizerId
Specifies a test invoke authorizer request's Authorizer ID.
- Parameters:
authorizerId
- Specifies a test invoke authorizer request's Authorizer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getHeaders
[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
- Returns:
- [Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
-
setHeaders
[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
- Parameters:
headers
- [Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
-
withHeaders
[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
- Parameters:
headers
- [Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addHeadersEntry
-
clearHeadersEntries
Removes all the entries added into Headers. <p> Returns a reference to this object so that method calls can be chained together. -
setPathWithQueryString
[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
- Parameters:
pathWithQueryString
- [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
-
getPathWithQueryString
[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
- Returns:
- [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
-
withPathWithQueryString
[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
- Parameters:
pathWithQueryString
- [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBody
[Optional] The simulated request body of an incoming invocation request.
- Parameters:
body
- [Optional] The simulated request body of an incoming invocation request.
-
getBody
[Optional] The simulated request body of an incoming invocation request.
- Returns:
- [Optional] The simulated request body of an incoming invocation request.
-
withBody
[Optional] The simulated request body of an incoming invocation request.
- Parameters:
body
- [Optional] The simulated request body of an incoming invocation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getStageVariables
A key-value map of stage variables to simulate an invocation on a deployed Stage.
- Returns:
- A key-value map of stage variables to simulate an invocation on a deployed Stage.
-
setStageVariables
A key-value map of stage variables to simulate an invocation on a deployed Stage.
- Parameters:
stageVariables
- A key-value map of stage variables to simulate an invocation on a deployed Stage.
-
withStageVariables
A key-value map of stage variables to simulate an invocation on a deployed Stage.
- Parameters:
stageVariables
- A key-value map of stage variables to simulate an invocation on a deployed Stage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addStageVariablesEntry
-
clearStageVariablesEntries
Removes all the entries added into StageVariables. <p> Returns a reference to this object so that method calls can be chained together. -
getAdditionalContext
[Optional] A key-value map of additional context variables.
- Returns:
- [Optional] A key-value map of additional context variables.
-
setAdditionalContext
[Optional] A key-value map of additional context variables.
- Parameters:
additionalContext
- [Optional] A key-value map of additional context variables.
-
withAdditionalContext
[Optional] A key-value map of additional context variables.
- Parameters:
additionalContext
- [Optional] A key-value map of additional context variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAdditionalContextEntry
-
clearAdditionalContextEntries
Removes all the entries added into AdditionalContext. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-