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

com.pulumi.gcp.dataflow.kotlin.inputs.PipelineWorkloadArgs.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.12.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.PipelineWorkloadArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property dataflowFlexTemplateRequest Template information and additional parameters needed to launch a Dataflow job using the flex launch API.
 * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplaterequest
 * Structure is documented below.
 * @property dataflowLaunchTemplateRequest Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
 * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchtemplaterequest
 * Structure is documented below.
 */
public data class PipelineWorkloadArgs(
    public val dataflowFlexTemplateRequest: Output? =
        null,
    public val dataflowLaunchTemplateRequest: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataflow.inputs.PipelineWorkloadArgs =
        com.pulumi.gcp.dataflow.inputs.PipelineWorkloadArgs.builder()
            .dataflowFlexTemplateRequest(
                dataflowFlexTemplateRequest?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .dataflowLaunchTemplateRequest(
                dataflowLaunchTemplateRequest?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

/**
 * Builder for [PipelineWorkloadArgs].
 */
@PulumiTagMarker
public class PipelineWorkloadArgsBuilder internal constructor() {
    private var dataflowFlexTemplateRequest: Output? =
        null

    private var dataflowLaunchTemplateRequest:
        Output? = null

    /**
     * @param value Template information and additional parameters needed to launch a Dataflow job using the flex launch API.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplaterequest
     * Structure is documented below.
     */
    @JvmName("rbgppdylvfxsqhpm")
    public suspend fun dataflowFlexTemplateRequest(`value`: Output) {
        this.dataflowFlexTemplateRequest = value
    }

    /**
     * @param value Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchtemplaterequest
     * Structure is documented below.
     */
    @JvmName("vuxggywdrxinexxp")
    public suspend fun dataflowLaunchTemplateRequest(`value`: Output) {
        this.dataflowLaunchTemplateRequest = value
    }

    /**
     * @param value Template information and additional parameters needed to launch a Dataflow job using the flex launch API.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplaterequest
     * Structure is documented below.
     */
    @JvmName("vatefjiqbdrbickj")
    public suspend fun dataflowFlexTemplateRequest(`value`: PipelineWorkloadDataflowFlexTemplateRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataflowFlexTemplateRequest = mapped
    }

    /**
     * @param argument Template information and additional parameters needed to launch a Dataflow job using the flex launch API.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplaterequest
     * Structure is documented below.
     */
    @JvmName("eyfnxxfgplxdbaqn")
    public suspend fun dataflowFlexTemplateRequest(argument: suspend PipelineWorkloadDataflowFlexTemplateRequestArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineWorkloadDataflowFlexTemplateRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dataflowFlexTemplateRequest = mapped
    }

    /**
     * @param value Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchtemplaterequest
     * Structure is documented below.
     */
    @JvmName("lxciekwmdrbtjbuu")
    public suspend fun dataflowLaunchTemplateRequest(`value`: PipelineWorkloadDataflowLaunchTemplateRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataflowLaunchTemplateRequest = mapped
    }

    /**
     * @param argument Template information and additional parameters needed to launch a Dataflow job using the standard launch API.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchtemplaterequest
     * Structure is documented below.
     */
    @JvmName("nycipsmpcuvbcvbk")
    public suspend fun dataflowLaunchTemplateRequest(argument: suspend PipelineWorkloadDataflowLaunchTemplateRequestArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineWorkloadDataflowLaunchTemplateRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dataflowLaunchTemplateRequest = mapped
    }

    internal fun build(): PipelineWorkloadArgs = PipelineWorkloadArgs(
        dataflowFlexTemplateRequest = dataflowFlexTemplateRequest,
        dataflowLaunchTemplateRequest = dataflowLaunchTemplateRequest,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy