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

com.pulumi.gcp.networkconnectivity.kotlin.inputs.PolicyBasedRouteVirtualMachineArgs.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.networkconnectivity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkconnectivity.inputs.PolicyBasedRouteVirtualMachineArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property tags A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
 */
public data class PolicyBasedRouteVirtualMachineArgs(
    public val tags: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkconnectivity.inputs.PolicyBasedRouteVirtualMachineArgs =
        com.pulumi.gcp.networkconnectivity.inputs.PolicyBasedRouteVirtualMachineArgs.builder()
            .tags(tags.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
     */
    @JvmName("pdylcuqgftehggpx")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
     */
    @JvmName("cylxglbquuwbxngp")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
     */
    @JvmName("elfqarglsphehsaw")
    public suspend fun tags(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here will install this PBR.
     */
    @JvmName("flfiaxwfvnnuniml")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PolicyBasedRouteVirtualMachineArgs = PolicyBasedRouteVirtualMachineArgs(
        tags = tags ?: throw PulumiNullFieldException("tags"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy