
com.pulumi.gcp.dataproc.kotlin.inputs.BatchEnvironmentConfigArgs.kt Maven / Gradle / Ivy
@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.BatchEnvironmentConfigArgs.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 executionConfig Execution configuration for a workload.
* Structure is documented below.
* @property peripheralsConfig Peripherals configuration that workload has access to.
* Structure is documented below.
*/
public data class BatchEnvironmentConfigArgs(
public val executionConfig: Output? = null,
public val peripheralsConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.BatchEnvironmentConfigArgs =
com.pulumi.gcp.dataproc.inputs.BatchEnvironmentConfigArgs.builder()
.executionConfig(executionConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.peripheralsConfig(
peripheralsConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BatchEnvironmentConfigArgs].
*/
@PulumiTagMarker
public class BatchEnvironmentConfigArgsBuilder internal constructor() {
private var executionConfig: Output? = null
private var peripheralsConfig: Output? = null
/**
* @param value Execution configuration for a workload.
* Structure is documented below.
*/
@JvmName("wbwwpncbpoubxgtk")
public suspend fun executionConfig(`value`: Output) {
this.executionConfig = value
}
/**
* @param value Peripherals configuration that workload has access to.
* Structure is documented below.
*/
@JvmName("sxpvgcwdqgdcjfxe")
public suspend fun peripheralsConfig(`value`: Output) {
this.peripheralsConfig = value
}
/**
* @param value Execution configuration for a workload.
* Structure is documented below.
*/
@JvmName("wrrevoooriuwhiab")
public suspend fun executionConfig(`value`: BatchEnvironmentConfigExecutionConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.executionConfig = mapped
}
/**
* @param argument Execution configuration for a workload.
* Structure is documented below.
*/
@JvmName("resfkocumceryysb")
public suspend fun executionConfig(argument: suspend BatchEnvironmentConfigExecutionConfigArgsBuilder.() -> Unit) {
val toBeMapped = BatchEnvironmentConfigExecutionConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.executionConfig = mapped
}
/**
* @param value Peripherals configuration that workload has access to.
* Structure is documented below.
*/
@JvmName("qmsqblenhxcuxdfv")
public suspend fun peripheralsConfig(`value`: BatchEnvironmentConfigPeripheralsConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.peripheralsConfig = mapped
}
/**
* @param argument Peripherals configuration that workload has access to.
* Structure is documented below.
*/
@JvmName("xqmqafngqkfnujvt")
public suspend fun peripheralsConfig(argument: suspend BatchEnvironmentConfigPeripheralsConfigArgsBuilder.() -> Unit) {
val toBeMapped = BatchEnvironmentConfigPeripheralsConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.peripheralsConfig = mapped
}
internal fun build(): BatchEnvironmentConfigArgs = BatchEnvironmentConfigArgs(
executionConfig = executionConfig,
peripheralsConfig = peripheralsConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy