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