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
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getName()
@NonNull String
The Skill ID of this Alexa skill.boolean
void
setEnabled
(boolean enabled) Sets whether this configuration is enabled.void
setSkillId
(@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, wait
Methods 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:
getName
in interfaceio.micronaut.core.naming.Named
- Returns:
- The name of the configuration
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in 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:
getSkillId
in interfaceAlexaSkillConfiguration
- Returns:
- skill id
-
setSkillId
The Skill ID of this Alexa skill.- Parameters:
skillId
- skill id
-