public class DefaultS3Properties extends Object implements S3Properties, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
DefaultS3Properties() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getAccessKey()
The s3 access key
|
Map<String,String> |
getBuckets()
The file's category and bucket mapping, the file will be stored in corresponding bucket for different category,
if the bucket is not defined for the file's category , the default bucket will be taken place.
|
String |
getBucketStyle()
The bucket style
|
com.amazonaws.ClientConfiguration |
getClientConfiguration()
Client configuration options such as proxy settings, user agent string, max retry attempts, etc.
|
String |
getDefaultBucket()
The default bucket to store the file which's bucket is not specified for category.
|
String |
getEndpoint()
The service endpoint either with or without the protocol (e.g.
|
String |
getRegion()
The region to use for SigV4 signing of requests (e.g.
|
String |
getSecretKey()
The s3 access secret
|
void |
setAccessKey(String accessKey) |
void |
setBuckets(Map<String,String> buckets) |
void |
setBucketStyle(String bucketStyle) |
void |
setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration) |
void |
setDefaultBucket(String defaultBucket) |
void |
setEndpoint(String endpoint) |
void |
setRegion(String region) |
void |
setSecretKey(String secretKey) |
public String getAccessKey()
S3PropertiesgetAccessKey in interface S3Propertiespublic void setAccessKey(String accessKey)
public String getSecretKey()
S3PropertiesgetSecretKey in interface S3Propertiespublic void setSecretKey(String secretKey)
public String getEndpoint()
S3PropertiesgetEndpoint in interface S3Propertiespublic void setEndpoint(String endpoint)
public String getRegion()
S3PropertiesgetRegion in interface S3Propertiespublic void setRegion(String region)
public String getBucketStyle()
S3Propertieshost for virtual-host as default
path for sub path
getBucketStyle in interface S3Propertiespublic void setBucketStyle(String bucketStyle)
public String getDefaultBucket()
S3PropertiesgetDefaultBucket in interface S3Propertiespublic void setDefaultBucket(String defaultBucket)
public Map<String,String> getBuckets()
S3PropertiesgetBuckets in interface S3Propertiespublic com.amazonaws.ClientConfiguration getClientConfiguration()
S3PropertiesgetClientConfiguration in interface S3Propertiespublic void setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration)
Copyright © 2019. All rights reserved.