Class ProblemDetails
java.lang.Object
co.ankatech.keymanagement.client.keymanagement.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. The three RFC-mandatory members (type, title, status) are always present; detail/instance/timestamp/extensions are optional and may be omitted.
-
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, serialized as a nested `extensions` object (NOT as top-level RFC 7807 extension members).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_DETAIL
- See Also:
-
SERIALIZED_NAME_EXTENSIONS
- See Also:
-
SERIALIZED_NAME_INSTANCE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProblemDetails
public ProblemDetails()
-
-
Method Details
-
detail
-
getDetail
Human-readable explanation of the error.- Returns:
- detail
-
setDetail
-
extensions
-
putExtensionsItem
-
getExtensions
Optional extension bag, serialized as a nested `extensions` object (NOT as top-level RFC 7807 extension members). Never populated with internal state (stack traces, DB column names, infrastructure identifiers).- Returns:
- extensions
-
setExtensions
-
instance
-
getInstance
URI reference to the specific occurrence.- Returns:
- instance
-
setInstance
-
status
-
getStatus
HTTP status code.- Returns:
- status
-
setStatus
-
timestamp
-
getTimestamp
Epoch-second timestamp of the error.- Returns:
- timestamp
-
setTimestamp
-
title
-
getTitle
Short, human-readable summary.- Returns:
- title
-
setTitle
-
type
-
getType
URI reference to the problem type.- Returns:
- type
-
setType
-
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
-