public class TestInvokeMethodResult extends Object implements Serializable, Cloneable
Represents the response of the test invoke request in 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 HTTP response.
|
Map<String,String> |
getHeaders()
The headers of 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 HTTP response.
|
void |
setHeaders(Map<String,String> headers)
The headers of 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 HTTP response.
|
TestInvokeMethodResult |
withHeaders(Map<String,String> headers)
The headers of 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.
|
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 HTTP response.
body
- The body of HTTP response.public String getBody()
The body of HTTP response.
public TestInvokeMethodResult withBody(String body)
The body of HTTP response.
body
- The body of HTTP response.public Map<String,String> getHeaders()
The headers of HTTP response.
public void setHeaders(Map<String,String> headers)
The headers of HTTP response.
headers
- The headers of HTTP response.public TestInvokeMethodResult withHeaders(Map<String,String> headers)
The headers of HTTP response.
headers
- The headers of 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 © 2016. All rights reserved.