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

src.essentialcontacts.v1.ContactArgs.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.essentialcontacts.v1

final case class ContactArgs private(
  email: besom.types.Output[String],
  languageTag: besom.types.Output[String],
  notificationCategorySubscriptions: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.essentialcontacts.v1.enums.ContactNotificationCategorySubscriptionsItem]],
  project: besom.types.Output[scala.Option[String]],
  validateTime: besom.types.Output[scala.Option[String]],
  validationState: besom.types.Output[scala.Option[besom.api.googlenative.essentialcontacts.v1.enums.ContactValidationState]]
)

object ContactArgs:
  def apply(
    email: besom.types.Input[String],
    languageTag: besom.types.Input[String],
    notificationCategorySubscriptions: besom.types.Input[scala.collection.immutable.List[besom.types.Input[besom.api.googlenative.essentialcontacts.v1.enums.ContactNotificationCategorySubscriptionsItem]]],
    project: besom.types.Input.Optional[String] = scala.None,
    validateTime: besom.types.Input.Optional[String] = scala.None,
    validationState: besom.types.Input.Optional[besom.api.googlenative.essentialcontacts.v1.enums.ContactValidationState] = scala.None
  )(using besom.types.Context): ContactArgs =
    new ContactArgs(
      email = email.asOutput(isSecret = false),
      languageTag = languageTag.asOutput(isSecret = false),
      notificationCategorySubscriptions = notificationCategorySubscriptions.asOutput(isSecret = false),
      project = project.asOptionOutput(isSecret = false),
      validateTime = validateTime.asOptionOutput(isSecret = false),
      validationState = validationState.asOptionOutput(isSecret = false)
    )

  given encoder(using besom.types.Context): besom.types.Encoder[ContactArgs] =
    besom.internal.Encoder.derived[ContactArgs]
  given argsEncoder(using besom.types.Context): besom.types.ArgsEncoder[ContactArgs] =
    besom.internal.ArgsEncoder.derived[ContactArgs]






© 2015 - 2025 Weber Informatics LLC | Privacy Policy