Modifier and Type | Class and Description |
---|---|
static class |
StandardSdkModule.Builder
Standard SDK Module Builder.
|
Modifier and Type | Field and Description |
---|---|
protected ApacheHttpApiClient |
apiClient
Apache HTTP client backed implementation of the ASK Java SDK API Client.
|
protected DynamoDbPersistenceAdapter |
persistenceAdapter
Persistence adapter for storing skill persistence attributes in Amazon DynamoDB.
|
protected TemplateFactory |
templateFactory
Template Factory interface to process template and data to generate skill response.
|
Constructor and Description |
---|
StandardSdkModule(ApacheHttpApiClient apiClient,
DynamoDbPersistenceAdapter persistenceAdapter,
TemplateFactory templateFactory)
Constructs an instance of
StandardSdkModule with given ApacheHttpApiClient , DynamoDbPersistenceAdapter
and TemplateFactory . |
Modifier and Type | Method and Description |
---|---|
static StandardSdkModule.Builder |
builder()
Returns an instance of
StandardSdkModule.Builder . |
void |
setupModule(SdkModuleContext context)
Method called by the
SkillBuilder when .build() is called. |
protected ApacheHttpApiClient apiClient
protected DynamoDbPersistenceAdapter persistenceAdapter
protected TemplateFactory templateFactory
public StandardSdkModule(ApacheHttpApiClient apiClient, DynamoDbPersistenceAdapter persistenceAdapter, TemplateFactory templateFactory)
StandardSdkModule
with given ApacheHttpApiClient
, DynamoDbPersistenceAdapter
and TemplateFactory
.apiClient
- ApacheHttpApiClientpersistenceAdapter
- DynamoDbPersistenceAdaptertemplateFactory
- TemplateFactorypublic void setupModule(SdkModuleContext context)
SkillBuilder
when .build() is called. Allows this module to configure
itself as part of GenericSkillConfiguration
building.setupModule
in interface SdkModule
context
- context passed to module to configure itselfpublic static StandardSdkModule.Builder builder()
StandardSdkModule.Builder
.Copyright © 2023. All rights reserved.