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

io.burkard.cdk.services.amazonmq.LdapServerMetadataProperty.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    serviceAccountUsername: String,
    userBase: String,
    userSearchMatching: String,
    hosts: List[String],
    serviceAccountPassword: String,
    roleSearchMatching: String,
    roleBase: String,
    roleSearchSubtree: Option[Boolean] = None,
    roleName: Option[String] = None,
    userRoleName: Option[String] = None,
    userSearchSubtree: Option[Boolean] = None
  ): software.amazon.awscdk.services.amazonmq.CfnBroker.LdapServerMetadataProperty =
    (new software.amazon.awscdk.services.amazonmq.CfnBroker.LdapServerMetadataProperty.Builder)
      .serviceAccountUsername(serviceAccountUsername)
      .userBase(userBase)
      .userSearchMatching(userSearchMatching)
      .hosts(hosts.asJava)
      .serviceAccountPassword(serviceAccountPassword)
      .roleSearchMatching(roleSearchMatching)
      .roleBase(roleBase)
      .roleSearchSubtree(roleSearchSubtree.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
      .roleName(roleName.orNull)
      .userRoleName(userRoleName.orNull)
      .userSearchSubtree(userSearchSubtree.map(Boolean.box).getOrElse(java.lang.Boolean.FALSE))
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy