List of usage examples for com.amazonaws.services.s3 S3ClientOptions withPathStyleAccess
@Deprecated public S3ClientOptions withPathStyleAccess(boolean pathStyleAccess)
From source file:org.gradle.internal.resource.transport.aws.s3.S3Client.java
License:Apache License
private AmazonS3Client createAmazonS3Client(AWSCredentials credentials) { AmazonS3Client amazonS3Client = new AmazonS3Client(credentials, createConnectionProperties()); S3ClientOptions clientOptions = new S3ClientOptions(); Optional<URI> endpoint = s3ConnectionProperties.getEndpoint(); if (endpoint.isPresent()) { amazonS3Client.setEndpoint(endpoint.get().toString()); clientOptions.withPathStyleAccess(true); }//from w ww . j a v a 2 s. c o m amazonS3Client.setS3ClientOptions(clientOptions); return amazonS3Client; }