Package io.micronaut.aws.alexa.builders
Class DefaultAlexaSkillBuilder
java.lang.Object
io.micronaut.aws.alexa.builders.DefaultAlexaSkillBuilder
- All Implemented Interfaces:
AlexaSkillBuilder<com.amazon.ask.model.RequestEnvelope,
com.amazon.ask.model.ResponseEnvelope>
@Singleton
public class DefaultAlexaSkillBuilder
extends Object
implements AlexaSkillBuilder<com.amazon.ask.model.RequestEnvelope,com.amazon.ask.model.ResponseEnvelope>
Creates
AlexaSkill
by adding request and exception handlers ((RequestHandler
, ExceptionHandler
beans) and interceptor beans (RequestInterceptor
and ResponseInterceptor
).- Since:
- 2.0.0
- Author:
- sdelamo
-
Constructor Summary
ConstructorDescriptionDefaultAlexaSkillBuilder
(Collection<AlexaSkillConfiguration> alexaSkillConfigurations, io.micronaut.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescription@NonNull com.amazon.ask.AlexaSkill<com.amazon.ask.model.RequestEnvelope,
com.amazon.ask.model.ResponseEnvelope> buildSkill
(@NonNull @NotNull com.amazon.ask.builder.SkillBuilder<?> skillBuilder, @Nullable AlexaSkillConfiguration alexaSkillConfiguration)
-
Constructor Details
-
DefaultAlexaSkillBuilder
public DefaultAlexaSkillBuilder(Collection<AlexaSkillConfiguration> alexaSkillConfigurations, io.micronaut.context.ApplicationContext applicationContext) - Parameters:
alexaSkillConfigurations
- Alexa Skill ConfigurationsapplicationContext
- ApplicationContext
-
-
Method Details
-
buildSkill
@NonNull public @NonNull com.amazon.ask.AlexaSkill<com.amazon.ask.model.RequestEnvelope,com.amazon.ask.model.ResponseEnvelope> buildSkill(@NonNull @NotNull @NonNull @NotNull com.amazon.ask.builder.SkillBuilder<?> skillBuilder, @Nullable @Nullable AlexaSkillConfiguration alexaSkillConfiguration) - Specified by:
buildSkill
in interfaceAlexaSkillBuilder<com.amazon.ask.model.RequestEnvelope,
com.amazon.ask.model.ResponseEnvelope> - Parameters:
skillBuilder
- A Skill builderalexaSkillConfiguration
- Alexa Skill Configuration- Returns:
- An Alexa skill.
-