
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.SweepJobLimitsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.SweepJobLimitsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Sweep Job limit class.
* @property jobLimitsType
* Expected value is 'Sweep'.
* @property maxConcurrentTrials Sweep Job max concurrent trials.
* @property maxTotalTrials Sweep Job max total trials.
* @property timeout The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.
* @property trialTimeout Sweep Job Trial timeout value.
*/
public data class SweepJobLimitsArgs(
public val jobLimitsType: Output,
public val maxConcurrentTrials: Output? = null,
public val maxTotalTrials: Output? = null,
public val timeout: Output? = null,
public val trialTimeout: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.SweepJobLimitsArgs =
com.pulumi.azurenative.machinelearningservices.inputs.SweepJobLimitsArgs.builder()
.jobLimitsType(jobLimitsType.applyValue({ args0 -> args0 }))
.maxConcurrentTrials(maxConcurrentTrials?.applyValue({ args0 -> args0 }))
.maxTotalTrials(maxTotalTrials?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 }))
.trialTimeout(trialTimeout?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SweepJobLimitsArgs].
*/
@PulumiTagMarker
public class SweepJobLimitsArgsBuilder internal constructor() {
private var jobLimitsType: Output? = null
private var maxConcurrentTrials: Output? = null
private var maxTotalTrials: Output? = null
private var timeout: Output? = null
private var trialTimeout: Output? = null
/**
* @param value
* Expected value is 'Sweep'.
*/
@JvmName("nojcximlgbcjvtay")
public suspend fun jobLimitsType(`value`: Output) {
this.jobLimitsType = value
}
/**
* @param value Sweep Job max concurrent trials.
*/
@JvmName("vkvmgqxhkmkgiinn")
public suspend fun maxConcurrentTrials(`value`: Output) {
this.maxConcurrentTrials = value
}
/**
* @param value Sweep Job max total trials.
*/
@JvmName("mqxclrgcrcdykvvn")
public suspend fun maxTotalTrials(`value`: Output) {
this.maxTotalTrials = value
}
/**
* @param value The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.
*/
@JvmName("iunrutiwdnybvuyc")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value Sweep Job Trial timeout value.
*/
@JvmName("yxgwxxkirdahfuog")
public suspend fun trialTimeout(`value`: Output) {
this.trialTimeout = value
}
/**
* @param value
* Expected value is 'Sweep'.
*/
@JvmName("rntspfuerijttujp")
public suspend fun jobLimitsType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.jobLimitsType = mapped
}
/**
* @param value Sweep Job max concurrent trials.
*/
@JvmName("txxwaknuvrqilopd")
public suspend fun maxConcurrentTrials(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentTrials = mapped
}
/**
* @param value Sweep Job max total trials.
*/
@JvmName("yivgibfpppluqrwr")
public suspend fun maxTotalTrials(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxTotalTrials = mapped
}
/**
* @param value The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.
*/
@JvmName("uubwmewlcjgrgkfk")
public suspend fun timeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
/**
* @param value Sweep Job Trial timeout value.
*/
@JvmName("wfpmomvqdqlnsduv")
public suspend fun trialTimeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.trialTimeout = mapped
}
internal fun build(): SweepJobLimitsArgs = SweepJobLimitsArgs(
jobLimitsType = jobLimitsType ?: throw PulumiNullFieldException("jobLimitsType"),
maxConcurrentTrials = maxConcurrentTrials,
maxTotalTrials = maxTotalTrials,
timeout = timeout,
trialTimeout = trialTimeout,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy