public class TestInvokeMethodResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the response of the test invoke request in HTTP method.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
body
The body of HTTP response.
|
private java.util.Map<java.lang.String,java.lang.String> |
headers
The headers of HTTP response.
|
private java.lang.Long |
latency
The execution latency of the test invoke request.
|
private java.lang.String |
log
The Amazon API Gateway execution log for the test invoke request.
|
private java.lang.Integer |
status
The HTTP status code.
|
Constructor and Description |
---|
TestInvokeMethodResult() |
Modifier and Type | Method and Description |
---|---|
TestInvokeMethodResult |
addHeadersEntry(java.lang.String key,
java.lang.String value) |
TestInvokeMethodResult |
clearHeadersEntries()
Removes all the entries added into Headers.
|
TestInvokeMethodResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBody()
The body of HTTP response.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
The headers of HTTP response.
|
java.lang.Long |
getLatency()
The execution latency of the test invoke request.
|
java.lang.String |
getLog()
The Amazon API Gateway execution log for the test invoke request.
|
java.lang.Integer |
getStatus()
The HTTP status code.
|
int |
hashCode() |
void |
setBody(java.lang.String body)
The body of HTTP response.
|
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
The headers of HTTP response.
|
void |
setLatency(java.lang.Long latency)
The execution latency of the test invoke request.
|
void |
setLog(java.lang.String log)
The Amazon API Gateway execution log for the test invoke request.
|
void |
setStatus(java.lang.Integer status)
The HTTP status code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestInvokeMethodResult |
withBody(java.lang.String body)
The body of HTTP response.
|
TestInvokeMethodResult |
withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
The headers of HTTP response.
|
TestInvokeMethodResult |
withLatency(java.lang.Long latency)
The execution latency of the test invoke request.
|
TestInvokeMethodResult |
withLog(java.lang.String log)
The Amazon API Gateway execution log for the test invoke request.
|
TestInvokeMethodResult |
withStatus(java.lang.Integer status)
The HTTP status code.
|
private java.lang.Integer status
The HTTP status code.
private java.lang.String body
The body of HTTP response.
private java.util.Map<java.lang.String,java.lang.String> headers
The headers of HTTP response.
private java.lang.String log
The Amazon API Gateway execution log for the test invoke request.
private java.lang.Long latency
The execution latency of the test invoke request.
public void setStatus(java.lang.Integer status)
The HTTP status code.
status
- The HTTP status code.public java.lang.Integer getStatus()
The HTTP status code.
public TestInvokeMethodResult withStatus(java.lang.Integer status)
The HTTP status code.
status
- The HTTP status code.public void setBody(java.lang.String body)
The body of HTTP response.
body
- The body of HTTP response.public java.lang.String getBody()
The body of HTTP response.
public TestInvokeMethodResult withBody(java.lang.String body)
The body of HTTP response.
body
- The body of HTTP response.public java.util.Map<java.lang.String,java.lang.String> getHeaders()
The headers of HTTP response.
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
The headers of HTTP response.
headers
- The headers of HTTP response.public TestInvokeMethodResult withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
The headers of HTTP response.
headers
- The headers of HTTP response.public TestInvokeMethodResult addHeadersEntry(java.lang.String key, java.lang.String value)
public TestInvokeMethodResult clearHeadersEntries()
public void setLog(java.lang.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 java.lang.String getLog()
The Amazon API Gateway execution log for the test invoke request.
public TestInvokeMethodResult withLog(java.lang.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(java.lang.Long latency)
The execution latency of the test invoke request.
latency
- The execution latency of the test invoke request.public java.lang.Long getLatency()
The execution latency of the test invoke request.
public TestInvokeMethodResult withLatency(java.lang.Long latency)
The execution latency of the test invoke request.
latency
- The execution latency of the test invoke request.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TestInvokeMethodResult clone()
clone
in class java.lang.Object