public class S3ClientOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
S3ClientOptions.Builder |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ACCELERATE_MODE_ENABLED
S3 accelerate is by default not enabled
|
static boolean |
DEFAULT_PATH_STYLE_ACCESS
The default setting for use of path-style access
|
| Constructor and Description |
|---|
S3ClientOptions()
Deprecated.
Use
builder() to build new
S3ClientOptions instead. |
S3ClientOptions(S3ClientOptions other)
Deprecated.
Will be removed once S3ClientOptions is made an immutable
class.
|
| Modifier and Type | Method and Description |
|---|---|
static S3ClientOptions.Builder |
builder() |
boolean |
isAccelerateModeEnabled()
Returns whether the client has enabled accelerate mode for getting and
putting objects.
|
boolean |
isPathStyleAccess()
Returns whether the client uses path-style access for all requests.
|
void |
setPathStyleAccess(boolean pathStyleAccess)
Deprecated.
|
S3ClientOptions |
withPathStyleAccess(boolean pathStyleAccess)
Deprecated.
|
public static final boolean DEFAULT_PATH_STYLE_ACCESS
public static final boolean DEFAULT_ACCELERATE_MODE_ENABLED
@Deprecated public S3ClientOptions()
builder() to build new
S3ClientOptions instead.@Deprecated public S3ClientOptions(S3ClientOptions other)
public static S3ClientOptions.Builder builder()
public boolean isPathStyleAccess()
Returns whether the client uses 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.
public boolean isAccelerateModeEnabled()
Returns whether the client has enabled accelerate mode for getting and putting objects.
The default behavior is to disable accelerate mode for any operations
(GET, PUT, DELETE). You need to call
AmazonS3Client.setBucketAccelerateConfiguration(com.amazonaws.services.s3.model.SetBucketAccelerateConfigurationRequest)
first to use this feature.
@Deprecated public void 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.@Deprecated public S3ClientOptions withPathStyleAccess(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.Copyright © 2016. All rights reserved.