public static final class S3CrtAsyncHttpClient.Builder extends Object implements SdkAsyncHttpClient.Builder<S3CrtAsyncHttpClient.Builder>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SdkAsyncHttpClient |
build() |
SdkAsyncHttpClient |
buildWithDefaults(AttributeMap serviceDefaults) |
S3CrtAsyncHttpClient.Builder |
credentialsProvider(AwsCredentialsProvider credentialsProvider)
Configure the credentials that should be used to authenticate with S3.
|
S3CrtAsyncHttpClient.Builder |
endpointOverride(URI endpointOverride)
Configure the endpoint override with which the SDK should communicate.
|
S3CrtAsyncHttpClient.Builder |
maxConcurrency(Integer maxConcurrency)
Specifies the maximum number of S3 connections that should be established during
a transfer.
|
S3CrtAsyncHttpClient.Builder |
minimumPartSizeInBytes(Long partSizeBytes)
Sets the minimum part size for transfer parts.
|
S3CrtAsyncHttpClient.Builder |
region(Region region)
Configure the region with which the SDK should communicate.
|
S3CrtAsyncHttpClient.Builder |
targetThroughputInGbps(Double targetThroughputInGbps)
The target throughput for transfer requests.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyMutation
public S3CrtAsyncHttpClient.Builder credentialsProvider(AwsCredentialsProvider credentialsProvider)
public S3CrtAsyncHttpClient.Builder region(Region region)
public S3CrtAsyncHttpClient.Builder minimumPartSizeInBytes(Long partSizeBytes)
public S3CrtAsyncHttpClient.Builder targetThroughputInGbps(Double targetThroughputInGbps)
maxConcurrency
.public S3CrtAsyncHttpClient.Builder maxConcurrency(Integer maxConcurrency)
If not provided, the TransferManager will calculate the optional number of connections
based on targetThroughputInGbps
. If the value is too low, the S3TransferManager
might not achieve the specified target throughput.
maxConcurrency
- the max number of concurrent requeststargetThroughputInGbps(Double)
public S3CrtAsyncHttpClient.Builder endpointOverride(URI endpointOverride)
public SdkAsyncHttpClient build()
build
in interface SdkAsyncHttpClient.Builder<S3CrtAsyncHttpClient.Builder>
build
in interface Buildable
build
in interface SdkBuilder<S3CrtAsyncHttpClient.Builder,SdkAsyncHttpClient>
public SdkAsyncHttpClient buildWithDefaults(AttributeMap serviceDefaults)
buildWithDefaults
in interface SdkAsyncHttpClient.Builder<S3CrtAsyncHttpClient.Builder>
Copyright © 2022. All rights reserved.