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

com.pulumi.gitlab.kotlin.inputs.GroupDefaultBranchProtectionDefaultsArgs.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.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gitlab.inputs.GroupDefaultBranchProtectionDefaultsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowForcePush Allow force push for all users with push access.
 * @property allowedToMerges An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
 * @property allowedToPushes An array of access levels allowed to push. Valid values are: `developer`, `maintainer`, `no one`.
 * @property developerCanInitialPush Allow developers to initial push.
 */
public data class GroupDefaultBranchProtectionDefaultsArgs(
    public val allowForcePush: Output? = null,
    public val allowedToMerges: Output>? = null,
    public val allowedToPushes: Output>? = null,
    public val developerCanInitialPush: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.inputs.GroupDefaultBranchProtectionDefaultsArgs =
        com.pulumi.gitlab.inputs.GroupDefaultBranchProtectionDefaultsArgs.builder()
            .allowForcePush(allowForcePush?.applyValue({ args0 -> args0 }))
            .allowedToMerges(allowedToMerges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .allowedToPushes(allowedToPushes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .developerCanInitialPush(developerCanInitialPush?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupDefaultBranchProtectionDefaultsArgs].
 */
@PulumiTagMarker
public class GroupDefaultBranchProtectionDefaultsArgsBuilder internal constructor() {
    private var allowForcePush: Output? = null

    private var allowedToMerges: Output>? = null

    private var allowedToPushes: Output>? = null

    private var developerCanInitialPush: Output? = null

    /**
     * @param value Allow force push for all users with push access.
     */
    @JvmName("xhjfxseuvdqpklnp")
    public suspend fun allowForcePush(`value`: Output) {
        this.allowForcePush = value
    }

    /**
     * @param value An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("pyrwaqpjtkdmreww")
    public suspend fun allowedToMerges(`value`: Output>) {
        this.allowedToMerges = value
    }

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

    /**
     * @param values An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("vtqwjmrbutriujwr")
    public suspend fun allowedToMerges(values: List>) {
        this.allowedToMerges = Output.all(values)
    }

    /**
     * @param value An array of access levels allowed to push. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("lsujvkeujnssvfry")
    public suspend fun allowedToPushes(`value`: Output>) {
        this.allowedToPushes = value
    }

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

    /**
     * @param values An array of access levels allowed to push. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("ecfrfltorcdpkdrf")
    public suspend fun allowedToPushes(values: List>) {
        this.allowedToPushes = Output.all(values)
    }

    /**
     * @param value Allow developers to initial push.
     */
    @JvmName("ovtkqksxcslxxrxg")
    public suspend fun developerCanInitialPush(`value`: Output) {
        this.developerCanInitialPush = value
    }

    /**
     * @param value Allow force push for all users with push access.
     */
    @JvmName("aqpijedvmoowqevv")
    public suspend fun allowForcePush(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowForcePush = mapped
    }

    /**
     * @param value An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("lmdvrhmnjthfgoea")
    public suspend fun allowedToMerges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedToMerges = mapped
    }

    /**
     * @param values An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("jjattiefckoqsojc")
    public suspend fun allowedToMerges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedToMerges = mapped
    }

    /**
     * @param value An array of access levels allowed to push. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("yrrkcimspfrwolrh")
    public suspend fun allowedToPushes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedToPushes = mapped
    }

    /**
     * @param values An array of access levels allowed to push. Valid values are: `developer`, `maintainer`, `no one`.
     */
    @JvmName("nnesbpwywlwyyexi")
    public suspend fun allowedToPushes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedToPushes = mapped
    }

    /**
     * @param value Allow developers to initial push.
     */
    @JvmName("bkjbdwdeelrjyikm")
    public suspend fun developerCanInitialPush(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.developerCanInitialPush = mapped
    }

    internal fun build(): GroupDefaultBranchProtectionDefaultsArgs =
        GroupDefaultBranchProtectionDefaultsArgs(
            allowForcePush = allowForcePush,
            allowedToMerges = allowedToMerges,
            allowedToPushes = allowedToPushes,
            developerCanInitialPush = developerCanInitialPush,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy