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

com.pulumi.gcp.dataform.kotlin.RepositoryIamBindingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.dataform.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataform.RepositoryIamBindingArgs.builder
import com.pulumi.gcp.dataform.kotlin.inputs.RepositoryIamBindingConditionArgs
import com.pulumi.gcp.dataform.kotlin.inputs.RepositoryIamBindingConditionArgsBuilder
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 members
 * @property project
 * @property region
 * @property repository
 * @property role
 */
public data class RepositoryIamBindingArgs(
    public val condition: Output? = null,
    public val members: Output>? = null,
    public val project: Output? = null,
    public val region: Output? = null,
    public val repository: Output? = null,
    public val role: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataform.RepositoryIamBindingArgs =
        com.pulumi.gcp.dataform.RepositoryIamBindingArgs.builder()
            .condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .members(members?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 }))
            .repository(repository?.applyValue({ args0 -> args0 }))
            .role(role?.applyValue({ args0 -> args0 })).build()
}

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

    private var members: Output>? = null

    private var project: Output? = null

    private var region: Output? = null

    private var repository: Output? = null

    private var role: Output? = null

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    internal fun build(): RepositoryIamBindingArgs = RepositoryIamBindingArgs(
        condition = condition,
        members = members,
        project = project,
        region = region,
        repository = repository,
        role = role,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy