Class ErrorBody

java.lang.Object
ai.reveng.model.ErrorBody

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ErrorBody extends Object
ErrorBody
  • Field Details

  • Constructor Details

    • ErrorBody

      public ErrorBody()
  • Method Details

    • code

      public ErrorBody code(@Nonnull ErrorBody.CodeEnum code)
    • getCode

      @Nonnull public ErrorBody.CodeEnum getCode()
      Stable, machine-readable error code. Versioned and documented.
      Returns:
      code
    • setCode

      public void setCode(@Nonnull ErrorBody.CodeEnum code)
    • detail

      public ErrorBody detail(@Nullable String detail)
    • getDetail

      @Nullable public String getDetail()
      Additional context where helpful (quota numbers, validation specifics, etc.).
      Returns:
      detail
    • setDetail

      public void setDetail(@Nullable String detail)
    • docUrl

      public ErrorBody docUrl(@Nullable String docUrl)
    • getDocUrl

      @Nullable public String getDocUrl()
      Link to documentation explaining this error and resolution steps.
      Returns:
      docUrl
    • setDocUrl

      public void setDocUrl(@Nullable String docUrl)
    • message

      public ErrorBody message(@Nonnull String message)
    • getMessage

      @Nonnull public String getMessage()
      Human-readable summary. Never contains internals. Suitable for direct display.
      Returns:
      message
    • setMessage

      public void setMessage(@Nonnull String message)
    • traceId

      public ErrorBody traceId(@Nonnull String traceId)
    • getTraceId

      @Nonnull public String getTraceId()
      Correlation ID from the request. Quote this in support requests.
      Returns:
      traceId
    • setTraceId

      public void setTraceId(@Nonnull String traceId)
    • putAdditionalProperty

      public ErrorBody putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the ErrorBody instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

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

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

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

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ErrorBody
    • fromJson

      public static ErrorBody fromJson(String jsonString) throws IOException
      Create an instance of ErrorBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ErrorBody
      Throws:
      IOException - if the JSON string is invalid with respect to ErrorBody
    • toJson

      public String toJson()
      Convert an instance of ErrorBody to an JSON string
      Returns:
      JSON string