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:
  • Constructor Details

    • TestInvokeMethodResult

      public TestInvokeMethodResult()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public TestInvokeMethodResult clone()
      Overrides:
      clone in class Object