@Generated(value="software.amazon.awssdk:codegen") public class TestInvokeAuthorizerRequest extends APIGatewayRequest implements ToCopyableBuilder<TestInvokeAuthorizerRequest.Builder,TestInvokeAuthorizerRequest>
Make a request to simulate the execution of an Authorizer.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestInvokeAuthorizerRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
additionalContext()
[Optional] A key-value map of additional context variables.
|
String |
authorizerId()
Specifies a test invoke authorizer request's Authorizer ID.
|
String |
body()
[Optional] The simulated request body of an incoming invocation request.
|
static TestInvokeAuthorizerRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest. |
int |
hashCode() |
Map<String,String> |
headers()
[Required] A key-value map of headers to simulate an incoming invocation request.
|
String |
pathWithQueryString()
[Optional] The URI path, including query string, of the simulated invocation request.
|
String |
restApiId()
The string identifier of the associated RestApi.
|
static Class<? extends TestInvokeAuthorizerRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
stageVariables()
A key-value map of stage variables to simulate an invocation on a deployed Stage.
|
TestInvokeAuthorizerRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfigcopypublic String restApiId()
The string identifier of the associated RestApi.
public String authorizerId()
Specifies a test invoke authorizer request's Authorizer ID.
public Map<String,String> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String pathWithQueryString()
[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
public String body()
[Optional] The simulated request body of an incoming invocation request.
public Map<String,String> stageVariables()
A key-value map of stage variables to simulate an invocation on a deployed Stage.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> additionalContext()
[Optional] A key-value map of additional context variables.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TestInvokeAuthorizerRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<TestInvokeAuthorizerRequest.Builder,TestInvokeAuthorizerRequest>toBuilder in class APIGatewayRequestpublic static TestInvokeAuthorizerRequest.Builder builder()
public static Class<? extends TestInvokeAuthorizerRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequestSdkRequest. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will
again be available.getValueForField in class SdkRequestfieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.