public static final class SkillConfiguration.Builder extends AbstractSkillConfiguration.Builder<HandlerInput,Optional<Response>,SkillConfiguration.Builder>
exceptionMapper, handlerAdapters, requestInterceptors, requestMappers, responseInterceptors
Constructor and Description |
---|
Builder()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
SkillConfiguration.Builder |
appendCustomUserAgent(String userAgent)
Appends a custom user agent to the existing user agent.
|
SkillConfiguration |
build()
Builder method to construct skill configuration with the provided data.
|
com.amazon.ask.model.services.ApiClient |
getApiClient()
Getter for Api client.
|
String |
getCustomUserAgent()
Getter for custom user agent.
|
PersistenceAdapter |
getPersistenceAdapter()
Getter for Persistence Adapter.
|
String |
getSkillId()
Getter for Skill Id.
|
TemplateFactory<HandlerInput,Response> |
getTemplateFactory()
Getter for Template factory.
|
SkillConfiguration.Builder |
withApiClient(com.amazon.ask.model.services.ApiClient apiClient)
Adds ApiClient to a Skill.
|
SkillConfiguration.Builder |
withCustomUserAgent(String customUserAgent)
Adds custom useragent to Skill configuration.
|
SkillConfiguration.Builder |
withPersistenceAdapter(PersistenceAdapter persistenceAdapter)
Adds PersistenceAdapter to Skill configuration.
|
SkillConfiguration.Builder |
withSkillId(String skillId)
Adds SkillId to Skill configuration.
|
SkillConfiguration.Builder |
withTemplateFactory(TemplateFactory<HandlerInput,Response> templateFactory)
Adds Template factory to Skill configuration.
|
addHandlerAdapter, addRequestInterceptor, addRequestMapper, addResponseInterceptor, getHandlerAdapters, getRequestInterceptors, getRequestMappers, getResponseInterceptors, withExceptionMapper, withHandlerAdapters, withRequestInterceptors, withRequestMappers, withResponseInterceptors
public SkillConfiguration.Builder withPersistenceAdapter(PersistenceAdapter persistenceAdapter)
persistenceAdapter
- Store skill attributes to a persistence layer.SkillConfiguration.Builder
.public PersistenceAdapter getPersistenceAdapter()
PersistenceAdapter
.public SkillConfiguration.Builder withApiClient(com.amazon.ask.model.services.ApiClient apiClient)
apiClient
- Api client to make external API calls.SkillConfiguration.Builder
.public com.amazon.ask.model.services.ApiClient getApiClient()
ApiClient
.public SkillConfiguration.Builder withCustomUserAgent(String customUserAgent)
customUserAgent
- custom user agent.SkillConfiguration.Builder
.public SkillConfiguration.Builder appendCustomUserAgent(String userAgent)
userAgent
- user agent.SkillConfiguration.Builder
.public String getCustomUserAgent()
public SkillConfiguration.Builder withSkillId(String skillId)
skillId
- Unique ID associated with a Skill.SkillConfiguration.Builder
.public String getSkillId()
public SkillConfiguration.Builder withTemplateFactory(TemplateFactory<HandlerInput,Response> templateFactory)
templateFactory
- interface to process template and data to generate skill response.SkillConfiguration.Builder
.public TemplateFactory<HandlerInput,Response> getTemplateFactory()
TemplateFactory
.public SkillConfiguration build()
build
in class AbstractSkillConfiguration.Builder<HandlerInput,Optional<Response>,SkillConfiguration.Builder>
SkillConfiguration
.Copyright © 2023. All rights reserved.