public abstract class ClientBuilder<T extends com.amazonaws.AmazonWebServiceClient> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
accessKey |
protected static int |
AWS_CLIENT_MAX_ERROR_RETRY |
protected com.amazonaws.client.builder.AwsAsyncClientBuilder |
awsAsyncClientBuilder |
protected com.amazonaws.client.builder.AwsSyncClientBuilder |
awsSyncClientBuilder |
protected com.amazonaws.ClientConfiguration |
clientConfig |
protected String |
connectionId |
protected com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration |
endpointConfiguration |
protected String |
roleARN |
protected String |
secretKey |
protected String |
sessionToken |
protected boolean |
tryDefaultAWSCredentialsProviderChain |
Constructor and Description |
---|
ClientBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
buildAsyncClient(String region) |
T |
buildClient(String region) |
abstract void |
connect() |
protected com.amazonaws.ClientConfiguration |
createClientConfiguration()
Creates the configuration for the AWSClient
|
protected void |
customSetupClientBuilder() |
abstract void |
disconnect() |
String |
getAccessKey() |
T |
getAsyncClient() |
protected abstract com.amazonaws.client.builder.AwsAsyncClientBuilder |
getAsyncClientBuilder() |
com.amazonaws.ClientConfiguration |
getClientConfiguration() |
String |
getConfigRegion() |
String |
getConnectionId() |
Integer |
getConnectionTimeout() |
protected abstract String |
getDefaultRegion() |
com.amazonaws.Protocol |
getProtocol() |
String |
getProxyDomain() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUsername() |
String |
getProxyWorkstation() |
String |
getRoleARN() |
String |
getSecretKey() |
String |
getSessionToken() |
Integer |
getSocketTimeout() |
T |
getSyncClient() |
protected abstract com.amazonaws.client.builder.AwsSyncClientBuilder |
getSyncClientBuilder() |
void |
instantiateClient(String region) |
boolean |
isTryDefaultAWSCredentialsProviderChain() |
void |
setAccessKey(String accessKey) |
void |
setAsyncClient(T asyncClient) |
void |
setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration) |
void |
setConfigRegion(String configRegion) |
void |
setConnectionTimeout(Integer connectionTimeout) |
protected abstract void |
setCustomClientConfiguration()
Sets the custom configuration fields for every different AWSClient
|
void |
setDefaultRegion(String defaultRegion) |
void |
setProtocol(com.amazonaws.Protocol protocol) |
void |
setProxyDomain(String proxyDomain) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(Integer proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setProxyWorkstation(String proxyWorkstation) |
void |
setRoleARN(String roleARN) |
void |
setSecretKey(String secretKey) |
void |
setSessionToken(String sessionToken) |
void |
setSocketTimeout(Integer socketTimeout) |
void |
setSyncClient(T syncClient) |
void |
setTryDefaultAWSCredentialsProviderChain(boolean tryDefaultAWSCredentialsProviderChain) |
void |
setupClientBuilder() |
abstract void |
testConnect() |
protected static final int AWS_CLIENT_MAX_ERROR_RETRY
protected com.amazonaws.client.builder.AwsSyncClientBuilder awsSyncClientBuilder
protected com.amazonaws.client.builder.AwsAsyncClientBuilder awsAsyncClientBuilder
protected com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration endpointConfiguration
protected String accessKey
protected String secretKey
protected String roleARN
protected String sessionToken
protected boolean tryDefaultAWSCredentialsProviderChain
protected String connectionId
protected com.amazonaws.ClientConfiguration clientConfig
public String getConnectionId()
public void setSyncClient(T syncClient)
public void setAsyncClient(T asyncClient)
public T getSyncClient()
public T getAsyncClient()
public void setupClientBuilder()
protected void customSetupClientBuilder()
public void instantiateClient(String region)
public String getAccessKey()
public void setAccessKey(String accessKey)
public String getSecretKey()
public void setSecretKey(String secretKey)
public String getRoleARN()
public void setRoleARN(String roleARN)
public String getSessionToken()
public void setSessionToken(String sessionToken)
public boolean isTryDefaultAWSCredentialsProviderChain()
public void setTryDefaultAWSCredentialsProviderChain(boolean tryDefaultAWSCredentialsProviderChain)
public com.amazonaws.ClientConfiguration getClientConfiguration()
public void setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration)
protected abstract String getDefaultRegion()
public void setDefaultRegion(String defaultRegion)
public String getConfigRegion()
public void setConfigRegion(String configRegion)
protected abstract com.amazonaws.client.builder.AwsSyncClientBuilder getSyncClientBuilder()
protected abstract com.amazonaws.client.builder.AwsAsyncClientBuilder getAsyncClientBuilder()
public abstract void connect() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public abstract void testConnect() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public abstract void disconnect()
protected com.amazonaws.ClientConfiguration createClientConfiguration()
protected abstract void setCustomClientConfiguration()
public com.amazonaws.Protocol getProtocol()
public void setProtocol(com.amazonaws.Protocol protocol)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public String getProxyDomain()
public void setProxyDomain(String proxyDomain)
public String getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
public Integer getSocketTimeout()
public void setSocketTimeout(Integer socketTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
Copyright © 2010–2019. All rights reserved.