public static class S3ClientOptions.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
S3ClientOptions |
build() |
S3ClientOptions.Builder |
setAccelerateModeEnabled(boolean accelerateModeEnabled)
Configures the client to use S3 accelerate endpoint for all requests.
|
S3ClientOptions.Builder |
setPathStyleAccess(boolean pathStyleAccess)
Configures the client to use path-style access for all requests.
|
public S3ClientOptions build()
public S3ClientOptions.Builder setPathStyleAccess(boolean pathStyleAccess)
Configures the client to use path-style access for all requests.
Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket.
The default behaviour is to detect which access style to use based on the configured endpoint (an IP will result in path-style access) and the bucket being accessed (some buckets are not valid DNS names). Setting this flag will result in path-style access being used for all requests.
pathStyleAccess - True to always use path-style access.public S3ClientOptions.Builder setAccelerateModeEnabled(boolean accelerateModeEnabled)
Configures the client to use S3 accelerate endpoint for all requests.
A bucket by default cannot be accessed in accelerate mode. If you wish to do so, you need to enable the accelerate configuration for the bucket in advance.
AmazonS3#setBucketAccelerateConfiguration(com.amazonaws.services.s3.model.SetBucketAccelerateConfigurationRequest)}Copyright © 2016. All rights reserved.