public class SkillConfiguration extends AbstractSkillConfiguration<HandlerInput,Optional<Response>> implements CustomSkillConfiguration
Skill
instance.Modifier and Type | Class and Description |
---|---|
static class |
SkillConfiguration.Builder
Skill configuration Builder.
|
Modifier and Type | Field and Description |
---|---|
protected com.amazon.ask.model.services.ApiClient |
apiClient
Api client to make external API calls.
|
protected String |
customUserAgent
Custom UserAgent.
|
protected PersistenceAdapter |
persistenceAdapter
Persistence adapters allow an
AttributesManager to store skill attributes to a
persistence layer. |
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.
|
exceptionMapper, handlerAdapters, requestInterceptors, requestMappers, responseInterceptors
Modifier | Constructor and Description |
---|---|
protected |
SkillConfiguration(List<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers,
List<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters,
GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper,
PersistenceAdapter persistenceAdapter,
com.amazon.ask.model.services.ApiClient apiClient,
String customUserAgent,
String skillId,
TemplateFactory<HandlerInput,Response> templateFactory)
Constructor for SkillConfiguration.
|
protected |
SkillConfiguration(List<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers,
List<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters,
List<GenericRequestInterceptor<HandlerInput>> requestInterceptors,
List<GenericResponseInterceptor<HandlerInput,Optional<Response>>> responseInterceptors,
GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper,
PersistenceAdapter persistenceAdapter,
com.amazon.ask.model.services.ApiClient apiClient,
String customUserAgent,
String skillId,
TemplateFactory<HandlerInput,Response> templateFactory)
Constructor for SkillConfiguration.
|
Modifier and Type | Method and Description |
---|---|
static SkillConfiguration.Builder |
builder()
Static method to build an instance of Builder class.
|
com.amazon.ask.model.services.ApiClient |
getApiClient()
Getter method for Api Client.
|
String |
getCustomUserAgent()
Getter method for Custom UserAgent.
|
PersistenceAdapter |
getPersistenceAdapter()
Getter method for Persistence Adapter.
|
String |
getSkillId()
Getter method for SkillId.
|
TemplateFactory<HandlerInput,Response> |
getTemplateFactory()
Getter method for Template Factory.
|
getExceptionMapper, getHandlerAdapters, getRequestInterceptors, getRequestMappers, getResponseInterceptors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExceptionMapper, getHandlerAdapters, getRequestInterceptors, getRequestMappers, getResponseInterceptors
protected final String customUserAgent
protected final String skillId
protected final PersistenceAdapter persistenceAdapter
AttributesManager
to store skill attributes to a
persistence layer.protected final com.amazon.ask.model.services.ApiClient apiClient
protected final TemplateFactory<HandlerInput,Response> templateFactory
protected SkillConfiguration(List<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers, List<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters, GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper, PersistenceAdapter persistenceAdapter, com.amazon.ask.model.services.ApiClient apiClient, String customUserAgent, String skillId, TemplateFactory<HandlerInput,Response> templateFactory)
requestMappers
- list of request mappers.handlerAdapters
- list of handler adapters.exceptionMapper
- exception mapper.persistenceAdapter
- store skill attributes to a persistence layer.apiClient
- api client to make external API calls.customUserAgent
- custom user agent.skillId
- unique ID associated with a Skill.templateFactory
- interface to process template and data to generate skill response.protected SkillConfiguration(List<GenericRequestMapper<HandlerInput,Optional<Response>>> requestMappers, List<GenericHandlerAdapter<HandlerInput,Optional<Response>>> handlerAdapters, List<GenericRequestInterceptor<HandlerInput>> requestInterceptors, List<GenericResponseInterceptor<HandlerInput,Optional<Response>>> responseInterceptors, GenericExceptionMapper<HandlerInput,Optional<Response>> exceptionMapper, PersistenceAdapter persistenceAdapter, com.amazon.ask.model.services.ApiClient apiClient, String customUserAgent, String skillId, TemplateFactory<HandlerInput,Response> templateFactory)
requestMappers
- list of request mappers.handlerAdapters
- list of handler adapters.requestInterceptors
- list of request interceptors.responseInterceptors
- list of response interceptors.exceptionMapper
- exception mapper.persistenceAdapter
- store skill attributes to a persistence layer.apiClient
- api client to make external API calls.customUserAgent
- custom user agent.skillId
- unique ID associated with a Skill.templateFactory
- interface to process template and data to generate skill response.public static SkillConfiguration.Builder builder()
SkillConfiguration.Builder
.public String getCustomUserAgent()
getCustomUserAgent
in interface CustomSkillConfiguration
public String getSkillId()
getSkillId
in interface CustomSkillConfiguration
public PersistenceAdapter getPersistenceAdapter()
getPersistenceAdapter
in interface CustomSkillConfiguration
PersistenceAdapter
.public com.amazon.ask.model.services.ApiClient getApiClient()
getApiClient
in interface CustomSkillConfiguration
ApiClient
.public TemplateFactory<HandlerInput,Response> getTemplateFactory()
getTemplateFactory
in interface CustomSkillConfiguration
TemplateFactory
.Copyright © 2023. All rights reserved.