Class HandlerInputLocaleResolutionConfigurationProperties

java.lang.Object
io.micronaut.aws.alexa.locale.HandlerInputLocaleResolutionConfigurationProperties
All Implemented Interfaces:
HandlerInputLocaleResolutionConfiguration, io.micronaut.core.util.locale.LocaleResolutionConfiguration

@ConfigurationProperties("alexa.locale-resolution") public class HandlerInputLocaleResolutionConfigurationProperties extends Object implements HandlerInputLocaleResolutionConfiguration
ConfigurationProperties implementation of HandlerInputLocaleResolutionConfiguration.
Since:
3.10.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • HandlerInputLocaleResolutionConfigurationProperties

      public HandlerInputLocaleResolutionConfigurationProperties()
  • Method Details

    • getFixed

      @NonNull public @NonNull Optional<Locale> getFixed()
      Specified by:
      getFixed in interface io.micronaut.core.util.locale.LocaleResolutionConfiguration
      Returns:
      The fixed locale
    • setFixed

      public void setFixed(@Nullable @Nullable Locale fixed)
      Sets the fixed locale. Any of ar-SA, de-DE, en-AU, en-CA, en-GB, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP, pt-BR
      Parameters:
      fixed - The fixed locale
    • getDefaultLocale

      @NonNull public @NonNull Locale getDefaultLocale()
      Specified by:
      getDefaultLocale in interface io.micronaut.core.util.locale.LocaleResolutionConfiguration
      Returns:
      The locale to be used if one cannot be resolved.
    • setDefaultLocale

      public void setDefaultLocale(@NonNull @NonNull Locale defaultLocale)
      Sets the locale that will be used if the locale cannot be resolved through any means. Defaults to "en-US".
      Parameters:
      defaultLocale - The default locale.