Class SyntheticDataSingleRequest.Builder

java.lang.Object
com.oracle.database.selectai.model.SyntheticDataSingleRequest.Builder
Enclosing class:
SyntheticDataSingleRequest

public static final class SyntheticDataSingleRequest.Builder extends Object
  • 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, or null when not set
      Returns:
      this builder instance
      Throws:
      IllegalArgumentException - if recordCount is 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 SyntheticDataParams instance 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_AI and Oracle Database.

      Returns:
      immutable SyntheticDataSingleRequest instance