Class DdbConfiguration
- java.lang.Object
-
- org.apache.camel.component.aws.ddb.DdbConfiguration
-
-
Constructor Summary
Constructors Constructor Description DdbConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DdbConfiguration
copy()
String
getAccessKey()
com.amazonaws.services.dynamodbv2.AmazonDynamoDB
getAmazonDDBClient()
String
getKeyAttributeName()
String
getKeyAttributeType()
DdbOperations
getOperation()
String
getProxyHost()
Integer
getProxyPort()
com.amazonaws.Protocol
getProxyProtocol()
Long
getReadCapacity()
String
getRegion()
String
getSecretKey()
String
getTableName()
Long
getWriteCapacity()
boolean
isAutoDiscoverClient()
boolean
isConsistentRead()
void
setAccessKey(String accessKey)
Amazon AWS Access Keyvoid
setAmazonDDBClient(com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDDBClient)
To use the AmazonDynamoDB as the clientvoid
setAutoDiscoverClient(boolean autoDiscoverClient)
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.void
setConsistentRead(boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read.void
setKeyAttributeName(String keyAttributeName)
Attribute name when creating tablevoid
setKeyAttributeType(String keyAttributeType)
Attribute type when creating tablevoid
setOperation(DdbOperations operation)
What operation to performvoid
setProxyHost(String proxyHost)
To define a proxy host when instantiating the DDB clientvoid
setProxyPort(Integer proxyPort)
To define a proxy port when instantiating the DDB client.void
setProxyProtocol(com.amazonaws.Protocol proxyProtocol)
To define a proxy protocol when instantiating the DDB clientvoid
setReadCapacity(Long readCapacity)
The provisioned throughput to reserve for reading resources from your tablevoid
setRegion(String region)
The region in which DDB client needs to workvoid
setSecretKey(String secretKey)
Amazon AWS Secret Keyvoid
setTableName(String tableName)
The name of the table currently worked with.void
setWriteCapacity(Long writeCapacity)
The provisioned throughput to reserved for writing resources to your table
-
-
-
Method Detail
-
getAccessKey
public String getAccessKey()
-
setAccessKey
public void setAccessKey(String accessKey)
Amazon AWS Access Key
-
getSecretKey
public String getSecretKey()
-
setSecretKey
public void setSecretKey(String secretKey)
Amazon AWS Secret Key
-
getAmazonDDBClient
public com.amazonaws.services.dynamodbv2.AmazonDynamoDB getAmazonDDBClient()
-
setAmazonDDBClient
public void setAmazonDDBClient(com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDDBClient)
To use the AmazonDynamoDB as the client
-
getTableName
public String getTableName()
-
setTableName
public void setTableName(String tableName)
The name of the table currently worked with.
-
getOperation
public DdbOperations getOperation()
-
setOperation
public void setOperation(DdbOperations operation)
What operation to perform
-
isConsistentRead
public boolean isConsistentRead()
-
setConsistentRead
public void setConsistentRead(boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read.
-
getReadCapacity
public Long getReadCapacity()
-
setReadCapacity
public void setReadCapacity(Long readCapacity)
The provisioned throughput to reserve for reading resources from your table
-
getWriteCapacity
public Long getWriteCapacity()
-
setWriteCapacity
public void setWriteCapacity(Long writeCapacity)
The provisioned throughput to reserved for writing resources to your table
-
getKeyAttributeName
public String getKeyAttributeName()
-
setKeyAttributeName
public void setKeyAttributeName(String keyAttributeName)
Attribute name when creating table
-
getKeyAttributeType
public String getKeyAttributeType()
-
setKeyAttributeType
public void setKeyAttributeType(String keyAttributeType)
Attribute type when creating table
-
getProxyProtocol
public com.amazonaws.Protocol getProxyProtocol()
-
setProxyProtocol
public void setProxyProtocol(com.amazonaws.Protocol proxyProtocol)
To define a proxy protocol when instantiating the DDB client
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
To define a proxy host when instantiating the DDB client
-
getProxyPort
public Integer getProxyPort()
-
setProxyPort
public void setProxyPort(Integer proxyPort)
To define a proxy port when instantiating the DDB client. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name()
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
The region in which DDB client needs to work
-
isAutoDiscoverClient
public boolean isAutoDiscoverClient()
-
setAutoDiscoverClient
public void setAutoDiscoverClient(boolean autoDiscoverClient)
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.
-
copy
public DdbConfiguration copy()
-
-