Class SyntheticDataSingleRequest.Builder
- Enclosing class:
SyntheticDataSingleRequest
SyntheticDataSingleRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the single-object synthetic data request.Sets the database user/schema associated with the target object.params(SyntheticDataParams params) Sets the synthetic data generation parameters.recordCount(Integer recordCount) Sets the number of records to generate for the target object.userPrompt(String userPrompt) Sets user guidance for synthetic data generation.
-
Method Details
-
ownerName
Sets the database user/schema associated with the target object.Null is sent to the database as SQL NULL. Non-null values, including blank strings, are preserved as supplied by the caller.
- Parameters:
ownerName- owner/schema name- Returns:
- this builder instance
-
recordCount
Sets the number of records to generate for the target object.The value must be greater than zero when specified. Other synthetic-data-specific semantics are validated by Oracle Database.
- Parameters:
recordCount- record count, ornullwhen not set- Returns:
- this builder instance
- Throws:
IllegalArgumentException- ifrecordCountis less than or equal to zero
-
userPrompt
Sets user guidance for synthetic data generation.Null is sent to the database as SQL NULL. Non-null values, including blank strings, are preserved as supplied by the caller.
- Parameters:
userPrompt- generation guidance- Returns:
- this builder instance
-
params
Sets the synthetic data generation parameters.The supplied
SyntheticDataParamsinstance is expected to have already applied its SDK-level validation. Database-specific validation is performed by Oracle Database when the request is executed.- Parameters:
params- synthetic data generation parameters- Returns:
- this builder instance
-
build
Builds the single-object synthetic data request.SDK-level validation is applied when the relevant values are set. Database-specific and operation-specific validation remains delegated to
DBMS_CLOUD_AIand Oracle Database.- Returns:
- immutable
SyntheticDataSingleRequestinstance
-