Class TestInvokeMethodResult
java.lang.Object
com.amazonaws.services.apigateway.model.TestInvokeMethodResult
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the response of the test invoke request in HTTP method.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeadersEntry
(String key, String value) Removes all the entries added into Headers.clone()
boolean
getBody()
The body of HTTP response.The headers of HTTP response.The execution latency of the test invoke request.getLog()
The Amazon API Gateway execution log for the test invoke request.The HTTP status code.int
hashCode()
void
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
The Amazon API Gateway execution log for the test invoke request.void
The HTTP status code.toString()
Returns a string representation of this object; useful for testing and debugging.The body of HTTP response.withHeaders
(Map<String, String> headers) The headers of HTTP response.withLatency
(Long latency) The execution latency of the test invoke request.The Amazon API Gateway execution log for the test invoke request.withStatus
(Integer status) The HTTP status code.
-
Constructor Details
-
TestInvokeMethodResult
public TestInvokeMethodResult()
-
-
Method Details
-
setStatus
The HTTP status code.
- Parameters:
status
- The HTTP status code.
-
getStatus
The HTTP status code.
- Returns:
- The HTTP status code.
-
withStatus
The HTTP status code.
- Parameters:
status
- The HTTP status code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBody
The body of HTTP response.
- Parameters:
body
- The body of HTTP response.
-
getBody
The body of HTTP response.
- Returns:
- The body of HTTP response.
-
withBody
The body of HTTP response.
- Parameters:
body
- The body of HTTP response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getHeaders
The headers of HTTP response.
- Returns:
- The headers of HTTP response.
-
setHeaders
The headers of HTTP response.
- Parameters:
headers
- The headers of HTTP response.
-
withHeaders
The headers of HTTP response.
- Parameters:
headers
- The headers of HTTP response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addHeadersEntry
-
clearHeadersEntries
Removes all the entries added into Headers. <p> Returns a reference to this object so that method calls can be chained together. -
setLog
The Amazon API Gateway execution log for the test invoke request.
- Parameters:
log
- The Amazon API Gateway execution log for the test invoke request.
-
getLog
The Amazon API Gateway execution log for the test invoke request.
- Returns:
- The Amazon API Gateway execution log for the test invoke request.
-
withLog
The Amazon API Gateway execution log for the test invoke request.
- Parameters:
log
- The Amazon API Gateway execution log for the test invoke request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLatency
The execution latency of the test invoke request.
- Parameters:
latency
- The execution latency of the test invoke request.
-
getLatency
The execution latency of the test invoke request.
- Returns:
- The execution latency of the test invoke request.
-
withLatency
The execution latency of the test invoke request.
- Parameters:
latency
- The execution latency of the test invoke request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-