List of usage examples for com.amazonaws.services.elastictranscoder AmazonElasticTranscoder setRegion
@Deprecated
void setRegion(Region region);
From source file:org.alanwilliamson.amazon.AmazonBase.java
License:Open Source License
/** * Returns back the necessary AmazonElasticTranscoder class for interacting with Elastic Transcoder * @param amazonKey/*from www .j a va2 s .com*/ * @return * @throws cfmRunTimeException */ public AmazonElasticTranscoder getAmazonElasticTranscoder(AmazonKey amazonKey) throws cfmRunTimeException { BasicAWSCredentials awsCreds = new BasicAWSCredentials(amazonKey.getKey(), amazonKey.getSecret()); AmazonElasticTranscoder et = new AmazonElasticTranscoderClient(awsCreds); et.setRegion(amazonKey.getAmazonRegion().toAWSRegion()); return et; }