title: Amazon aws sdk AmazonEC2clientBuilder error
body: <p>i am trying to develop an amazon EC2 Client using java in Eclipse. While reading the official documentation for setting up the region for my client(to launch instances programatically later) it is mentioned to use AmazonEC2ClientBuilder, but I am having difficulty in understanding its usage. Can anybody help me?</p>
  
  <p>Source Code:
  AmazonEC2 client=AmazonEC2ClientBuilder.standard().withCredentials(credentials).build();
          client.AmazonEC2ClientBuilder.standard().setRegion("US-WEST2");</p>
  
  <p>The first 2 Lines works Fine but Last one Doesn't. When I try to use set region function of AmazonEC2 ,there is a prompt that it is deprecated.</p>
  
  <p>SDK:<a href="http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/ec2/AmazonEC2Client.html#builder--" rel="nofollow noreferrer">http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/ec2/AmazonEC2Client.html#builder--</a></p>