Class S3Profile
java.lang.Object
org.craftercms.commons.config.profiles.ConfigurationProfile
org.craftercms.commons.config.profiles.aws.AbstractAwsProfile
org.craftercms.commons.config.profiles.aws.S3Profile
Holds the information to connect to AWS S3.
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of the bucket.protected booleanIndicates if path style access should be used for all requestprotected StringOptional prefix to prepend to all keysFields inherited from class org.craftercms.commons.config.profiles.aws.AbstractAwsProfile
accessKey, endpoint, region, secretKeyFields inherited from class org.craftercms.commons.config.profiles.ConfigurationProfile
profileId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanvoidsetBucketName(String bucketName) voidsetPathStyleAccessEnabled(boolean pathStyleAccessEnabled) voidtoString()Methods inherited from class org.craftercms.commons.config.profiles.aws.AbstractAwsProfile
getAccessKey, getCredentialsProvider, getEndpoint, getRegion, getSecretKey, setAccessKey, setEndpoint, setRegion, setSecretKeyMethods inherited from class org.craftercms.commons.config.profiles.ConfigurationProfile
getProfileId, setProfileId
-
Field Details
-
bucketName
Name of the bucket. -
prefix
Optional prefix to prepend to all keys -
pathStyleAccessEnabled
protected boolean pathStyleAccessEnabledIndicates if path style access should be used for all request
-
-
Constructor Details
-
S3Profile
public S3Profile()
-
-
Method Details
-
getBucketName
-
setBucketName
-
getPrefix
-
setPrefix
-
isPathStyleAccessEnabled
public boolean isPathStyleAccessEnabled() -
setPathStyleAccessEnabled
public void setPathStyleAccessEnabled(boolean pathStyleAccessEnabled) -
equals
- Overrides:
equalsin classAbstractAwsProfile
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAwsProfile
-
toString
-