Class ProblemDetail
java.lang.Object
co.ankatech.keymanagement.client.auth.model.ProblemDetail
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ProblemDetail
extends Object
ProblemDetail
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ProblemDetailCreate an instance of ProblemDetail given an JSON stringGet detailGet instanceGet propertiesGet statusgetTitle()Get titlegetType()Get typeinthashCode()properties(Map<String, Object> properties) putPropertiesItem(String key, Object propertiesItem) voidvoidsetInstance(URI instance) voidsetProperties(Map<String, Object> properties) voidvoidvoidtoJson()Convert an instance of ProblemDetail 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_PROPERTIES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProblemDetail
public ProblemDetail()
-
-
Method Details
-
type
-
getType
Get type- Returns:
- type
-
setType
-
title
-
getTitle
Get title- Returns:
- title
-
setTitle
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
detail
-
getDetail
Get detail- Returns:
- detail
-
setDetail
-
instance
-
getInstance
Get instance- Returns:
- instance
-
setInstance
-
properties
-
putPropertiesItem
-
getProperties
Get properties- Returns:
- properties
-
setProperties
-
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 ProblemDetail
-
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 ProblemDetail
-
fromJson
Create an instance of ProblemDetail given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProblemDetail
- Throws:
IOException- if the JSON string is invalid with respect to ProblemDetail
-
toJson
Convert an instance of ProblemDetail to an JSON string- Returns:
- JSON string
-