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

com.pulumi.gcp.clouddeploy.kotlin.inputs.AutomationSelectorArgs.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.clouddeploy.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddeploy.inputs.AutomationSelectorArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property targets Contains attributes about a target.
 * Structure is documented below.
 */
public data class AutomationSelectorArgs(
    public val targets: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddeploy.inputs.AutomationSelectorArgs =
        com.pulumi.gcp.clouddeploy.inputs.AutomationSelectorArgs.builder()
            .targets(
                targets.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AutomationSelectorArgs].
 */
@PulumiTagMarker
public class AutomationSelectorArgsBuilder internal constructor() {
    private var targets: Output>? = null

    /**
     * @param value Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("nyosyjkwqtnmlfoo")
    public suspend fun targets(`value`: Output>) {
        this.targets = value
    }

    @JvmName("rkoyybfnhysraytf")
    public suspend fun targets(vararg values: Output) {
        this.targets = Output.all(values.asList())
    }

    /**
     * @param values Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("hueixboblxvywgcj")
    public suspend fun targets(values: List>) {
        this.targets = Output.all(values)
    }

    /**
     * @param value Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("xquxeynhojarajlu")
    public suspend fun targets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targets = mapped
    }

    /**
     * @param argument Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("tpwsixncxytpgepv")
    public suspend fun targets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutomationSelectorTargetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.targets = mapped
    }

    /**
     * @param argument Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("icupvrkjdlkxaldg")
    public suspend fun targets(vararg argument: suspend AutomationSelectorTargetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutomationSelectorTargetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.targets = mapped
    }

    /**
     * @param argument Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("rdndbnxvbwipytkn")
    public suspend fun targets(argument: suspend AutomationSelectorTargetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AutomationSelectorTargetArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.targets = mapped
    }

    /**
     * @param values Contains attributes about a target.
     * Structure is documented below.
     */
    @JvmName("fslkxnmyjrcyhmdf")
    public suspend fun targets(vararg values: AutomationSelectorTargetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targets = mapped
    }

    internal fun build(): AutomationSelectorArgs = AutomationSelectorArgs(
        targets = targets ?: throw PulumiNullFieldException("targets"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy