
com.pulumi.azurenative.alertsmanagement.kotlin.inputs.WeeklyRecurrenceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.alertsmanagement.kotlin.inputs
import com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs.builder
import com.pulumi.azurenative.alertsmanagement.kotlin.enums.DaysOfWeek
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.collections.List
import kotlin.jvm.JvmName
/**
* Weekly recurrence object.
* @property daysOfWeek Specifies the values for weekly recurrence pattern.
* @property endTime End time for recurrence.
* @property recurrenceType Specifies when the recurrence should be applied.
* Expected value is 'Weekly'.
* @property startTime Start time for recurrence.
*/
public data class WeeklyRecurrenceArgs(
public val daysOfWeek: Output>>,
public val endTime: Output? = null,
public val recurrenceType: Output,
public val startTime: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs =
com.pulumi.azurenative.alertsmanagement.inputs.WeeklyRecurrenceArgs.builder()
.daysOfWeek(
daysOfWeek.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
})
}),
)
.endTime(endTime?.applyValue({ args0 -> args0 }))
.recurrenceType(recurrenceType.applyValue({ args0 -> args0 }))
.startTime(startTime?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WeeklyRecurrenceArgs].
*/
@PulumiTagMarker
public class WeeklyRecurrenceArgsBuilder internal constructor() {
private var daysOfWeek: Output>>? = null
private var endTime: Output? = null
private var recurrenceType: Output? = null
private var startTime: Output? = null
/**
* @param value Specifies the values for weekly recurrence pattern.
*/
@JvmName("mfqdcpstxeyjesrd")
public suspend fun daysOfWeek(`value`: Output>>) {
this.daysOfWeek = value
}
@JvmName("bvqusowaaitffaqj")
public suspend fun daysOfWeek(vararg values: Output>) {
this.daysOfWeek = Output.all(values.asList())
}
/**
* @param values Specifies the values for weekly recurrence pattern.
*/
@JvmName("hjpgojabdjtmmqpr")
public suspend fun daysOfWeek(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy