Class AmazonS3DocumentLoader.Builder

java.lang.Object
dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
Enclosing class:
AmazonS3DocumentLoader

public static class AmazonS3DocumentLoader.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • region

      public AmazonS3DocumentLoader.Builder region(String region)
      Set the AWS region. Defaults to US_EAST_1
      Parameters:
      region - The AWS region.
      Returns:
      The builder instance.
    • region

      public AmazonS3DocumentLoader.Builder region(software.amazon.awssdk.regions.Region region)
      Set the AWS region. Defaults to US_EAST_1
      Parameters:
      region - The AWS region.
      Returns:
      The builder instance.
    • endpointUrl

      public AmazonS3DocumentLoader.Builder endpointUrl(String endpointUrl)
      Specifies a custom endpoint URL to override the default service URL.
      Parameters:
      endpointUrl - The endpoint URL.
      Returns:
      The builder instance.
    • profile

      public AmazonS3DocumentLoader.Builder profile(String profile)
      Set the profile defined in AWS credentials. If not set, it will use the default profile.
      Parameters:
      profile - The profile defined in AWS credentials.
      Returns:
      The builder instance.
    • forcePathStyle

      public AmazonS3DocumentLoader.Builder forcePathStyle(boolean forcePathStyle)
      Set the forcePathStyle. When enabled, it will use the path-style URL
      Parameters:
      forcePathStyle - The forcePathStyle.
      Returns:
      The builder instance.
    • awsCredentials

      public AmazonS3DocumentLoader.Builder awsCredentials(AwsCredentials awsCredentials)
      Set the AWS credentials. If not set, it will use the default credentials.
      Parameters:
      awsCredentials - The AWS credentials.
      Returns:
      The builder instance.
    • build

      public AmazonS3DocumentLoader build()