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 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.inthashCode()voidsetAdditionalContext(Map<String, String> additionalContext) [Optional] A key-value map of additional context variables.voidsetAuthorizerId(String authorizerId) Specifies a test invoke authorizer request's Authorizer ID.void[Optional] The simulated request body of an incoming invocation request.voidsetHeaders(Map<String, String> headers) [Required] A key-value map of headers to simulate an incoming invocation request.voidsetPathWithQueryString(String pathWithQueryString) [Optional] The URI path, including query string, of the simulated invocation request.voidsetRestApiId(String restApiId) Specifies a test invoke authorizer request's RestApi identifier.voidsetStageVariables(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 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
-
getRestApiId
-
withRestApiId
-
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
-
setStageVariables
-
withStageVariables
-
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
-
setAdditionalContext
-
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
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-