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

com.pulumi.gitlab.kotlin.GroupIssueBoardArgs.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

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gitlab.GroupIssueBoardArgs.builder
import com.pulumi.gitlab.kotlin.inputs.GroupIssueBoardListArgs
import com.pulumi.gitlab.kotlin.inputs.GroupIssueBoardListArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The `gitlab.GroupIssueBoard` resource allows to manage the lifecycle of a issue board in a group.
 * > Multiple issue boards on one group requires a GitLab Premium or above License.
 * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/group_boards.html)
 * @property group The ID or URL-encoded path of the group owned by the authenticated user.
 * @property labels The list of label names which the board should be scoped to.
 * @property lists The list of issue board lists.
 * @property milestoneId The milestone the board should be scoped to.
 * @property name The name of the board.
 */
public data class GroupIssueBoardArgs(
    public val group: Output? = null,
    public val labels: Output>? = null,
    public val lists: Output>? = null,
    public val milestoneId: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.GroupIssueBoardArgs =
        com.pulumi.gitlab.GroupIssueBoardArgs.builder()
            .group(group?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .lists(lists?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .milestoneId(milestoneId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupIssueBoardArgs].
 */
@PulumiTagMarker
public class GroupIssueBoardArgsBuilder internal constructor() {
    private var group: Output? = null

    private var labels: Output>? = null

    private var lists: Output>? = null

    private var milestoneId: Output? = null

    private var name: Output? = null

    /**
     * @param value The ID or URL-encoded path of the group owned by the authenticated user.
     */
    @JvmName("qjuwsjqvhrlhyixx")
    public suspend fun group(`value`: Output) {
        this.group = value
    }

    /**
     * @param value The list of label names which the board should be scoped to.
     */
    @JvmName("dkgfqeabjrgnkubg")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

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

    /**
     * @param values The list of label names which the board should be scoped to.
     */
    @JvmName("pedkkhoxgkrwnlum")
    public suspend fun labels(values: List>) {
        this.labels = Output.all(values)
    }

    /**
     * @param value The list of issue board lists.
     */
    @JvmName("usfaomfeihglmikt")
    public suspend fun lists(`value`: Output>) {
        this.lists = value
    }

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

    /**
     * @param values The list of issue board lists.
     */
    @JvmName("cbvxmilrjjlfofow")
    public suspend fun lists(values: List>) {
        this.lists = Output.all(values)
    }

    /**
     * @param value The milestone the board should be scoped to.
     */
    @JvmName("xgeuvvigcauhsyjr")
    public suspend fun milestoneId(`value`: Output) {
        this.milestoneId = value
    }

    /**
     * @param value The name of the board.
     */
    @JvmName("glodmmlluprlhgav")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID or URL-encoded path of the group owned by the authenticated user.
     */
    @JvmName("lsihpuvefwohiafs")
    public suspend fun group(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.group = mapped
    }

    /**
     * @param value The list of label names which the board should be scoped to.
     */
    @JvmName("axvuguklyfysximt")
    public suspend fun labels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values The list of label names which the board should be scoped to.
     */
    @JvmName("gjobwcmvusqmykil")
    public suspend fun labels(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The list of issue board lists.
     */
    @JvmName("mxodmonxiefsgxvx")
    public suspend fun lists(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lists = mapped
    }

    /**
     * @param argument The list of issue board lists.
     */
    @JvmName("xyfiruxsxklkllhy")
    public suspend fun lists(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GroupIssueBoardListArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.lists = mapped
    }

    /**
     * @param argument The list of issue board lists.
     */
    @JvmName("qehyppdtwfhguaqr")
    public suspend fun lists(vararg argument: suspend GroupIssueBoardListArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GroupIssueBoardListArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.lists = mapped
    }

    /**
     * @param argument The list of issue board lists.
     */
    @JvmName("ecxcvpijlmifpewh")
    public suspend fun lists(argument: suspend GroupIssueBoardListArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(GroupIssueBoardListArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.lists = mapped
    }

    /**
     * @param values The list of issue board lists.
     */
    @JvmName("actuqbmlimpymyom")
    public suspend fun lists(vararg values: GroupIssueBoardListArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lists = mapped
    }

    /**
     * @param value The milestone the board should be scoped to.
     */
    @JvmName("gwnwyrpnivcsliku")
    public suspend fun milestoneId(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.milestoneId = mapped
    }

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

    internal fun build(): GroupIssueBoardArgs = GroupIssueBoardArgs(
        group = group,
        labels = labels,
        lists = lists,
        milestoneId = milestoneId,
        name = name,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy