List of usage examples for com.amazonaws.services.route53 AmazonRoute53Client setRegion
@Deprecated public void setRegion(Region region) throws IllegalArgumentException
From source file:com.netflix.bluespar.amazon.security.AmazonClientProvider.java
License:Apache License
public AmazonRoute53 getAmazonRoute53(AmazonCredentials credentials, String region) { AmazonRoute53Client amazonRoute53 = new AmazonRoute53Client(credentials.getCredentials()); if (region != null && region.length() > 0) { amazonRoute53.setRegion(Region.getRegion(Regions.fromName(region))); }//from w w w . j av a 2 s. c o m return amazonRoute53; }