com.pulumi.azurenative.devtestlab.kotlin.inputs.EventArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.devtestlab.kotlin.inputs
import com.pulumi.azurenative.devtestlab.inputs.EventArgs.builder
import com.pulumi.azurenative.devtestlab.kotlin.enums.NotificationChannelEventType
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
/**
* An event to be notified for.
* @property eventName The event type for which this notification is enabled (i.e. AutoShutdown, Cost)
*/
public data class EventArgs(
public val eventName: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devtestlab.inputs.EventArgs =
com.pulumi.azurenative.devtestlab.inputs.EventArgs.builder()
.eventName(
eventName?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [EventArgs].
*/
@PulumiTagMarker
public class EventArgsBuilder internal constructor() {
private var eventName: Output>? = null
/**
* @param value The event type for which this notification is enabled (i.e. AutoShutdown, Cost)
*/
@JvmName("ufcetwhnyvmiroyg")
public suspend fun eventName(`value`: Output>) {
this.eventName = value
}
/**
* @param value The event type for which this notification is enabled (i.e. AutoShutdown, Cost)
*/
@JvmName("etejywdcbpoeesjq")
public suspend fun eventName(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.eventName = mapped
}
/**
* @param value The event type for which this notification is enabled (i.e. AutoShutdown, Cost)
*/
@JvmName("ayruouurvsyvrair")
public fun eventName(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventName = mapped
}
/**
* @param value The event type for which this notification is enabled (i.e. AutoShutdown, Cost)
*/
@JvmName("bgbgshdfiisgbqfc")
public fun eventName(`value`: NotificationChannelEventType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventName = mapped
}
internal fun build(): EventArgs = EventArgs(
eventName = eventName,
)
}