Class ErrorModel

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ErrorModel

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class ErrorModel extends Object
ErrorModel is used in remote connections with podman
  • Field Details

  • Constructor Details

    • ErrorModel

      public ErrorModel()
  • Method Details

    • 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 ErrorModel
    • fromJson

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

      public ErrorModel cause(String cause)
    • getCause

      @Nullable public String getCause()
      API root cause formatted for automated parsing
      Returns:
      cause
    • setCause

      public void setCause(String cause)
    • message

      public ErrorModel message(String message)
    • getMessage

      @Nullable public String getMessage()
      human error message, formatted for a human to read
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • response

      public ErrorModel response(Long response)
    • getResponse

      @Nullable @Min(400L) public @Min(400L) Long getResponse()
      HTTP response code minimum: 400
      Returns:
      response
    • setResponse

      public void setResponse(Long response)
    • 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
    • toJson

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