Class ContentModerationConfig.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeai.model.ContentModerationConfig.Builder
-
- Enclosing class:
- ContentModerationConfig
public static class ContentModerationConfig.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentModerationConfigbuild()ContentModerationConfig.Buildercopy(ContentModerationConfig model)ContentModerationConfig.BuilderisEnabled(Boolean isEnabled)Whether to enable the content moderation feature.ContentModerationConfig.Buildermode(ContentModerationConfig.Mode mode)Enum for the modes of operation for inference protection.ContentModerationConfig.BuildermodelId(String modelId)The OCID of the model used for the feature.
-
-
-
Method Detail
-
mode
public ContentModerationConfig.Builder mode(ContentModerationConfig.Mode mode)
Enum for the modes of operation for inference protection.- Parameters:
mode- the value to set- Returns:
- this builder
-
modelId
public ContentModerationConfig.Builder modelId(String modelId)
The OCID of the model used for the feature.- Parameters:
modelId- the value to set- Returns:
- this builder
-
isEnabled
public ContentModerationConfig.Builder isEnabled(Boolean isEnabled)
Whether to enable the content moderation feature.- Parameters:
isEnabled- the value to set- Returns:
- this builder
-
build
public ContentModerationConfig build()
-
copy
public ContentModerationConfig.Builder copy(ContentModerationConfig model)
-
-