com.pulumi.gcp.dataflow.kotlin.inputs.PipelineWorkloadDataflowFlexTemplateRequestArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.dataflow.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowFlexTemplateRequestArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property launchParameter Parameter to launch a job from a Flex Template.
* https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplateparameter
* Structure is documented below.
* @property location The regional endpoint to which to direct the request. For example, us-central1, us-west1.
* @property projectId The ID of the Cloud Platform project that the job belongs to.
* @property validateOnly If true, the request is validated but not actually executed. Defaults to false.
*/
public data class PipelineWorkloadDataflowFlexTemplateRequestArgs(
public val launchParameter: Output,
public val location: Output,
public val projectId: Output,
public val validateOnly: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowFlexTemplateRequestArgs =
com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowFlexTemplateRequestArgs.builder()
.launchParameter(launchParameter.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location.applyValue({ args0 -> args0 }))
.projectId(projectId.applyValue({ args0 -> args0 }))
.validateOnly(validateOnly?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PipelineWorkloadDataflowFlexTemplateRequestArgs].
*/
@PulumiTagMarker
public class PipelineWorkloadDataflowFlexTemplateRequestArgsBuilder internal constructor() {
private var launchParameter:
Output? = null
private var location: Output? = null
private var projectId: Output? = null
private var validateOnly: Output? = null
/**
* @param value Parameter to launch a job from a Flex Template.
* https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplateparameter
* Structure is documented below.
*/
@JvmName("hixeddyrjdoapwmu")
public suspend fun launchParameter(`value`: Output) {
this.launchParameter = value
}
/**
* @param value The regional endpoint to which to direct the request. For example, us-central1, us-west1.
*/
@JvmName("mbchibpiphpccfau")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The ID of the Cloud Platform project that the job belongs to.
*/
@JvmName("nononkolrarcbuet")
public suspend fun projectId(`value`: Output) {
this.projectId = value
}
/**
* @param value If true, the request is validated but not actually executed. Defaults to false.
*/
@JvmName("xotmwllknmkaiasw")
public suspend fun validateOnly(`value`: Output) {
this.validateOnly = value
}
/**
* @param value Parameter to launch a job from a Flex Template.
* https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplateparameter
* Structure is documented below.
*/
@JvmName("hvvpwqrhaflnarny")
public suspend fun launchParameter(`value`: PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.launchParameter = mapped
}
/**
* @param argument Parameter to launch a job from a Flex Template.
* https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchflextemplateparameter
* Structure is documented below.
*/
@JvmName("krtitmumckulbnqy")
public suspend fun launchParameter(argument: suspend PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgsBuilder.() -> Unit) {
val toBeMapped =
PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.launchParameter = mapped
}
/**
* @param value The regional endpoint to which to direct the request. For example, us-central1, us-west1.
*/
@JvmName("pxerosnxqkwqnsby")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The ID of the Cloud Platform project that the job belongs to.
*/
@JvmName("wvsbldsvkltppisy")
public suspend fun projectId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.projectId = mapped
}
/**
* @param value If true, the request is validated but not actually executed. Defaults to false.
*/
@JvmName("pvxedlayqildqosu")
public suspend fun validateOnly(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.validateOnly = mapped
}
internal fun build(): PipelineWorkloadDataflowFlexTemplateRequestArgs =
PipelineWorkloadDataflowFlexTemplateRequestArgs(
launchParameter = launchParameter ?: throw PulumiNullFieldException("launchParameter"),
location = location ?: throw PulumiNullFieldException("location"),
projectId = projectId ?: throw PulumiNullFieldException("projectId"),
validateOnly = validateOnly,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy