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 String |
connectionId |
protected String |
roleARN |
protected String |
secretKey |
protected String |
sessionToken |
protected boolean |
tryDefaultAWSCredentialsProviderChain |
Constructor and Description |
---|
ClientBuilder() |
protected static final int AWS_CLIENT_MAX_ERROR_RETRY
protected com.amazonaws.client.builder.AwsSyncClientBuilder awsSyncClientBuilder
protected com.amazonaws.client.builder.AwsAsyncClientBuilder awsAsyncClientBuilder
protected String accessKey
protected String secretKey
protected String roleARN
protected String sessionToken
protected boolean tryDefaultAWSCredentialsProviderChain
protected String connectionId
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(CommonRegion region)
public T buildClient(CommonRegion regionEndpoint)
public T buildAsyncClient(CommonRegion regionEndpoint)
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)
protected abstract CommonRegion getDefaultRegion()
public void setDefaultRegion(CommonRegion defaultRegion)
public CommonRegion getConfigRegion()
public void setConfigRegion(CommonRegion 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 abstract void setCustomClientConfiguration(com.amazonaws.ClientConfiguration clientConfig)
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–2020. All rights reserved.