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

com.pulumi.gcp.clouddeploy.kotlin.TargetIamBindingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.clouddeploy.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddeploy.TargetIamBindingArgs.builder
import com.pulumi.gcp.clouddeploy.kotlin.inputs.TargetIamBindingConditionArgs
import com.pulumi.gcp.clouddeploy.kotlin.inputs.TargetIamBindingConditionArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property condition
 * @property location
 * @property members
 * @property name
 * @property project
 * @property role
 */
public data class TargetIamBindingArgs(
    public val condition: Output? = null,
    public val location: Output? = null,
    public val members: Output>? = null,
    public val name: Output? = null,
    public val project: Output? = null,
    public val role: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddeploy.TargetIamBindingArgs =
        com.pulumi.gcp.clouddeploy.TargetIamBindingArgs.builder()
            .condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .members(members?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .role(role?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TargetIamBindingArgs].
 */
@PulumiTagMarker
public class TargetIamBindingArgsBuilder internal constructor() {
    private var condition: Output? = null

    private var location: Output? = null

    private var members: Output>? = null

    private var name: Output? = null

    private var project: Output? = null

    private var role: Output? = null

    /**
     * @param value
     */
    @JvmName("oqkgkfwoafypgjld")
    public suspend fun condition(`value`: Output) {
        this.condition = value
    }

    /**
     * @param value
     */
    @JvmName("epilpxtehdlnnmtf")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

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

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

    /**
     * @param values
     */
    @JvmName("qjmolycousdnxsft")
    public suspend fun members(values: List>) {
        this.members = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("nvxrkwypkvbiciyn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("ufgbsvqarucdunwd")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value
     */
    @JvmName("ygutsaignwqhvtfm")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

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

    /**
     * @param argument
     */
    @JvmName("jqodsbqvldljtikp")
    public suspend fun condition(argument: suspend TargetIamBindingConditionArgsBuilder.() -> Unit) {
        val toBeMapped = TargetIamBindingConditionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.condition = mapped
    }

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

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

    /**
     * @param values
     */
    @JvmName("jpfjnpfutioyvusm")
    public suspend fun members(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.members = mapped
    }

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

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

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

    internal fun build(): TargetIamBindingArgs = TargetIamBindingArgs(
        condition = condition,
        location = location,
        members = members,
        name = name,
        project = project,
        role = role,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy