Class Error

java.lang.Object
io.voucherify.client.model.Error

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

  • Constructor Details

    • Error

      public Error()
  • Method Details

    • code

      public Error code(Integer code)
    • getCode

      @Nullable public Integer getCode()
      Error's HTTP status code.
      Returns:
      code
    • setCode

      public void setCode(Integer code)
    • key

      public Error key(String key)
    • getKey

      @Nullable public String getKey()
      Short string describing the kind of error which occurred.
      Returns:
      key
    • setKey

      public void setKey(String key)
    • message

      public Error message(String message)
    • getMessage

      @Nullable public String getMessage()
      A human-readable message providing a short description of the error.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • details

      public Error details(String details)
    • getDetails

      @Nullable public String getDetails()
      A human-readable message providing more details about the error.
      Returns:
      details
    • setDetails

      public void setDetails(String details)
    • requestId

      public Error requestId(String requestId)
    • getRequestId

      @Nullable public String getRequestId()
      This ID is useful when troubleshooting and/or finding the root cause of an error response by our support team.
      Returns:
      requestId
    • setRequestId

      public void setRequestId(String requestId)
    • resourceId

      public Error resourceId(String resourceId)
    • getResourceId

      @Nullable public String getResourceId()
      Unique resource ID that can be used in another endpoint to get more details.
      Returns:
      resourceId
    • setResourceId

      public void setResourceId(String resourceId)
    • resourceType

      public Error resourceType(String resourceType)
    • getResourceType

      @Nullable public String getResourceType()
      The resource type.
      Returns:
      resourceType
    • setResourceType

      public void setResourceType(String resourceType)
    • error

      public Error error(ErrorError error)
    • getError

      @Nullable public ErrorError getError()
      Get error
      Returns:
      error
    • setError

      public void setError(ErrorError error)
    • 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
    • fromJson

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

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