@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) |
TestInvokeMethodResult |
clearHeadersEntries()
Removes all the entries added into Headers.
|
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 of the test invoke request.
|
String |
getLog()
The Amazon API Gateway execution log for the test invoke request.
|
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 of the test invoke request.
|
void |
setLog(String log)
The Amazon API Gateway execution log for the test invoke request.
|
void |
setStatus(Integer status)
The HTTP status code.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 of the test invoke request.
|
TestInvokeMethodResult |
withLog(String log)
The Amazon API Gateway execution log for the test invoke request.
|
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 void setLog(String log)
The Amazon API Gateway execution log for the test invoke request.
log
- The Amazon API Gateway execution log for the test invoke request.public String getLog()
The Amazon API Gateway execution log for the test invoke request.
public TestInvokeMethodResult withLog(String log)
The Amazon API Gateway execution log for the test invoke request.
log
- The Amazon API Gateway execution log for the test invoke request.public void setLatency(Long latency)
The execution latency of the test invoke request.
latency
- The execution latency of the test invoke request.public Long getLatency()
The execution latency of the test invoke request.
public TestInvokeMethodResult withLatency(Long latency)
The execution latency of the test invoke request.
latency
- The execution latency of the test invoke request.public String toString()
toString
in class Object
Object.toString()
public TestInvokeMethodResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.