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

com.pulumi.gcp.clouddeploy.kotlin.inputs.AutomationSelectorTargetArgs.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.12.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.AutomationSelectorTargetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property id ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
 * @property labels Target labels.
 */
public data class AutomationSelectorTargetArgs(
    public val id: Output? = null,
    public val labels: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddeploy.inputs.AutomationSelectorTargetArgs =
        com.pulumi.gcp.clouddeploy.inputs.AutomationSelectorTargetArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .labels(
                labels?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AutomationSelectorTargetArgs].
 */
@PulumiTagMarker
public class AutomationSelectorTargetArgsBuilder internal constructor() {
    private var id: Output? = null

    private var labels: Output>? = null

    /**
     * @param value ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
     */
    @JvmName("qdvyqbsfrtkwlonm")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Target labels.
     */
    @JvmName("dpluwcubmbwatsoj")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * "*", all targets in a location.
     */
    @JvmName("uqumvglcmspuabab")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Target labels.
     */
    @JvmName("bjvfioktvjbqhlvh")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Target labels.
     */
    @JvmName("twbwxmvcavuydkxs")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    internal fun build(): AutomationSelectorTargetArgs = AutomationSelectorTargetArgs(
        id = id,
        labels = labels,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy