com.pulumi.googlenative.dataproc.v1beta2.kotlin.inputs.JobSchedulingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dataproc.v1beta2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dataproc.v1beta2.inputs.JobSchedulingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Job scheduling options.
* @property maxFailuresPerHour Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
* @property maxFailuresTotal Optional. 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. Maximum value is 240.
*/
public data class JobSchedulingArgs(
public val maxFailuresPerHour: Output? = null,
public val maxFailuresTotal: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.dataproc.v1beta2.inputs.JobSchedulingArgs =
com.pulumi.googlenative.dataproc.v1beta2.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 Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
*/
@JvmName("nqxeeahgbcmyjeae")
public suspend fun maxFailuresPerHour(`value`: Output) {
this.maxFailuresPerHour = value
}
/**
* @param value Optional. 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. Maximum value is 240.
*/
@JvmName("kpdfyeiyitwbiaml")
public suspend fun maxFailuresTotal(`value`: Output) {
this.maxFailuresTotal = value
}
/**
* @param value Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
*/
@JvmName("safaqicqapojunbp")
public suspend fun maxFailuresPerHour(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxFailuresPerHour = mapped
}
/**
* @param value Optional. 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. Maximum value is 240.
*/
@JvmName("kepqtgttqplnxgpa")
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,
maxFailuresTotal = maxFailuresTotal,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy