
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.ScheduleBaseArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.ScheduleBaseArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.ScheduleProvisioningState
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.ScheduleStatus
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property id A system assigned id for the schedule.
* @property provisioningStatus The current deployment state of schedule.
* @property status Is the schedule enabled or disabled?
*/
public data class ScheduleBaseArgs(
public val id: Output? = null,
public val provisioningStatus: Output>? = null,
public val status: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.ScheduleBaseArgs =
com.pulumi.azurenative.machinelearningservices.inputs.ScheduleBaseArgs.builder()
.id(id?.applyValue({ args0 -> args0 }))
.provisioningStatus(
provisioningStatus?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.status(
status?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [ScheduleBaseArgs].
*/
@PulumiTagMarker
public class ScheduleBaseArgsBuilder internal constructor() {
private var id: Output? = null
private var provisioningStatus: Output>? = null
private var status: Output>? = null
/**
* @param value A system assigned id for the schedule.
*/
@JvmName("lmfedhheciadsvjk")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The current deployment state of schedule.
*/
@JvmName("sstmhimgmjpkdivy")
public suspend fun provisioningStatus(`value`: Output>) {
this.provisioningStatus = value
}
/**
* @param value Is the schedule enabled or disabled?
*/
@JvmName("usopibjptxnbrkhp")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value A system assigned id for the schedule.
*/
@JvmName("haymnemuqrjmadwb")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The current deployment state of schedule.
*/
@JvmName("jnbmmbuekpwmcvrh")
public suspend fun provisioningStatus(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.provisioningStatus = mapped
}
/**
* @param value The current deployment state of schedule.
*/
@JvmName("yjsussftxpjdrjsi")
public fun provisioningStatus(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provisioningStatus = mapped
}
/**
* @param value The current deployment state of schedule.
*/
@JvmName("nbslftesppkqwyqe")
public fun provisioningStatus(`value`: ScheduleProvisioningState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provisioningStatus = mapped
}
/**
* @param value Is the schedule enabled or disabled?
*/
@JvmName("rlitcdagayhqhsyk")
public suspend fun status(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Is the schedule enabled or disabled?
*/
@JvmName("wfsighdssojfibfn")
public fun status(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value Is the schedule enabled or disabled?
*/
@JvmName("mhcoktoycgpobfmj")
public fun status(`value`: ScheduleStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): ScheduleBaseArgs = ScheduleBaseArgs(
id = id,
provisioningStatus = provisioningStatus,
status = status,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy