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