Class AzureContentSafetyOutput
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.AzureContentSafetyOutput
Filter configuration for Azure Content Safety
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AzureContentSafetyOutput. -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureContentSafetyOutputcreate()Create a newAzureContentSafetyOutputinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAzureContentSafetyOutput.getHate()Get hateGet selfHarmGet sexualGet violenceinthashCode()hate(AzureThreshold hate) Set the hate of thisAzureContentSafetyOutputinstance and return the same instance.Detect protected code content from known GitHub repositories.protectedMaterialCode(Boolean protectedMaterialCode) Set the protectedMaterialCode of thisAzureContentSafetyOutputinstance and return the same instance.selfHarm(AzureThreshold selfHarm) Set the selfHarm of thisAzureContentSafetyOutputinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAzureContentSafetyOutputinstance.voidsetHate(AzureThreshold hate) Set the hate of thisAzureContentSafetyOutputinstance.voidsetProtectedMaterialCode(Boolean protectedMaterialCode) Set the protectedMaterialCode of thisAzureContentSafetyOutputinstance.voidsetSelfHarm(AzureThreshold selfHarm) Set the selfHarm of thisAzureContentSafetyOutputinstance.voidsetSexual(AzureThreshold sexual) Set the sexual of thisAzureContentSafetyOutputinstance.voidsetViolence(AzureThreshold violence) Set the violence of thisAzureContentSafetyOutputinstance.sexual(AzureThreshold sexual) Set the sexual of thisAzureContentSafetyOutputinstance and return the same instance.toMap()Get the value of all properties of thisAzureContentSafetyOutputinstance including unrecognized properties.toString()violence(AzureThreshold violence) Set the violence of thisAzureContentSafetyOutputinstance and return the same instance.
-
Constructor Details
-
AzureContentSafetyOutput
protected AzureContentSafetyOutput()Default constructor for AzureContentSafetyOutput.
-
-
Method Details
-
hate
Set the hate of thisAzureContentSafetyOutputinstance and return the same instance.- Parameters:
hate- The hate of thisAzureContentSafetyOutput- Returns:
- The same instance of this
AzureContentSafetyOutputclass
-
getHate
Get hate- Returns:
- hate The hate of this
AzureContentSafetyOutputinstance.
-
setHate
Set the hate of thisAzureContentSafetyOutputinstance.- Parameters:
hate- The hate of thisAzureContentSafetyOutput
-
selfHarm
Set the selfHarm of thisAzureContentSafetyOutputinstance and return the same instance.- Parameters:
selfHarm- The selfHarm of thisAzureContentSafetyOutput- Returns:
- The same instance of this
AzureContentSafetyOutputclass
-
getSelfHarm
Get selfHarm- Returns:
- selfHarm The selfHarm of this
AzureContentSafetyOutputinstance.
-
setSelfHarm
Set the selfHarm of thisAzureContentSafetyOutputinstance.- Parameters:
selfHarm- The selfHarm of thisAzureContentSafetyOutput
-
sexual
Set the sexual of thisAzureContentSafetyOutputinstance and return the same instance.- Parameters:
sexual- The sexual of thisAzureContentSafetyOutput- Returns:
- The same instance of this
AzureContentSafetyOutputclass
-
getSexual
Get sexual- Returns:
- sexual The sexual of this
AzureContentSafetyOutputinstance.
-
setSexual
Set the sexual of thisAzureContentSafetyOutputinstance.- Parameters:
sexual- The sexual of thisAzureContentSafetyOutput
-
violence
Set the violence of thisAzureContentSafetyOutputinstance and return the same instance.- Parameters:
violence- The violence of thisAzureContentSafetyOutput- Returns:
- The same instance of this
AzureContentSafetyOutputclass
-
getViolence
Get violence- Returns:
- violence The violence of this
AzureContentSafetyOutputinstance.
-
setViolence
Set the violence of thisAzureContentSafetyOutputinstance.- Parameters:
violence- The violence of thisAzureContentSafetyOutput
-
protectedMaterialCode
@Nonnull public AzureContentSafetyOutput protectedMaterialCode(@Nullable Boolean protectedMaterialCode) Set the protectedMaterialCode of thisAzureContentSafetyOutputinstance and return the same instance.- Parameters:
protectedMaterialCode- Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.- Returns:
- The same instance of this
AzureContentSafetyOutputclass
-
isProtectedMaterialCode
Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.- Returns:
- protectedMaterialCode The protectedMaterialCode of this
AzureContentSafetyOutputinstance.
-
setProtectedMaterialCode
Set the protectedMaterialCode of thisAzureContentSafetyOutputinstance.- Parameters:
protectedMaterialCode- Detect protected code content from known GitHub repositories. The scan includes software libraries, source code, algorithms, and other proprietary programming content.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAzureContentSafetyOutput.- 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 thisAzureContentSafetyOutputinstance.- 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 thisAzureContentSafetyOutputinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAzureContentSafetyOutputinstance. 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 newAzureContentSafetyOutputinstance. No arguments are required.
-
toMap()instead.