@Test void getObject_withRegionProvider_returnsClientWithRegionReturnedByProvider() throws Exception { AmazonWebserviceClientFactoryBean<AmazonTestWebserviceClient> factoryBean = new AmazonWebserviceClientFactoryBean<>( AmazonTestWebserviceClient.class, new AWSStaticCredentialsProvider(new BasicAWSCredentials("aaa", "bbb"))); factoryBean.setRegionProvider(new StaticRegionProvider("eu-west-1")); factoryBean.afterPropertiesSet(); AmazonTestWebserviceClient webserviceClient = factoryBean.getObject(); assertThat(webserviceClient.getRegion().getName()).isEqualTo("eu-west-1"); }
public void setRegionProvider(RegionProvider regionProvider) { this.regionProvider = regionProvider; }
AmazonWebserviceClientFactoryBean extends AbstractFactoryBean<T> { public void setRegionProvider(RegionProvider regionProvider) { this.regionProvider = regionProvider; } }
AmazonWebserviceClientFactoryBean extends AbstractFactoryBean<T> { public void setRegionProvider(RegionProvider regionProvider) { this.regionProvider = regionProvider; } AmazonWebserviceClientFactoryBean(Class<T> clientClass,
			AWSCredentialsProvider credentialsProvider);  AmazonWebserviceClientFactoryBean(Class<T> clientClass,
			AWSCredentialsProvider credentialsProvider, RegionProvider regionProvider); }
AmazonWebserviceClientFactoryBean extends AbstractFactoryBean<T> { public void setRegionProvider(RegionProvider regionProvider) { this.regionProvider = regionProvider; } AmazonWebserviceClientFactoryBean(Class<T> clientClass,
			AWSCredentialsProvider credentialsProvider);  AmazonWebserviceClientFactoryBean(Class<T> clientClass,
			AWSCredentialsProvider credentialsProvider, RegionProvider regionProvider); @Override Class<?> getObjectType(); void setRegionProvider(RegionProvider regionProvider); void setCustomRegion(String customRegionName); void setExecutor(ExecutorService executor); }
AmazonWebserviceClientFactoryBean extends AbstractFactoryBean<T> { public void setRegionProvider(RegionProvider regionProvider) { this.regionProvider = regionProvider; } AmazonWebserviceClientFactoryBean(Class<T> clientClass,
			AWSCredentialsProvider credentialsProvider);  AmazonWebserviceClientFactoryBean(Class<T> clientClass,
			AWSCredentialsProvider credentialsProvider, RegionProvider regionProvider); @Override Class<?> getObjectType(); void setRegionProvider(RegionProvider regionProvider); void setCustomRegion(String customRegionName); void setExecutor(ExecutorService executor);  }