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

com.pulumi.gcp.compute.kotlin.inputs.SecurityScanConfigAuthenticationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.SecurityScanConfigAuthenticationArgs.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

/**
 *
 * @property customAccount Describes authentication configuration that uses a custom account.
 * Structure is documented below.
 * @property googleAccount Describes authentication configuration that uses a Google account.
 * Structure is documented below.
 */
public data class SecurityScanConfigAuthenticationArgs(
    public val customAccount: Output? = null,
    public val googleAccount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.SecurityScanConfigAuthenticationArgs =
        com.pulumi.gcp.compute.inputs.SecurityScanConfigAuthenticationArgs.builder()
            .customAccount(customAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .googleAccount(googleAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var googleAccount: Output? = null

    /**
     * @param value Describes authentication configuration that uses a custom account.
     * Structure is documented below.
     */
    @JvmName("mvswftyuvnyoowbn")
    public suspend fun customAccount(`value`: Output) {
        this.customAccount = value
    }

    /**
     * @param value Describes authentication configuration that uses a Google account.
     * Structure is documented below.
     */
    @JvmName("prhflgdohmrgwcmo")
    public suspend fun googleAccount(`value`: Output) {
        this.googleAccount = value
    }

    /**
     * @param value Describes authentication configuration that uses a custom account.
     * Structure is documented below.
     */
    @JvmName("xjyskiasflgqnsrf")
    public suspend fun customAccount(`value`: SecurityScanConfigAuthenticationCustomAccountArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customAccount = mapped
    }

    /**
     * @param argument Describes authentication configuration that uses a custom account.
     * Structure is documented below.
     */
    @JvmName("fhdrscjehfrmmgsv")
    public suspend fun customAccount(argument: suspend SecurityScanConfigAuthenticationCustomAccountArgsBuilder.() -> Unit) {
        val toBeMapped = SecurityScanConfigAuthenticationCustomAccountArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customAccount = mapped
    }

    /**
     * @param value Describes authentication configuration that uses a Google account.
     * Structure is documented below.
     */
    @JvmName("ioekqejgmwtmlbdk")
    public suspend fun googleAccount(`value`: SecurityScanConfigAuthenticationGoogleAccountArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.googleAccount = mapped
    }

    /**
     * @param argument Describes authentication configuration that uses a Google account.
     * Structure is documented below.
     */
    @JvmName("pbqoxhmuslbecovs")
    public suspend fun googleAccount(argument: suspend SecurityScanConfigAuthenticationGoogleAccountArgsBuilder.() -> Unit) {
        val toBeMapped = SecurityScanConfigAuthenticationGoogleAccountArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.googleAccount = mapped
    }

    internal fun build(): SecurityScanConfigAuthenticationArgs = SecurityScanConfigAuthenticationArgs(
        customAccount = customAccount,
        googleAccount = googleAccount,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy