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

com.pulumi.googlenative.websecurityscanner.v1beta.kotlin.inputs.AuthenticationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.websecurityscanner.v1beta.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.websecurityscanner.v1beta.inputs.AuthenticationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Scan authentication configuration.
 * @property customAccount Authentication using a custom account.
 * @property googleAccount Authentication using a Google account.
 * @property iapCredential Authentication using Identity-Aware-Proxy (IAP).
 */
public data class AuthenticationArgs(
    public val customAccount: Output? = null,
    public val googleAccount: Output? = null,
    public val iapCredential: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.websecurityscanner.v1beta.inputs.AuthenticationArgs = com.pulumi.googlenative.websecurityscanner.v1beta.inputs.AuthenticationArgs.builder()
        .customAccount(customAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .googleAccount(googleAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .iapCredential(iapCredential?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AuthenticationArgs].
 */
@PulumiTagMarker
public class AuthenticationArgsBuilder internal constructor() {
    private var customAccount: Output? = null

    private var googleAccount: Output? = null

    private var iapCredential: Output? = null

    /**
     * @param value Authentication using a custom account.
     */
    @JvmName("bdyevwqxmesmqaok")
    public suspend fun customAccount(`value`: Output) {
        this.customAccount = value
    }

    /**
     * @param value Authentication using a Google account.
     */
    @JvmName("kusdmqtlmkhoovii")
    public suspend fun googleAccount(`value`: Output) {
        this.googleAccount = value
    }

    /**
     * @param value Authentication using Identity-Aware-Proxy (IAP).
     */
    @JvmName("grxbjhgderwlvjmu")
    public suspend fun iapCredential(`value`: Output) {
        this.iapCredential = value
    }

    /**
     * @param value Authentication using a custom account.
     */
    @JvmName("owirdgnxqfeshgkr")
    public suspend fun customAccount(`value`: CustomAccountArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customAccount = mapped
    }

    /**
     * @param argument Authentication using a custom account.
     */
    @JvmName("kvbyqtrkllycajod")
    public suspend fun customAccount(argument: suspend CustomAccountArgsBuilder.() -> Unit) {
        val toBeMapped = CustomAccountArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.customAccount = mapped
    }

    /**
     * @param value Authentication using a Google account.
     */
    @JvmName("rwhgcxrucwplpunq")
    public suspend fun googleAccount(`value`: GoogleAccountArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.googleAccount = mapped
    }

    /**
     * @param argument Authentication using a Google account.
     */
    @JvmName("awscqgsnumefpjyw")
    public suspend fun googleAccount(argument: suspend GoogleAccountArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleAccountArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.googleAccount = mapped
    }

    /**
     * @param value Authentication using Identity-Aware-Proxy (IAP).
     */
    @JvmName("dlqiamrniutldvjh")
    public suspend fun iapCredential(`value`: IapCredentialArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iapCredential = mapped
    }

    /**
     * @param argument Authentication using Identity-Aware-Proxy (IAP).
     */
    @JvmName("vfwsybatmsvgvdbg")
    public suspend fun iapCredential(argument: suspend IapCredentialArgsBuilder.() -> Unit) {
        val toBeMapped = IapCredentialArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.iapCredential = mapped
    }

    internal fun build(): AuthenticationArgs = AuthenticationArgs(
        customAccount = customAccount,
        googleAccount = googleAccount,
        iapCredential = iapCredential,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy