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

com.pulumi.awsnative.codepipeline.kotlin.inputs.PipelineVariableDeclarationArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.codepipeline.kotlin.inputs

import com.pulumi.awsnative.codepipeline.inputs.PipelineVariableDeclarationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A variable declared at the pipeline level.
 * @property defaultValue The value of a pipeline-level variable.
 * @property description The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
 * @property name The name of a pipeline-level variable.
 */
public data class PipelineVariableDeclarationArgs(
    public val defaultValue: Output? = null,
    public val description: Output? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codepipeline.inputs.PipelineVariableDeclarationArgs =
        com.pulumi.awsnative.codepipeline.inputs.PipelineVariableDeclarationArgs.builder()
            .defaultValue(defaultValue?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipelineVariableDeclarationArgs].
 */
@PulumiTagMarker
public class PipelineVariableDeclarationArgsBuilder internal constructor() {
    private var defaultValue: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    /**
     * @param value The value of a pipeline-level variable.
     */
    @JvmName("ccymhsirqdimcicc")
    public suspend fun defaultValue(`value`: Output) {
        this.defaultValue = value
    }

    /**
     * @param value The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
     */
    @JvmName("pgxcvvgovxggsvcj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of a pipeline-level variable.
     */
    @JvmName("iambocdwgyvixmay")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The value of a pipeline-level variable.
     */
    @JvmName("ygjeglexuswikyyy")
    public suspend fun defaultValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultValue = mapped
    }

    /**
     * @param value The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
     */
    @JvmName("vrldnkmtrxvadoxt")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of a pipeline-level variable.
     */
    @JvmName("srfatddervkfueds")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): PipelineVariableDeclarationArgs = PipelineVariableDeclarationArgs(
        defaultValue = defaultValue,
        description = description,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy