@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TestInvokeMethodResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the response of the test invoke request in the HTTP method.
Constructor and Description |
---|
TestInvokeMethodResult() |
Modifier and Type | Method and Description |
---|---|
TestInvokeMethodResult |
addHeadersEntry(String key,
String value)
Add a single Headers entry
|
TestInvokeMethodResult |
addMultiValueHeadersEntry(String key,
List<String> value)
Add a single MultiValueHeaders entry
|
TestInvokeMethodResult |
clearHeadersEntries()
Removes all the entries added into Headers.
|
TestInvokeMethodResult |
clearMultiValueHeadersEntries()
Removes all the entries added into MultiValueHeaders.
|
TestInvokeMethodResult |
clone() |
boolean |
equals(Object obj) |
String |
getBody()
The body of the HTTP response.
|
Map<String,String> |
getHeaders()
The headers of the HTTP response.
|
Long |
getLatency()
The execution latency, in ms, of the test invoke request.
|
String |
getLog()
The API Gateway execution log for the test invoke request.
|
Map<String,List<String>> |
getMultiValueHeaders()
The headers of the HTTP response as a map from string to list of values.
|
Integer |
getStatus()
The HTTP status code.
|
int |
hashCode() |
void |
setBody(String body)
The body of the HTTP response.
|
void |
setHeaders(Map<String,String> headers)
The headers of the HTTP response.
|
void |
setLatency(Long latency)
The execution latency, in ms, of the test invoke request.
|
void |
setLog(String log)
The API Gateway execution log for the test invoke request.
|
void |
setMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
The headers of the HTTP response as a map from string to list of values.
|
void |
setStatus(Integer status)
The HTTP status code.
|
String |
toString()
Returns a string representation of this object.
|
TestInvokeMethodResult |
withBody(String body)
The body of the HTTP response.
|
TestInvokeMethodResult |
withHeaders(Map<String,String> headers)
The headers of the HTTP response.
|
TestInvokeMethodResult |
withLatency(Long latency)
The execution latency, in ms, of the test invoke request.
|
TestInvokeMethodResult |
withLog(String log)
The API Gateway execution log for the test invoke request.
|
TestInvokeMethodResult |
withMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
The headers of the HTTP response as a map from string to list of values.
|
TestInvokeMethodResult |
withStatus(Integer status)
The HTTP status code.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setStatus(Integer status)
The HTTP status code.
status
- The HTTP status code.public Integer getStatus()
The HTTP status code.
public TestInvokeMethodResult withStatus(Integer status)
The HTTP status code.
status
- The HTTP status code.public void setBody(String body)
The body of the HTTP response.
body
- The body of the HTTP response.public String getBody()
The body of the HTTP response.
public TestInvokeMethodResult withBody(String body)
The body of the HTTP response.
body
- The body of the HTTP response.public Map<String,String> getHeaders()
The headers of the HTTP response.
public void setHeaders(Map<String,String> headers)
The headers of the HTTP response.
headers
- The headers of the HTTP response.public TestInvokeMethodResult withHeaders(Map<String,String> headers)
The headers of the HTTP response.
headers
- The headers of the HTTP response.public TestInvokeMethodResult addHeadersEntry(String key, String value)
public TestInvokeMethodResult clearHeadersEntries()
public Map<String,List<String>> getMultiValueHeaders()
The headers of the HTTP response as a map from string to list of values.
public void setMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
The headers of the HTTP response as a map from string to list of values.
multiValueHeaders
- The headers of the HTTP response as a map from string to list of values.public TestInvokeMethodResult withMultiValueHeaders(Map<String,List<String>> multiValueHeaders)
The headers of the HTTP response as a map from string to list of values.
multiValueHeaders
- The headers of the HTTP response as a map from string to list of values.public TestInvokeMethodResult addMultiValueHeadersEntry(String key, List<String> value)
public TestInvokeMethodResult clearMultiValueHeadersEntries()
public void setLog(String log)
The API Gateway execution log for the test invoke request.
log
- The API Gateway execution log for the test invoke request.public String getLog()
The API Gateway execution log for the test invoke request.
public TestInvokeMethodResult withLog(String log)
The API Gateway execution log for the test invoke request.
log
- The API Gateway execution log for the test invoke request.public void setLatency(Long latency)
The execution latency, in ms, of the test invoke request.
latency
- The execution latency, in ms, of the test invoke request.public Long getLatency()
The execution latency, in ms, of the test invoke request.
public TestInvokeMethodResult withLatency(Long latency)
The execution latency, in ms, of the test invoke request.
latency
- The execution latency, in ms, of the test invoke request.public String toString()
toString
in class Object
Object.toString()
public TestInvokeMethodResult clone()