Class InnerError
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.InnerError
Inner error with additional details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode(InnerErrorCode code) Set the code of thisInnerErrorinstance and return the same instance.contentFilterResults(ContentFilterPromptResults contentFilterResults) Set the contentFilterResults of thisInnerErrorinstance and return the same instance.booleangetCode()Get codeGet contentFilterResultsgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theInnerError.inthashCode()voidsetCode(InnerErrorCode code) Set the code of thisInnerErrorinstance.voidsetContentFilterResults(ContentFilterPromptResults contentFilterResults) Set the contentFilterResults of thisInnerErrorinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisInnerErrorinstance.toMap()Get the value of all properties of thisInnerErrorinstance including unrecognized properties.toString()
-
Constructor Details
-
InnerError
public InnerError()
-
-
Method Details
-
code
Set the code of thisInnerErrorinstance and return the same instance.- Parameters:
code- The code of thisInnerError- Returns:
- The same instance of this
InnerErrorclass
-
getCode
Get code- Returns:
- code The code of this
InnerErrorinstance.
-
setCode
Set the code of thisInnerErrorinstance.- Parameters:
code- The code of thisInnerError
-
contentFilterResults
@Nonnull public InnerError contentFilterResults(@Nullable ContentFilterPromptResults contentFilterResults) Set the contentFilterResults of thisInnerErrorinstance and return the same instance.- Parameters:
contentFilterResults- The contentFilterResults of thisInnerError- Returns:
- The same instance of this
InnerErrorclass
-
getContentFilterResults
Get contentFilterResults- Returns:
- contentFilterResults The contentFilterResults of this
InnerErrorinstance.
-
setContentFilterResults
Set the contentFilterResults of thisInnerErrorinstance.- Parameters:
contentFilterResults- The contentFilterResults of thisInnerError
-
getCustomFieldNames
Get the names of the unrecognizable properties of theInnerError.- 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 thisInnerErrorinstance.- 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 thisInnerErrorinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisInnerErrorinstance. 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
-
toMap()instead.