@Generated(value="software.amazon.awssdk:codegen") public class TestInvokeAuthorizerResponse extends APIGatewayResponse implements ToCopyableBuilder<TestInvokeAuthorizerResponse.Builder,TestInvokeAuthorizerResponse>
Represents the response of the test invoke request for a custom Authorizer
Modifier and Type | Class and Description |
---|---|
static interface |
TestInvokeAuthorizerResponse.Builder |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
authorization()
Returns the value of the Authorization property for this object.
|
static TestInvokeAuthorizerResponse.Builder |
builder() |
Map<String,String> |
claims()
The open identity claims, with
any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
|
Integer |
clientStatus()
The HTTP status code that the client would have received.
|
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
SdkResponse . |
int |
hashCode() |
Long |
latency()
The execution latency of the test authorizer request.
|
String |
log()
The Amazon API Gateway execution log for the test authorizer request.
|
String |
policy()
The JSON policy document returned by the Authorizer
|
String |
principalId()
The principal identity returned by the Authorizer
|
static Class<? extends TestInvokeAuthorizerResponse.Builder> |
serializableBuilderClass() |
TestInvokeAuthorizerResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer clientStatus()
The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
public String log()
The Amazon API Gateway execution log for the test authorizer request.
public Long latency()
The execution latency of the test authorizer request.
public String principalId()
The principal identity returned by the Authorizer
public String policy()
The JSON policy document returned by the Authorizer
public Map<String,List<String>> authorization()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> claims()
The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TestInvokeAuthorizerResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TestInvokeAuthorizerResponse.Builder,TestInvokeAuthorizerResponse>
toBuilder
in class AwsResponse
public static TestInvokeAuthorizerResponse.Builder builder()
public static Class<? extends TestInvokeAuthorizerResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. 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 SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- 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.