com.pulumi.gcp.dataproc.kotlin.inputs.JobSchedulingArgs.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.JobSchedulingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxFailuresPerHour Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.
* @property maxFailuresTotal Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.
*/
public data class JobSchedulingArgs(
public val maxFailuresPerHour: Output,
public val maxFailuresTotal: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.JobSchedulingArgs =
com.pulumi.gcp.dataproc.inputs.JobSchedulingArgs.builder()
.maxFailuresPerHour(maxFailuresPerHour.applyValue({ args0 -> args0 }))
.maxFailuresTotal(maxFailuresTotal.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobSchedulingArgs].
*/
@PulumiTagMarker
public class JobSchedulingArgsBuilder internal constructor() {
private var maxFailuresPerHour: Output? = null
private var maxFailuresTotal: Output? = null
/**
* @param value Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.
*/
@JvmName("imnjikepksotoxbe")
public suspend fun maxFailuresPerHour(`value`: Output) {
this.maxFailuresPerHour = value
}
/**
* @param value Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.
*/
@JvmName("evqkdgcyfuatpmkh")
public suspend fun maxFailuresTotal(`value`: Output) {
this.maxFailuresTotal = value
}
/**
* @param value Maximum number of times per hour a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.
*/
@JvmName("bfwbnadconohvevl")
public suspend fun maxFailuresPerHour(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxFailuresPerHour = mapped
}
/**
* @param value Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed.
*/
@JvmName("ckkfwptamvnigtfu")
public suspend fun maxFailuresTotal(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maxFailuresTotal = mapped
}
internal fun build(): JobSchedulingArgs = JobSchedulingArgs(
maxFailuresPerHour = maxFailuresPerHour ?: throw PulumiNullFieldException("maxFailuresPerHour"),
maxFailuresTotal = maxFailuresTotal ?: throw PulumiNullFieldException("maxFailuresTotal"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy