Class S3Source.Builder

java.lang.Object
ai.docling.serve.api.convert.request.source.S3Source.Builder
Enclosing class:
S3Source

public static class S3Source.Builder extends Object
  • Method Details

    • endpoint

      public @NonNull S3Source.Builder endpoint(@NonNull @NonNull String endpoint)
      S3 service endpoint, without protocol.
      Parameters:
      endpoint - S3 service endpoint, without protocol.
      Returns:
      this.
    • accessKey

      public @NonNull S3Source.Builder accessKey(@NonNull @NonNull String accessKey)
      S3 access key
      Parameters:
      accessKey - S3 access key
      Returns:
      this.
    • secretKey

      public @NonNull S3Source.Builder secretKey(@NonNull @NonNull String secretKey)
      S3 secret key
      Parameters:
      secretKey - S3 secret key
      Returns:
      this.
    • bucket

      public @NonNull S3Source.Builder bucket(@NonNull @NonNull String bucket)
      S3 bucket name
      Parameters:
      bucket - S3 bucket name
      Returns:
      this.
    • keyPrefix

      public @NonNull S3Source.Builder keyPrefix(String keyPrefix)
      Prefix for the object keys on s3
      Parameters:
      keyPrefix - Prefix for the object keys on s3
      Returns:
      this.
    • verifySsl

      public @NonNull S3Source.Builder verifySsl(boolean verifySsl)
      If enabled, SSL will be used to connect to s3. Defaults to true.
      Parameters:
      verifySsl - If enabled, SSL will be used to connect to s3. Defaults to true.
      Returns:
      this.
    • maxNumElements

      public @NonNull S3Source.Builder maxNumElements(@Nullable Integer maxNumElements)
      Maximum number of elements to read from S3. When set, limits the number of objects processed. Useful for batch conversions where the S3 source may contain a large number of objects.
      Parameters:
      maxNumElements - Maximum number of elements to read from S3.
      Returns:
      this.
    • build

      public @NonNull S3Source build()
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object