Class ContentFilterDetectedResult
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ContentFilterDetectedResult
ContentFilterDetectedResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the detected of thisContentFilterDetectedResultinstance and return the same instance.booleanSet the filtered of thisContentFilterDetectedResultinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theContentFilterDetectedResult.inthashCode()Get detectedGet filteredvoidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisContentFilterDetectedResultinstance.voidsetDetected(Boolean detected) Set the detected of thisContentFilterDetectedResultinstance.voidsetFiltered(Boolean filtered) Set the filtered of thisContentFilterDetectedResultinstance.toMap()Get the value of all properties of thisContentFilterDetectedResultinstance including unrecognized properties.toString()
-
Constructor Details
-
ContentFilterDetectedResult
public ContentFilterDetectedResult()
-
-
Method Details
-
filtered
Set the filtered of thisContentFilterDetectedResultinstance and return the same instance.- Parameters:
filtered- The filtered of thisContentFilterDetectedResult- Returns:
- The same instance of this
ContentFilterDetectedResultclass
-
isFiltered
Get filtered- Returns:
- filtered The filtered of this
ContentFilterDetectedResultinstance.
-
setFiltered
Set the filtered of thisContentFilterDetectedResultinstance.- Parameters:
filtered- The filtered of thisContentFilterDetectedResult
-
detected
Set the detected of thisContentFilterDetectedResultinstance and return the same instance.- Parameters:
detected- The detected of thisContentFilterDetectedResult- Returns:
- The same instance of this
ContentFilterDetectedResultclass
-
isDetected
Get detected- Returns:
- detected The detected of this
ContentFilterDetectedResultinstance.
-
setDetected
Set the detected of thisContentFilterDetectedResultinstance.- Parameters:
detected- The detected of thisContentFilterDetectedResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of theContentFilterDetectedResult.- 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 thisContentFilterDetectedResultinstance.- 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 thisContentFilterDetectedResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisContentFilterDetectedResultinstance. 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.