@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class ValidationProblemDetails extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationProblemDetails.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DETAIL |
static String |
SERIALIZED_NAME_ERRORS |
static String |
SERIALIZED_NAME_INSTANCE |
static String |
SERIALIZED_NAME_STATUS |
static String |
SERIALIZED_NAME_TITLE |
static String |
SERIALIZED_NAME_TYPE |
Constructor and Description |
---|
ValidationProblemDetails() |
Modifier and Type | Method and Description |
---|---|
ValidationProblemDetails |
detail(String detail) |
boolean |
equals(Object o) |
ValidationProblemDetails |
errors(Map<String,List<String>> errors) |
static ValidationProblemDetails |
fromJson(String jsonString)
Create an instance of ValidationProblemDetails given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getDetail()
Get detail
|
Map<String,List<String>> |
getErrors()
Get errors
|
String |
getInstance()
Get instance
|
Integer |
getStatus()
Get status
|
String |
getTitle()
Get title
|
String |
getType()
Get type
|
int |
hashCode() |
ValidationProblemDetails |
instance(String instance) |
ValidationProblemDetails |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
ValidationProblemDetails |
putErrorsItem(String key,
List<String> errorsItem) |
void |
setDetail(String detail) |
void |
setErrors(Map<String,List<String>> errors) |
void |
setInstance(String instance) |
void |
setStatus(Integer status) |
void |
setTitle(String title) |
void |
setType(String type) |
ValidationProblemDetails |
status(Integer status) |
ValidationProblemDetails |
title(String title) |
String |
toJson()
Convert an instance of ValidationProblemDetails to an JSON string
|
String |
toString() |
ValidationProblemDetails |
type(String type) |
static void |
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
|
public static final String SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_DETAIL
public static final String SERIALIZED_NAME_INSTANCE
public static final String SERIALIZED_NAME_ERRORS
public ValidationProblemDetails type(@Nullable String type)
public ValidationProblemDetails title(@Nullable String title)
public ValidationProblemDetails status(@Nullable Integer status)
public ValidationProblemDetails detail(@Nullable String detail)
public ValidationProblemDetails instance(@Nullable String instance)
public ValidationProblemDetails putErrorsItem(String key, List<String> errorsItem)
public ValidationProblemDetails putAdditionalProperty(String key, Object value)
key
- name of the propertyvalue
- value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key
- name of the propertypublic static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
jsonElement
- JSON ElementIOException
- if the JSON Element is invalid with respect to ValidationProblemDetailspublic static ValidationProblemDetails fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to ValidationProblemDetailspublic String toJson()
Copyright © 2024. All rights reserved.