@Generated(value="software.amazon.awssdk:codegen") public class TestInvokeMethodResponse extends APIGatewayResponse implements ToCopyableBuilder<TestInvokeMethodResponse.Builder,TestInvokeMethodResponse>
Represents the response of the test invoke request in the HTTP method.
Modifier and Type | Class and Description |
---|---|
static interface |
TestInvokeMethodResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
body()
The body of the HTTP response.
|
static TestInvokeMethodResponse.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
SdkResponse . |
int |
hashCode() |
Map<String,String> |
headers()
The headers of the HTTP response.
|
Long |
latency()
The execution latency of the test invoke request.
|
String |
log()
The Amazon API Gateway execution log for the test invoke request.
|
static Class<? extends TestInvokeMethodResponse.Builder> |
serializableBuilderClass() |
Integer |
status()
The HTTP status code.
|
TestInvokeMethodResponse.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 status()
The HTTP status code.
public String body()
The body of the HTTP response.
public Map<String,String> headers()
The headers of the HTTP response.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String log()
The Amazon API Gateway execution log for the test invoke request.
public Long latency()
The execution latency of the test invoke request.
public TestInvokeMethodResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TestInvokeMethodResponse.Builder,TestInvokeMethodResponse>
toBuilder
in class AwsResponse
public static TestInvokeMethodResponse.Builder builder()
public static Class<? extends TestInvokeMethodResponse.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.