public class StandardSkillBuilder extends SkillBuilder<StandardSkillBuilder>
Skill using the default DynamoDbPersistenceAdapter
and ApacheHttpApiClient.| Constructor and Description |
|---|
StandardSkillBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Skill |
build()
Returns a new
Skill instance. |
StandardSkillBuilder |
withAutoCreateTable(boolean autoCreateTable)
Allows SDK to create a table if the table doesn't exist.
|
StandardSkillBuilder |
withDynamoDbClient(com.amazonaws.services.dynamodbv2.AmazonDynamoDB customDynamoDBClient)
Allows the user to specify a custom DynamoDB client.
|
StandardSkillBuilder |
withHttpClient(org.apache.http.impl.client.CloseableHttpClient customHttpClient)
Allows the user to configure custom HTTP client.
|
StandardSkillBuilder |
withPartitionKeyGenerator(Function<com.amazon.ask.model.RequestEnvelope,String> partitionKeyGenerator)
Allows the user to specify a partition key generator.
|
StandardSkillBuilder |
withTableName(String tableName)
Allows the user to configure a name for the DynamoDB table.
|
StandardSkillBuilder |
withTemplateDirectoryPath(String templateDirectoryPath)
Allows the user to specify directory path where the templates are stored.
|
registerSdkModule, withApiClient, withPersistenceAdapter, withSkillId, withTemplateFactoryaddExceptionHandler, addExceptionHandlers, addExceptionHandlers, addRequestHandler, addRequestHandlers, addRequestHandlers, addRequestInterceptor, addRequestInterceptors, addRequestInterceptors, addResponseInterceptor, addResponseInterceptors, addResponseInterceptorspublic StandardSkillBuilder withHttpClient(org.apache.http.impl.client.CloseableHttpClient customHttpClient)
customHttpClient - which extends CloseableHttpClient.StandardSkillBuilderpublic StandardSkillBuilder withTableName(String tableName)
tableName - name for the DynamoDB table.StandardSkillBuilderpublic StandardSkillBuilder withAutoCreateTable(boolean autoCreateTable)
autoCreateTable - if set to true, allows SDK to auto create table.StandardSkillBuilderpublic StandardSkillBuilder withPartitionKeyGenerator(Function<com.amazon.ask.model.RequestEnvelope,String> partitionKeyGenerator)
partitionKeyGenerator - DynamoDB uses the partition key as input for a hash function to determine storage.StandardSkillBuilderpublic StandardSkillBuilder withDynamoDbClient(com.amazonaws.services.dynamodbv2.AmazonDynamoDB customDynamoDBClient)
customDynamoDBClient - should implement AmazonDynamoDB.StandardSkillBuilderpublic StandardSkillBuilder withTemplateDirectoryPath(String templateDirectoryPath)
templateDirectoryPath - string.StandardSkillBuilderpublic Skill build()
Skill instance.build in class SkillBuilder<StandardSkillBuilder>Copyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.