com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplatePlacementArgs.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.dataproc.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementArgs.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 clusterSelector A selector that chooses target cluster for jobs based on metadata. The selector is evaluated at the time each job is submitted.
* @property managedCluster A cluster that is managed by the workflow.
*/
public data class WorkflowTemplatePlacementArgs(
public val clusterSelector: Output? = null,
public val managedCluster: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementArgs =
com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementArgs.builder()
.clusterSelector(clusterSelector?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.managedCluster(
managedCluster?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [WorkflowTemplatePlacementArgs].
*/
@PulumiTagMarker
public class WorkflowTemplatePlacementArgsBuilder internal constructor() {
private var clusterSelector: Output? = null
private var managedCluster: Output? = null
/**
* @param value A selector that chooses target cluster for jobs based on metadata. The selector is evaluated at the time each job is submitted.
*/
@JvmName("ewocurnbwohjgqjl")
public suspend fun clusterSelector(`value`: Output) {
this.clusterSelector = value
}
/**
* @param value A cluster that is managed by the workflow.
*/
@JvmName("rpjftinmrpfyvmbj")
public suspend fun managedCluster(`value`: Output) {
this.managedCluster = value
}
/**
* @param value A selector that chooses target cluster for jobs based on metadata. The selector is evaluated at the time each job is submitted.
*/
@JvmName("wjajfcuplpwmwmqw")
public suspend fun clusterSelector(`value`: WorkflowTemplatePlacementClusterSelectorArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterSelector = mapped
}
/**
* @param argument A selector that chooses target cluster for jobs based on metadata. The selector is evaluated at the time each job is submitted.
*/
@JvmName("vosrrfdvjwuveoqa")
public suspend fun clusterSelector(argument: suspend WorkflowTemplatePlacementClusterSelectorArgsBuilder.() -> Unit) {
val toBeMapped = WorkflowTemplatePlacementClusterSelectorArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.clusterSelector = mapped
}
/**
* @param value A cluster that is managed by the workflow.
*/
@JvmName("tqnfynnqajtjtoug")
public suspend fun managedCluster(`value`: WorkflowTemplatePlacementManagedClusterArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managedCluster = mapped
}
/**
* @param argument A cluster that is managed by the workflow.
*/
@JvmName("lwgcpebrxgeufjij")
public suspend fun managedCluster(argument: suspend WorkflowTemplatePlacementManagedClusterArgsBuilder.() -> Unit) {
val toBeMapped = WorkflowTemplatePlacementManagedClusterArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.managedCluster = mapped
}
internal fun build(): WorkflowTemplatePlacementArgs = WorkflowTemplatePlacementArgs(
clusterSelector = clusterSelector,
managedCluster = managedCluster,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy