Class Ddb2Configuration
- java.lang.Object
-
- org.apache.camel.component.aws2.ddb.Ddb2Configuration
-
-
Constructor Summary
Constructors Constructor Description Ddb2Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ddb2Configuration
copy()
String
getAccessKey()
software.amazon.awssdk.services.dynamodb.DynamoDbClient
getAmazonDDBClient()
String
getKeyAttributeName()
String
getKeyAttributeType()
String
getKeyScalarType()
Ddb2Operations
getOperation()
String
getProxyHost()
Integer
getProxyPort()
software.amazon.awssdk.core.Protocol
getProxyProtocol()
Long
getReadCapacity()
String
getRegion()
String
getSecretKey()
String
getTableName()
String
getUriEndpointOverride()
Long
getWriteCapacity()
boolean
isConsistentRead()
boolean
isOverrideEndpoint()
boolean
isTrustAllCertificates()
Boolean
isUseDefaultCredentialsProvider()
void
setAccessKey(String accessKey)
Amazon AWS Access Keyvoid
setAmazonDDBClient(software.amazon.awssdk.services.dynamodb.DynamoDbClient amazonDDBClient)
To use the AmazonDynamoDB as the clientvoid
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
setKeyScalarType(String keyScalarType)
The key scalar type, it can be S (String), N (Number) and B (Bytes)void
setOperation(Ddb2Operations operation)
What operation to performvoid
setOverrideEndpoint(boolean overrideEndpoint)
Set the need for overidding the endpoint.void
setProxyHost(String proxyHost)
To define a proxy host when instantiating the DDB clientvoid
setProxyPort(Integer proxyPort)
The region in which DynamoDB client needs to work.void
setProxyProtocol(software.amazon.awssdk.core.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
setTrustAllCertificates(boolean trustAllCertificates)
If we want to trust all certificates in case of overriding the endpointvoid
setUriEndpointOverride(String uriEndpointOverride)
Set the overriding uri endpoint.void
setUseDefaultCredentialsProvider(Boolean useDefaultCredentialsProvider)
Set whether the S3 client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.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 software.amazon.awssdk.services.dynamodb.DynamoDbClient getAmazonDDBClient()
-
setAmazonDDBClient
public void setAmazonDDBClient(software.amazon.awssdk.services.dynamodb.DynamoDbClient 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 Ddb2Operations getOperation()
-
setOperation
public void setOperation(Ddb2Operations 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 software.amazon.awssdk.core.Protocol getProxyProtocol()
-
setProxyProtocol
public void setProxyProtocol(software.amazon.awssdk.core.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)
The region in which DynamoDB client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1) You'll need to use the name Region.EU_WEST_1.id()
-
getRegion
public String getRegion()
-
setRegion
public void setRegion(String region)
The region in which DDB client needs to work
-
isTrustAllCertificates
public boolean isTrustAllCertificates()
-
setTrustAllCertificates
public void setTrustAllCertificates(boolean trustAllCertificates)
If we want to trust all certificates in case of overriding the endpoint
-
isOverrideEndpoint
public boolean isOverrideEndpoint()
-
setOverrideEndpoint
public void setOverrideEndpoint(boolean overrideEndpoint)
Set the need for overidding the endpoint. This option needs to be used in combination with uriEndpointOverride option
-
getUriEndpointOverride
public String getUriEndpointOverride()
-
setUriEndpointOverride
public void setUriEndpointOverride(String uriEndpointOverride)
Set the overriding uri endpoint. This option needs to be used in combination with overrideEndpoint option
-
getKeyScalarType
public String getKeyScalarType()
-
setKeyScalarType
public void setKeyScalarType(String keyScalarType)
The key scalar type, it can be S (String), N (Number) and B (Bytes)
-
setUseDefaultCredentialsProvider
public void setUseDefaultCredentialsProvider(Boolean useDefaultCredentialsProvider)
Set whether the S3 client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.
-
isUseDefaultCredentialsProvider
public Boolean isUseDefaultCredentialsProvider()
-
copy
public Ddb2Configuration copy()
-
-