Class AmazonS3DocumentLoader.Builder
java.lang.Object
dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
- Enclosing class:
AmazonS3DocumentLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawsCredentials
(AwsCredentials awsCredentials) Set the AWS credentials.build()
endpointUrl
(String endpointUrl) Specifies a custom endpoint URL to override the default service URL.forcePathStyle
(boolean forcePathStyle) Set the forcePathStyle.Set the profile defined in AWS credentials.Set the AWS region.region
(software.amazon.awssdk.regions.Region region) Set the AWS region.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Set the AWS region. Defaults to US_EAST_1- Parameters:
region
- The AWS region.- Returns:
- The builder instance.
-
region
Set the AWS region. Defaults to US_EAST_1- Parameters:
region
- The AWS region.- Returns:
- The builder instance.
-
endpointUrl
Specifies a custom endpoint URL to override the default service URL.- Parameters:
endpointUrl
- The endpoint URL.- Returns:
- The builder instance.
-
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
Set the forcePathStyle. When enabled, it will use the path-style URL- Parameters:
forcePathStyle
- The forcePathStyle.- Returns:
- The builder instance.
-
awsCredentials
Set the AWS credentials. If not set, it will use the default credentials.- Parameters:
awsCredentials
- The AWS credentials.- Returns:
- The builder instance.
-
build
-