![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.scheduler.kotlin.inputs.JobPropertiesArgs.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.scheduler.kotlin.inputs
import com.pulumi.azurenative.scheduler.inputs.JobPropertiesArgs.builder
import com.pulumi.azurenative.scheduler.kotlin.enums.JobState
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property action Gets or sets the job action.
* @property recurrence Gets or sets the job recurrence.
* @property startTime Gets or sets the job start time.
* @property state Gets or set the job state.
*/
public data class JobPropertiesArgs(
public val action: Output? = null,
public val recurrence: Output? = null,
public val startTime: Output? = null,
public val state: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.scheduler.inputs.JobPropertiesArgs =
com.pulumi.azurenative.scheduler.inputs.JobPropertiesArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.recurrence(recurrence?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startTime(startTime?.applyValue({ args0 -> args0 }))
.state(state?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [JobPropertiesArgs].
*/
@PulumiTagMarker
public class JobPropertiesArgsBuilder internal constructor() {
private var action: Output? = null
private var recurrence: Output? = null
private var startTime: Output? = null
private var state: Output? = null
/**
* @param value Gets or sets the job action.
*/
@JvmName("elnvggibiuqcxfnr")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Gets or sets the job recurrence.
*/
@JvmName("igrrxjxqjmgcjjbu")
public suspend fun recurrence(`value`: Output) {
this.recurrence = value
}
/**
* @param value Gets or sets the job start time.
*/
@JvmName("uouhloppifluwcqj")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value Gets or set the job state.
*/
@JvmName("xafsovdpecrqsfgm")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value Gets or sets the job action.
*/
@JvmName("diysvilfiojhgjqk")
public suspend fun action(`value`: JobActionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param argument Gets or sets the job action.
*/
@JvmName("nyuvcsobfriihmrn")
public suspend fun action(argument: suspend JobActionArgsBuilder.() -> Unit) {
val toBeMapped = JobActionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.action = mapped
}
/**
* @param value Gets or sets the job recurrence.
*/
@JvmName("utcnifbqjvvuxwmb")
public suspend fun recurrence(`value`: JobRecurrenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recurrence = mapped
}
/**
* @param argument Gets or sets the job recurrence.
*/
@JvmName("caplelarctmmfqay")
public suspend fun recurrence(argument: suspend JobRecurrenceArgsBuilder.() -> Unit) {
val toBeMapped = JobRecurrenceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.recurrence = mapped
}
/**
* @param value Gets or sets the job start time.
*/
@JvmName("eoddehqdicvxjdmy")
public suspend fun startTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startTime = mapped
}
/**
* @param value Gets or set the job state.
*/
@JvmName("ldmpfqcggmidrsgn")
public suspend fun state(`value`: JobState?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): JobPropertiesArgs = JobPropertiesArgs(
action = action,
recurrence = recurrence,
startTime = startTime,
state = state,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy