T - of type SkillBuilder.public class SkillBuilder<T extends SkillBuilder<T>> extends AbstractSkillBuilder<HandlerInput,Optional<Response>,T>
| Modifier and Type | Field and Description |
|---|---|
protected com.amazon.ask.model.services.ApiClient |
apiClient
Api client to make external API calls.
|
protected PersistenceAdapter |
persistenceAdapter
Persistence adapters allow an
AttributesManager to store skill attributes to a
persistence layer. |
protected List<SdkModule> |
sdkModules
An interface for SDK extensions that can be registered on the
SkillBuilder when setting up a Skill instance. |
protected String |
skillId
Unique ID associated with a Skill.
|
protected TemplateFactory<HandlerInput,Response> |
templateFactory
Template Factory interface to process template and data to generate skill response.
|
exceptionHandlers, requestHandlers, requestInterceptors, responseInterceptors| Constructor and Description |
|---|
SkillBuilder()
Constructor for SkillBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
Skill |
build()
Build an instance of Skill with the given configuration.
|
protected SkillConfiguration.Builder |
getConfigBuilder()
Get configuration builder.
|
T |
registerSdkModule(SdkModule sdkModule)
Adds SDK modules to a Skill.
|
T |
withApiClient(com.amazon.ask.model.services.ApiClient apiClient)
Adds ApiClient to a Skill.
|
T |
withPersistenceAdapter(PersistenceAdapter persistenceAdapter)
Adds PersistenceAdapter to a Skill.
|
T |
withSkillId(String skillId)
Adds SkillId.
|
T |
withTemplateFactory(TemplateFactory templateFactory)
Adds Template Factory to a Skill.
|
addExceptionHandler, addExceptionHandlers, addExceptionHandlers, addRequestHandler, addRequestHandlers, addRequestHandlers, addRequestInterceptor, addRequestInterceptors, addRequestInterceptors, addResponseInterceptor, addResponseInterceptors, addResponseInterceptors, populateConfigprotected final List<SdkModule> sdkModules
SkillBuilder when setting up a Skill instance.protected PersistenceAdapter persistenceAdapter
AttributesManager to store skill attributes to a
persistence layer.protected com.amazon.ask.model.services.ApiClient apiClient
protected String skillId
protected TemplateFactory<HandlerInput,Response> templateFactory
public T withPersistenceAdapter(PersistenceAdapter persistenceAdapter)
persistenceAdapter - store attributes to a persistence layer.T.public T withApiClient(com.amazon.ask.model.services.ApiClient apiClient)
apiClient - Api client to make external API calls.T.public T registerSdkModule(SdkModule sdkModule)
sdkModule - interface for SDK extensions.T.public T withSkillId(String skillId)
skillId - Unique ID associated with a Skill.T.public T withTemplateFactory(TemplateFactory templateFactory)
templateFactory - Interface to process template and data to generate skill response.T.protected SkillConfiguration.Builder getConfigBuilder()
SkillConfiguration.Builder.public Skill build()
build in class AbstractSkillBuilder<HandlerInput,Optional<Response>,T extends SkillBuilder<T>>Skill.Copyright © 2023. All rights reserved.