Package com.sap.ai.sdk.grounding.model
Class HTTPValidationError
java.lang.Object
com.sap.ai.sdk.grounding.model.HTTPValidationError
HTTPValidationError
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for HTTPValidationError. -
Method Summary
Modifier and TypeMethodDescriptionaddDetailItem(ValidationError detailItem) Add one detail instance to thisHTTPValidationError.static HTTPValidationErrorcreate()Create a newHTTPValidationErrorinstance.detail(List<ValidationError> detail) Set the detail of thisHTTPValidationErrorinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theHTTPValidationError.Get detailinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisHTTPValidationErrorinstance.voidsetDetail(List<ValidationError> detail) Set the detail of thisHTTPValidationErrorinstance.toMap()Get the value of all properties of thisHTTPValidationErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
HTTPValidationError
protected HTTPValidationError()Default constructor for HTTPValidationError.
-
-
Method Details
-
detail
Set the detail of thisHTTPValidationErrorinstance and return the same instance.- Parameters:
detail- The detail of thisHTTPValidationError- Returns:
- The same instance of this
HTTPValidationErrorclass
-
addDetailItem
Add one detail instance to thisHTTPValidationError.- Parameters:
detailItem- The detail that should be added- Returns:
- The same instance of type
HTTPValidationError
-
getDetail
Get detail- Returns:
- detail The detail of this
HTTPValidationErrorinstance.
-
setDetail
Set the detail of thisHTTPValidationErrorinstance.- Parameters:
detail- The detail of thisHTTPValidationError
-
getCustomFieldNames
Get the names of the unrecognizable properties of theHTTPValidationError.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisHTTPValidationErrorinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisHTTPValidationErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisHTTPValidationErrorinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newHTTPValidationErrorinstance. No arguments are required.
-
toMap()instead.