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

io.burkard.cdk.services.cognito.AttributeMapping.scala Maven / Gradle / Ivy

There is a newer version: 0.5.0
Show newest version
package io.burkard.cdk.services.cognito

import scala.collection.JavaConverters._

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

  def apply(
    familyName: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    website: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    givenName: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    email: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    lastUpdateTime: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    timezone: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    profilePicture: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    locale: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    birthdate: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    fullname: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    preferredUsername: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    custom: Option[Map[String, _ <: software.amazon.awscdk.services.cognito.ProviderAttribute]] = None,
    phoneNumber: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    middleName: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    profilePage: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    address: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    gender: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None,
    nickname: Option[software.amazon.awscdk.services.cognito.ProviderAttribute] = None
  ): software.amazon.awscdk.services.cognito.AttributeMapping =
    (new software.amazon.awscdk.services.cognito.AttributeMapping.Builder)
      .familyName(familyName.orNull)
      .website(website.orNull)
      .givenName(givenName.orNull)
      .email(email.orNull)
      .lastUpdateTime(lastUpdateTime.orNull)
      .timezone(timezone.orNull)
      .profilePicture(profilePicture.orNull)
      .locale(locale.orNull)
      .birthdate(birthdate.orNull)
      .fullname(fullname.orNull)
      .preferredUsername(preferredUsername.orNull)
      .custom(custom.map(_.asJava).orNull)
      .phoneNumber(phoneNumber.orNull)
      .middleName(middleName.orNull)
      .profilePage(profilePage.orNull)
      .address(address.orNull)
      .gender(gender.orNull)
      .nickname(nickname.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy