Class BaseResponse

java.lang.Object
com.rubensgomes.reqresp.BaseResponse

@Generated("jsonschema2pojo") public class BaseResponse extends Object
Base Response Object

A base type to be part of microservice responses.

  • Constructor Details

    • BaseResponse

      public BaseResponse()
      No args constructor for use in serialization
    • BaseResponse

      public BaseResponse(String clientId, String transactionId, BaseResponse.ResponseStatus responseStatus, String errorMessage, String errorRootCause)
      Parameters:
      clientId - The client who made the initial originating request.
      errorMessage - The error message.
      errorRootCause - The root cause error message.
      responseStatus - The status of the response.
      transactionId - Unique text used to correlate requests and responses.
  • Method Details

    • builder

      public static BaseResponse.BaseResponseBuilderBase builder()
    • getClientId

      public String getClientId()
      The client who made the initial originating request. (Required)
    • setClientId

      public void setClientId(String clientId)
      The client who made the initial originating request. (Required)
    • getTransactionId

      public String getTransactionId()
      Unique text used to correlate requests and responses. (Required)
    • setTransactionId

      public void setTransactionId(String transactionId)
      Unique text used to correlate requests and responses. (Required)
    • getResponseStatus

      public BaseResponse.ResponseStatus getResponseStatus()
      The status of the response. (Required)
    • setResponseStatus

      public void setResponseStatus(BaseResponse.ResponseStatus responseStatus)
      The status of the response. (Required)
    • getErrorMessage

      public String getErrorMessage()
      The error message
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      The error message
    • getErrorRootCause

      public String getErrorRootCause()
      The root cause error message
    • setErrorRootCause

      public void setErrorRootCause(String errorRootCause)
      The root cause error message
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object