Class AzureContentSafetyInputFilterConfig
java.lang.Object
com.sap.ai.sdk.orchestration.model.AzureContentSafetyInputFilterConfig
- All Implemented Interfaces:
InputFilterConfig
AzureContentSafetyInputFilterConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumName of the filter provider type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AzureContentSafetyInputFilterConfig. -
Method Summary
Modifier and TypeMethodDescriptionconfig(AzureContentSafetyInput config) Set the config of thisAzureContentSafetyInputFilterConfiginstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newAzureContentSafetyInputFilterConfiginstance with all required arguments.booleanGet configgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAzureContentSafetyInputFilterConfig.getType()Name of the filter provider typeinthashCode()voidsetConfig(AzureContentSafetyInput config) Set the config of thisAzureContentSafetyInputFilterConfiginstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAzureContentSafetyInputFilterConfiginstance.voidSet the type of thisAzureContentSafetyInputFilterConfiginstance.toMap()Get the value of all properties of thisAzureContentSafetyInputFilterConfiginstance including unrecognized properties.toString()Set the type of thisAzureContentSafetyInputFilterConfiginstance and return the same instance.
-
Constructor Details
-
AzureContentSafetyInputFilterConfig
protected AzureContentSafetyInputFilterConfig()Default constructor for AzureContentSafetyInputFilterConfig.
-
-
Method Details
-
type
@Nonnull public AzureContentSafetyInputFilterConfig type(@Nonnull AzureContentSafetyInputFilterConfig.TypeEnum type) Set the type of thisAzureContentSafetyInputFilterConfiginstance and return the same instance.- Parameters:
type- Name of the filter provider type- Returns:
- The same instance of this
AzureContentSafetyInputFilterConfigclass
-
getType
Name of the filter provider type- Returns:
- type The type of this
AzureContentSafetyInputFilterConfiginstance.
-
setType
Set the type of thisAzureContentSafetyInputFilterConfiginstance.- Parameters:
type- Name of the filter provider type
-
config
@Nonnull public AzureContentSafetyInputFilterConfig config(@Nullable AzureContentSafetyInput config) Set the config of thisAzureContentSafetyInputFilterConfiginstance and return the same instance.- Parameters:
config- The config of thisAzureContentSafetyInputFilterConfig- Returns:
- The same instance of this
AzureContentSafetyInputFilterConfigclass
-
getConfig
Get config- Returns:
- config The config of this
AzureContentSafetyInputFilterConfiginstance.
-
setConfig
Set the config of thisAzureContentSafetyInputFilterConfiginstance.- Parameters:
config- The config of thisAzureContentSafetyInputFilterConfig
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAzureContentSafetyInputFilterConfig.- 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 thisAzureContentSafetyInputFilterConfiginstance.- 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 thisAzureContentSafetyInputFilterConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAzureContentSafetyInputFilterConfiginstance. 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 type-safe, fluent-api builder object to construct a newAzureContentSafetyInputFilterConfiginstance with all required arguments.
-
toMap()instead.