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

com.pulumi.aws.datapipeline.kotlin.inputs.GetPipelineDefinitionPlainArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.datapipeline.kotlin.inputs

import com.pulumi.aws.datapipeline.inputs.GetPipelineDefinitionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 * A collection of arguments for invoking getPipelineDefinition.
 * @property parameterValues Parameter values used in the pipeline definition. See below
 * @property pipelineId ID of the pipeline.
 */
public data class GetPipelineDefinitionPlainArgs(
    public val parameterValues: List? = null,
    public val pipelineId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.datapipeline.inputs.GetPipelineDefinitionPlainArgs =
        com.pulumi.aws.datapipeline.inputs.GetPipelineDefinitionPlainArgs.builder()
            .parameterValues(
                parameterValues?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .pipelineId(pipelineId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetPipelineDefinitionPlainArgs].
 */
@PulumiTagMarker
public class GetPipelineDefinitionPlainArgsBuilder internal constructor() {
    private var parameterValues: List? = null

    private var pipelineId: String? = null

    /**
     * @param value Parameter values used in the pipeline definition. See below
     */
    @JvmName("lboxwbymaiupfrtw")
    public suspend fun parameterValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.parameterValues = mapped
    }

    /**
     * @param argument Parameter values used in the pipeline definition. See below
     */
    @JvmName("ouhchreipomgfcxc")
    public suspend fun parameterValues(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetPipelineDefinitionParameterValueBuilder().applySuspend { it() }.build()
        }
        val mapped = toBeMapped
        this.parameterValues = mapped
    }

    /**
     * @param argument Parameter values used in the pipeline definition. See below
     */
    @JvmName("bqskjyukuyideqhf")
    public suspend fun parameterValues(vararg argument: suspend GetPipelineDefinitionParameterValueBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetPipelineDefinitionParameterValueBuilder().applySuspend { it() }.build()
        }
        val mapped = toBeMapped
        this.parameterValues = mapped
    }

    /**
     * @param argument Parameter values used in the pipeline definition. See below
     */
    @JvmName("pyrlphxfhxnryumh")
    public suspend fun parameterValues(argument: suspend GetPipelineDefinitionParameterValueBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GetPipelineDefinitionParameterValueBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = toBeMapped
        this.parameterValues = mapped
    }

    /**
     * @param values Parameter values used in the pipeline definition. See below
     */
    @JvmName("umgueshjqsgkhrpa")
    public suspend fun parameterValues(vararg values: GetPipelineDefinitionParameterValue) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.parameterValues = mapped
    }

    /**
     * @param value ID of the pipeline.
     */
    @JvmName("vnhspearekelymvk")
    public suspend fun pipelineId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.pipelineId = mapped
    }

    internal fun build(): GetPipelineDefinitionPlainArgs = GetPipelineDefinitionPlainArgs(
        parameterValues = parameterValues,
        pipelineId = pipelineId ?: throw PulumiNullFieldException("pipelineId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy