![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.solutions.kotlin.inputs.JitSchedulingPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.solutions.kotlin.inputs
import com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs.builder
import com.pulumi.azurenative.solutions.kotlin.enums.JitSchedulingType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The JIT scheduling policies.
* @property duration
* @property startTime The start time of the request.
* @property type The type of JIT schedule.
*/
public data class JitSchedulingPolicyArgs(
public val duration: Output,
public val startTime: Output,
public val type: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs =
com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs.builder()
.duration(duration.applyValue({ args0 -> args0 }))
.startTime(startTime.applyValue({ args0 -> args0 }))
.type(
type.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [JitSchedulingPolicyArgs].
*/
@PulumiTagMarker
public class JitSchedulingPolicyArgsBuilder internal constructor() {
private var duration: Output? = null
private var startTime: Output? = null
private var type: Output>? = null
/**
* @param value
*/
@JvmName("wlkbympjfnuovpyn")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value The start time of the request.
*/
@JvmName("morrgsyatfvvjgpy")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value The type of JIT schedule.
*/
@JvmName("wyiuhhoifhojuffy")
public suspend fun type(`value`: Output>) {
this.type = value
}
/**
* @param value
*/
@JvmName("gfimesyovfeaqfmm")
public suspend fun duration(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.duration = mapped
}
/**
* @param value The start time of the request.
*/
@JvmName("cholcrpvwgbygobv")
public suspend fun startTime(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startTime = mapped
}
/**
* @param value The type of JIT schedule.
*/
@JvmName("jxfycplwmvfeumyr")
public suspend fun type(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The type of JIT schedule.
*/
@JvmName("orhtdtngdvxuvnof")
public fun type(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The type of JIT schedule.
*/
@JvmName("svisobyhixogwknm")
public fun type(`value`: JitSchedulingType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): JitSchedulingPolicyArgs = JitSchedulingPolicyArgs(
duration = duration ?: throw PulumiNullFieldException("duration"),
startTime = startTime ?: throw PulumiNullFieldException("startTime"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy