Class ContentFilterSeverityResult
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ContentFilterSeverityResult
ContentFilterSeverityResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets severity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSet the filtered of thisContentFilterSeverityResultinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theContentFilterSeverityResult.Get severityinthashCode()Get filteredvoidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisContentFilterSeverityResultinstance.voidsetFiltered(Boolean filtered) Set the filtered of thisContentFilterSeverityResultinstance.voidSet the severity of thisContentFilterSeverityResultinstance.Set the severity of thisContentFilterSeverityResultinstance and return the same instance.toMap()Get the value of all properties of thisContentFilterSeverityResultinstance including unrecognized properties.toString()
-
Constructor Details
-
ContentFilterSeverityResult
public ContentFilterSeverityResult()
-
-
Method Details
-
filtered
Set the filtered of thisContentFilterSeverityResultinstance and return the same instance.- Parameters:
filtered- The filtered of thisContentFilterSeverityResult- Returns:
- The same instance of this
ContentFilterSeverityResultclass
-
isFiltered
Get filtered- Returns:
- filtered The filtered of this
ContentFilterSeverityResultinstance.
-
setFiltered
Set the filtered of thisContentFilterSeverityResultinstance.- Parameters:
filtered- The filtered of thisContentFilterSeverityResult
-
severity
@Nonnull public ContentFilterSeverityResult severity(@Nonnull ContentFilterSeverityResult.SeverityEnum severity) Set the severity of thisContentFilterSeverityResultinstance and return the same instance.- Parameters:
severity- The severity of thisContentFilterSeverityResult- Returns:
- The same instance of this
ContentFilterSeverityResultclass
-
getSeverity
Get severity- Returns:
- severity The severity of this
ContentFilterSeverityResultinstance.
-
setSeverity
Set the severity of thisContentFilterSeverityResultinstance.- Parameters:
severity- The severity of thisContentFilterSeverityResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of theContentFilterSeverityResult.- 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 thisContentFilterSeverityResultinstance.- 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 thisContentFilterSeverityResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisContentFilterSeverityResultinstance. 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.