1val cred = ...
2val endpoint = "https://google.com" //whatever url you use
3val client = AmazonS3ClientBuilder
4 .standard()
5 .withCredentials(cred)
6 .withPathStyleAccessEnabled(true)
7 .withEndpointConfiguration(
8 new EndpointConfiguration(
9 endpoint,
10 AwsHostNameUtils.parseRegion(endpoint, AmazonS3Client.S3_SERVICE_NAME)
11 )
12 )
13 .build()