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 TestInvokeMethodResultaddHeadersEntry(String key, String value)TestInvokeMethodResultclearHeadersEntries()Removes all the entries added into Headers.TestInvokeMethodResultclone()booleanequals(Object obj)StringgetBody()The body of HTTP response.Map<String,String>getHeaders()The headers of HTTP response.LonggetLatency()The execution latency of the test invoke request.StringgetLog()The Amazon API Gateway execution log for the test invoke request.IntegergetStatus()The HTTP status code.inthashCode()voidsetBody(String body)The body of HTTP response.voidsetHeaders(Map<String,String> headers)The headers of HTTP response.voidsetLatency(Long latency)The execution latency of the test invoke request.voidsetLog(String log)The Amazon API Gateway execution log for the test invoke request.voidsetStatus(Integer status)The HTTP status code.StringtoString()Returns a string representation of this object; useful for testing and debugging.TestInvokeMethodResultwithBody(String body)The body of HTTP response.TestInvokeMethodResultwithHeaders(Map<String,String> headers)The headers of HTTP response.TestInvokeMethodResultwithLatency(Long latency)The execution latency of the test invoke request.TestInvokeMethodResultwithLog(String log)The Amazon API Gateway execution log for the test invoke request.TestInvokeMethodResultwithStatus(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TestInvokeMethodResult clone()
-
-