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

io.burkard.cdk.services.kendra.ServiceNowKnowledgeArticleConfigurationProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.kendra

import scala.collection.JavaConverters._

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

  def apply(
    documentDataFieldName: String,
    excludeAttachmentFilePatterns: Option[List[String]] = None,
    documentTitleFieldName: Option[String] = None,
    fieldMappings: Option[List[_]] = None,
    filterQuery: Option[String] = None,
    includeAttachmentFilePatterns: Option[List[String]] = None,
    crawlAttachments: Option[Boolean] = None
  ): software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty =
    (new software.amazon.awscdk.services.kendra.CfnDataSource.ServiceNowKnowledgeArticleConfigurationProperty.Builder)
      .documentDataFieldName(documentDataFieldName)
      .excludeAttachmentFilePatterns(excludeAttachmentFilePatterns.map(_.asJava).orNull)
      .documentTitleFieldName(documentTitleFieldName.orNull)
      .fieldMappings(fieldMappings.map(_.asJava).orNull)
      .filterQuery(filterQuery.orNull)
      .includeAttachmentFilePatterns(includeAttachmentFilePatterns.map(_.asJava).orNull)
      .crawlAttachments(crawlAttachments.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy