List of usage examples for com.amazonaws.services.simpleemail AmazonSimpleEmailServiceAsync setEndpoint
@Deprecated
void setEndpoint(String endpoint);
From source file:com.aipo.aws.ses.SES.java
License:Open Source License
public static AmazonSimpleEmailServiceAsync getAsyncClient() { AWSContext awsContext = AWSContext.get(); if (awsContext == null) { throw new IllegalStateException("AWSContext is not initialized."); }/* w ww . j a v a 2s .co m*/ AmazonSimpleEmailServiceAsync client = new AmazonSimpleEmailServiceAsyncClient( awsContext.getAwsCredentials()); String endpoint = awsContext.getSesEndpoint(); if (endpoint != null && endpoint != "") { client.setEndpoint(endpoint); } return client; }