title: How to set base url in Java AWS SDK?
body: <p>I am using java aws sdk version <code>1.11.30</code> in my project. I need to add support for regions that aren't available in the SDK.</p>
  
  <p>Related to that I found this in my search <a href="https://aws.amazon.com/blogs/developer/using-new-regions-and-endpoints/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/developer/using-new-regions-and-endpoints/</a></p>
  
  <p>However, I'm not sure how to do that in Java SDK. </p>
  
  <p>I currently get the s3 instance like below:</p>
  
  <pre><code>AmazonS3 s3 = AmazonS3ClientBuilder.standard()
         .withRegion(regionName) //regionName is a string for a region not supported by the SDK yet
         .withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials(aKeyUpload, sKeyUpload)))
          .build()
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>How can I set the base url similar to how it is mentioned in the link above?</p>