Package io.micronaut.aws.alexa.conf
Class AlexaSkillConfigurationProperties
java.lang.Object
io.micronaut.aws.alexa.conf.AlexaSkillConfigurationProperties
- All Implemented Interfaces:
AlexaSkillConfiguration,io.micronaut.core.naming.Named,io.micronaut.core.order.Ordered,io.micronaut.core.util.Toggleable
@Introspected
@EachProperty("alexa.skills")
public class AlexaSkillConfigurationProperties
extends Object
implements AlexaSkillConfiguration
This allows configuring properties that area AWS Alexa specific such as skill-id for skill verification.
- Since:
- 2.0.0
- Author:
- sdelamo
-
Field Summary
FieldsFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringgetName()@NonNull StringThe Skill ID of this Alexa skill.booleanvoidsetEnabled(boolean enabled) Sets whether this configuration is enabled.voidsetSkillId(@NonNull String skillId) The Skill ID of this Alexa skill.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Field Details
-
PREFIX
- See Also:
-
SKILLS_PREFIX
- See Also:
-
-
Constructor Details
-
AlexaSkillConfigurationProperties
- Parameters:
name- The name of the configuration
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Returns:
- The name of the configuration
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Sets whether this configuration is enabled. Default true.- Parameters:
enabled- The enabled setting
-
getSkillId
The Skill ID of this Alexa skill.- Specified by:
getSkillIdin interfaceAlexaSkillConfiguration- Returns:
- skill id
-
setSkillId
The Skill ID of this Alexa skill.- Parameters:
skillId- skill id
-