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

cloudshift.awscdk.dsl.services.lex.CfnBotAliasSentimentAnalysisSettingsPropertyDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package cloudshift.awscdk.dsl.services.lex

import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Boolean
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.lex.CfnBotAlias

/**
 * Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user
 * utterances.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.lex.*;
 * SentimentAnalysisSettingsProperty sentimentAnalysisSettingsProperty =
 * SentimentAnalysisSettingsProperty.builder()
 * .detectSentiment(false)
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-botalias-sentimentanalysissettings.html)
 */
@CdkDslMarker
public class CfnBotAliasSentimentAnalysisSettingsPropertyDsl {
  private val cdkBuilder: CfnBotAlias.SentimentAnalysisSettingsProperty.Builder =
      CfnBotAlias.SentimentAnalysisSettingsProperty.builder()

  /**
   * @param detectSentiment Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment
   * of user utterances. 
   */
  public fun detectSentiment(detectSentiment: Boolean) {
    cdkBuilder.detectSentiment(detectSentiment)
  }

  /**
   * @param detectSentiment Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment
   * of user utterances. 
   */
  public fun detectSentiment(detectSentiment: IResolvable) {
    cdkBuilder.detectSentiment(detectSentiment)
  }

  public fun build(): CfnBotAlias.SentimentAnalysisSettingsProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy