Class ProblemDetails

java.lang.Object
co.ankatech.keymanagement.client.auth.model.ProblemDetails

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class ProblemDetails extends Object
Standard RFC 7807 problem envelope.
  • Field Details

  • Constructor Details

    • ProblemDetails

      public ProblemDetails()
  • Method Details

    • type

      public ProblemDetails type(@Nullable String type)
    • getType

      @Nullable public String getType()
      URI reference to the problem type.
      Returns:
      type
    • setType

      public void setType(@Nullable String type)
    • title

      public ProblemDetails title(@Nullable String title)
    • getTitle

      @Nullable public String getTitle()
      Short, human‑readable summary.
      Returns:
      title
    • setTitle

      public void setTitle(@Nullable String title)
    • status

      public ProblemDetails status(@Nullable Integer status)
    • getStatus

      @Nullable public Integer getStatus()
      HTTP status code.
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable Integer status)
    • detail

      public ProblemDetails detail(@Nullable String detail)
    • getDetail

      @Nullable public String getDetail()
      Human‑readable explanation of the error.
      Returns:
      detail
    • setDetail

      public void setDetail(@Nullable String detail)
    • instance

      public ProblemDetails instance(@Nullable String instance)
    • getInstance

      @Nullable public String getInstance()
      URI reference to the specific occurrence.
      Returns:
      instance
    • setInstance

      public void setInstance(@Nullable String instance)
    • timestamp

      public ProblemDetails timestamp(@Nullable Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      Epoch‑second timestamp of the error.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(@Nullable Long timestamp)
    • extensions

      public ProblemDetails extensions(@Nullable Map<String,Object> extensions)
    • putExtensionsItem

      public ProblemDetails putExtensionsItem(String key, Object extensionsItem)
    • getExtensions

      @Nullable public Map<String,Object> getExtensions()
      Optional extension bag.
      Returns:
      extensions
    • setExtensions

      public void setExtensions(@Nullable Map<String,Object> extensions)
    • 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 ProblemDetails
    • validateJsonElementAsCandidate

      public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element as a candidate of a oneOf schema: the checks of validateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is not a ProblemDetails
    • fromJson

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

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