Example usage for com.amazonaws.client.builder AwsClientBuilder withRegion

List of usage examples for com.amazonaws.client.builder AwsClientBuilder withRegion

Introduction

In this page you can find the example usage for com.amazonaws.client.builder AwsClientBuilder withRegion.

Prototype

private Subclass withRegion(Region region) 

Source Link

Document

Sets the region to be used by the client.

Usage

From source file:org.lendingclub.mercator.aws.AWSScannerBuilder.java

License:Apache License

public AwsClientBuilder configure(AwsClientBuilder b) {

    b = b.withRegion(Regions.fromName(region.getName())).withCredentials(getCredentialsProvider());
    if (clientConfiguration != null) {
        b = b.withClientConfiguration(clientConfiguration);
    }/*from  w  ww  .  j a v  a2s.c  om*/
    return b;
}