All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.lex.cfnBot.BotLocaleProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.lex.cfnBot

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object BotLocaleProperty {

  def apply(
    nluConfidenceThreshold: Number,
    localeId: String,
    description: Option[String] = None,
    customVocabulary: Option[software.amazon.awscdk.services.lex.CfnBot.CustomVocabularyProperty] = None,
    intents: Option[List[_]] = None,
    slotTypes: Option[List[_]] = None,
    voiceSettings: Option[software.amazon.awscdk.services.lex.CfnBot.VoiceSettingsProperty] = None
  ): software.amazon.awscdk.services.lex.CfnBot.BotLocaleProperty =
    (new software.amazon.awscdk.services.lex.CfnBot.BotLocaleProperty.Builder)
      .nluConfidenceThreshold(nluConfidenceThreshold)
      .localeId(localeId)
      .description(description.orNull)
      .customVocabulary(customVocabulary.orNull)
      .intents(intents.map(_.asJava).orNull)
      .slotTypes(slotTypes.map(_.asJava).orNull)
      .voiceSettings(voiceSettings.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy