com.pulumi.gitlab.kotlin.LabelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gitlab-kotlin Show documentation
Show all versions of pulumi-gitlab-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.LabelArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The `gitlab.Label` resource allows to manage the lifecycle of a project label.
* > This resource is deprecated. use `gitlab.ProjectLabel`instead!
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels)
* @property color The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords).
* @property description The description of the label.
* @property name The name of the label.
* @property project The name or id of the project to add the label to.
*/
public data class LabelArgs(
public val color: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gitlab.LabelArgs = com.pulumi.gitlab.LabelArgs.builder()
.color(color?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LabelArgs].
*/
@PulumiTagMarker
public class LabelArgsBuilder internal constructor() {
private var color: Output? = null
private var description: Output? = null
private var name: Output? = null
private var project: Output? = null
/**
* @param value The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords).
*/
@JvmName("pvvnvsyphuixaotd")
public suspend fun color(`value`: Output) {
this.color = value
}
/**
* @param value The description of the label.
*/
@JvmName("nqyjqxjdgbesxuok")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the label.
*/
@JvmName("gvcsmmcdpfbnewgr")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name or id of the project to add the label to.
*/
@JvmName("mebpwihqxddwglwx")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value The color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the [CSS color names](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords).
*/
@JvmName("chwsxaaqolaklauq")
public suspend fun color(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.color = mapped
}
/**
* @param value The description of the label.
*/
@JvmName("frlwbgkgjtntilxh")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The name of the label.
*/
@JvmName("gqntopyfwevjullo")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name or id of the project to add the label to.
*/
@JvmName("dlpryvymxdeotgrn")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
internal fun build(): LabelArgs = LabelArgs(
color = color,
description = description,
name = name,
project = project,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy