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

com.pulumi.googlenative.healthcare.v1beta1.kotlin.inputs.SignatureArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.healthcare.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.healthcare.v1beta1.inputs.SignatureArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * User signature.
 * @property image Optional. An image of the user's signature.
 * @property metadata Optional. Metadata associated with the user's signature. For example, the user's name or the user's title.
 * @property signatureTime Optional. Timestamp of the signature.
 * @property userId User's UUID provided by the client.
 */
public data class SignatureArgs(
    public val image: Output? = null,
    public val metadata: Output>? = null,
    public val signatureTime: Output? = null,
    public val userId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.healthcare.v1beta1.inputs.SignatureArgs =
        com.pulumi.googlenative.healthcare.v1beta1.inputs.SignatureArgs.builder()
            .image(image?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .metadata(
                metadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .signatureTime(signatureTime?.applyValue({ args0 -> args0 }))
            .userId(userId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SignatureArgs].
 */
@PulumiTagMarker
public class SignatureArgsBuilder internal constructor() {
    private var image: Output? = null

    private var metadata: Output>? = null

    private var signatureTime: Output? = null

    private var userId: Output? = null

    /**
     * @param value Optional. An image of the user's signature.
     */
    @JvmName("pgvmobpkmllksanu")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value Optional. Metadata associated with the user's signature. For example, the user's name or the user's title.
     */
    @JvmName("ysrymjwthcfqyqcx")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    /**
     * @param value Optional. Timestamp of the signature.
     */
    @JvmName("ipyvmvmunrbakovw")
    public suspend fun signatureTime(`value`: Output) {
        this.signatureTime = value
    }

    /**
     * @param value User's UUID provided by the client.
     */
    @JvmName("qnejhqxikylchjgi")
    public suspend fun userId(`value`: Output) {
        this.userId = value
    }

    /**
     * @param value Optional. An image of the user's signature.
     */
    @JvmName("kkvnefworaiinmxn")
    public suspend fun image(`value`: ImageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param argument Optional. An image of the user's signature.
     */
    @JvmName("rseeqmiokltdvwmf")
    public suspend fun image(argument: suspend ImageArgsBuilder.() -> Unit) {
        val toBeMapped = ImageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.image = mapped
    }

    /**
     * @param value Optional. Metadata associated with the user's signature. For example, the user's name or the user's title.
     */
    @JvmName("boiktsseetilvohp")
    public suspend fun metadata(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param values Optional. Metadata associated with the user's signature. For example, the user's name or the user's title.
     */
    @JvmName("psnpcrruoulicvhy")
    public fun metadata(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value Optional. Timestamp of the signature.
     */
    @JvmName("fuerbtkakxvundsa")
    public suspend fun signatureTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.signatureTime = mapped
    }

    /**
     * @param value User's UUID provided by the client.
     */
    @JvmName("nwmahocxnkyrouyc")
    public suspend fun userId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userId = mapped
    }

    internal fun build(): SignatureArgs = SignatureArgs(
        image = image,
        metadata = metadata,
        signatureTime = signatureTime,
        userId = userId ?: throw PulumiNullFieldException("userId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy