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

com.pulumi.gcp.dataflow.kotlin.inputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataflow.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property environment The runtime environment for the job.
 * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#RuntimeEnvironment
 * Structure is documented below.
 * @property jobName The job name to use for the created job.
 * @property parameters The runtime parameters to pass to the job.
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property transformNameMapping Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property update If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
 */
public data class PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs(
    public val environment: Output? = null,
    public val jobName: Output,
    public val parameters: Output>? = null,
    public val transformNameMapping: Output>? = null,
    public val update: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs =
        com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs.builder()
            .environment(environment?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .jobName(jobName.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .transformNameMapping(
                transformNameMapping?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .update(update?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs].
 */
@PulumiTagMarker
public class PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgsBuilder internal constructor() {
    private var environment:
        Output? = null

    private var jobName: Output? = null

    private var parameters: Output>? = null

    private var transformNameMapping: Output>? = null

    private var update: Output? = null

    /**
     * @param value The runtime environment for the job.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#RuntimeEnvironment
     * Structure is documented below.
     */
    @JvmName("audavrqukftiqdbq")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

    /**
     * @param value The job name to use for the created job.
     */
    @JvmName("rmnbqtgxdivbhjlg")
    public suspend fun jobName(`value`: Output) {
        this.jobName = value
    }

    /**
     * @param value The runtime parameters to pass to the job.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("rqmvlwwohuosemxe")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("eujpjljucsfjlxly")
    public suspend fun transformNameMapping(`value`: Output>) {
        this.transformNameMapping = value
    }

    /**
     * @param value If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
     */
    @JvmName("ntgyxtvymiglgpou")
    public suspend fun update(`value`: Output) {
        this.update = value
    }

    /**
     * @param value The runtime environment for the job.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#RuntimeEnvironment
     * Structure is documented below.
     */
    @JvmName("hwehxbwpumcsfqil")
    public suspend fun environment(`value`: PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersEnvironmentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param argument The runtime environment for the job.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#RuntimeEnvironment
     * Structure is documented below.
     */
    @JvmName("eiayhrudpaavdwjy")
    public suspend fun environment(argument: suspend PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersEnvironmentArgsBuilder.() -> Unit) {
        val toBeMapped =
            PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersEnvironmentArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param value The job name to use for the created job.
     */
    @JvmName("onafqveywuqpvucw")
    public suspend fun jobName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jobName = mapped
    }

    /**
     * @param value The runtime parameters to pass to the job.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("kryjcablyewbrkrb")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values The runtime parameters to pass to the job.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("htbqwyglnvvuxksb")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("nsnajsisopgnjhht")
    public suspend fun transformNameMapping(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformNameMapping = mapped
    }

    /**
     * @param values Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("puulisbfjjrflovh")
    public fun transformNameMapping(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transformNameMapping = mapped
    }

    /**
     * @param value If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
     */
    @JvmName("ecylokutmknlnaov")
    public suspend fun update(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.update = mapped
    }

    internal fun build(): PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs =
        PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersArgs(
            environment = environment,
            jobName = jobName ?: throw PulumiNullFieldException("jobName"),
            parameters = parameters,
            transformNameMapping = transformNameMapping,
            update = update,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy