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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanextensions(Map<String, Object> extensions) static ProblemDetailsCreate an instance of ProblemDetails given an JSON stringHuman‑readable explanation of the error.Optional extension bag.URI reference to the specific occurrence.HTTP status code.Epoch‑second timestamp of the error.getTitle()Short, human‑readable summary.getType()URI reference to the problem type.inthashCode()putExtensionsItem(String key, Object extensionsItem) voidvoidsetExtensions(Map<String, Object> extensions) voidsetInstance(String instance) voidvoidsetTimestamp(Long timestamp) voidvoidtoJson()Convert an instance of ProblemDetails to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_DETAIL
- See Also:
-
SERIALIZED_NAME_INSTANCE
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_EXTENSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProblemDetails
public ProblemDetails()
-
-
Method Details
-
type
-
getType
URI reference to the problem type.- Returns:
- type
-
setType
-
title
-
getTitle
Short, human‑readable summary.- Returns:
- title
-
setTitle
-
status
-
getStatus
HTTP status code.- Returns:
- status
-
setStatus
-
detail
-
getDetail
Human‑readable explanation of the error.- Returns:
- detail
-
setDetail
-
instance
-
getInstance
URI reference to the specific occurrence.- Returns:
- instance
-
setInstance
-
timestamp
-
getTimestamp
Epoch‑second timestamp of the error.- Returns:
- timestamp
-
setTimestamp
-
extensions
-
putExtensionsItem
-
getExtensions
Optional extension bag.- Returns:
- extensions
-
setExtensions
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 ofvalidateJsonElement(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
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
Convert an instance of ProblemDetails to an JSON string- Returns:
- JSON string
-