Class ContentFilterResultBase
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ContentFilterResultBase
ContentFilterResultBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSet the filtered of thisContentFilterResultBaseinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theContentFilterResultBase.inthashCode()Get filteredvoidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisContentFilterResultBaseinstance.voidsetFiltered(Boolean filtered) Set the filtered of thisContentFilterResultBaseinstance.toMap()Get the value of all properties of thisContentFilterResultBaseinstance including unrecognized properties.toString()
-
Constructor Details
-
ContentFilterResultBase
public ContentFilterResultBase()
-
-
Method Details
-
filtered
Set the filtered of thisContentFilterResultBaseinstance and return the same instance.- Parameters:
filtered- The filtered of thisContentFilterResultBase- Returns:
- The same instance of this
ContentFilterResultBaseclass
-
isFiltered
Get filtered- Returns:
- filtered The filtered of this
ContentFilterResultBaseinstance.
-
setFiltered
Set the filtered of thisContentFilterResultBaseinstance.- Parameters:
filtered- The filtered of thisContentFilterResultBase
-
getCustomFieldNames
Get the names of the unrecognizable properties of theContentFilterResultBase.- 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 thisContentFilterResultBaseinstance.- 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 thisContentFilterResultBaseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisContentFilterResultBaseinstance. 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.