public static final class StandardSdkModule.Builder extends Object
Modifier and Type | Method and Description |
---|---|
StandardSdkModule |
build()
Returns a new
StandardSdkModule instance. |
StandardSdkModule.Builder |
withAutoCreateTable(boolean autoCreateTable)
Allows SDK to create a table if the table doesn't exist.
|
StandardSdkModule.Builder |
withDynamoDbClient(com.amazonaws.services.dynamodbv2.AmazonDynamoDB customDynamoDBClient)
Allows the user to specify a custom DynamoDB client.
|
StandardSdkModule.Builder |
withHttpClient(org.apache.http.impl.client.CloseableHttpClient customHttpClient)
Allows the user to configure custom HTTP client.
|
StandardSdkModule.Builder |
withPartitionKeyGenerator(Function<com.amazon.ask.model.RequestEnvelope,String> partitionKeyGenerator)
Allows the user to specify a partition key generator.
|
StandardSdkModule.Builder |
withTableName(String tableName)
Allows the user to configure a name for the DynamoDB table.
|
StandardSdkModule.Builder |
withTemplateDirectoryPath(String templateDirectoryPath)
Allows the user to specify directory path where the templates are stored.
|
public StandardSdkModule.Builder withHttpClient(org.apache.http.impl.client.CloseableHttpClient customHttpClient)
customHttpClient
- which extends CloseableHttpClient.StandardSdkModule.Builder
public StandardSdkModule.Builder withTableName(String tableName)
tableName
- name for the DynamoDB table.StandardSdkModule.Builder
public StandardSdkModule.Builder withAutoCreateTable(boolean autoCreateTable)
autoCreateTable
- boolean. If set to true, allows SDK to auto create table.StandardSdkModule.Builder
public StandardSdkModule.Builder withPartitionKeyGenerator(Function<com.amazon.ask.model.RequestEnvelope,String> partitionKeyGenerator)
partitionKeyGenerator
- DynamoDB uses the partition key as input for a hash function to determine storage.StandardSdkModule.Builder
public StandardSdkModule.Builder withDynamoDbClient(com.amazonaws.services.dynamodbv2.AmazonDynamoDB customDynamoDBClient)
customDynamoDBClient
- should implement AmazonDynamoDB
.StandardSdkModule.Builder
public StandardSdkModule.Builder withTemplateDirectoryPath(String templateDirectoryPath)
templateDirectoryPath
- string.StandardSdkModule.Builder
public StandardSdkModule build()
StandardSdkModule
instance.Copyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.