All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.connect.kotlin.inputs.RuleSendNotificationActionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connect.kotlin.inputs

import com.pulumi.awsnative.connect.inputs.RuleSendNotificationActionArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.RuleSendNotificationActionContentType
import com.pulumi.awsnative.connect.kotlin.enums.RuleSendNotificationActionDeliveryMethod
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The definition for sending notification action.
 * @property content The content of notification.
 * @property contentType The type of content.
 * @property deliveryMethod The means of delivery.
 * @property recipient
 * @property subject The subject of notification.
 */
public data class RuleSendNotificationActionArgs(
    public val content: Output,
    public val contentType: Output,
    public val deliveryMethod: Output,
    public val recipient: Output,
    public val subject: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.RuleSendNotificationActionArgs =
        com.pulumi.awsnative.connect.inputs.RuleSendNotificationActionArgs.builder()
            .content(content.applyValue({ args0 -> args0 }))
            .contentType(contentType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .deliveryMethod(deliveryMethod.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .recipient(recipient.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subject(subject?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RuleSendNotificationActionArgs].
 */
@PulumiTagMarker
public class RuleSendNotificationActionArgsBuilder internal constructor() {
    private var content: Output? = null

    private var contentType: Output? = null

    private var deliveryMethod: Output? = null

    private var recipient: Output? = null

    private var subject: Output? = null

    /**
     * @param value The content of notification.
     */
    @JvmName("xhcibdnnxiydhyym")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The type of content.
     */
    @JvmName("bmhtfaxoteexvohq")
    public suspend fun contentType(`value`: Output) {
        this.contentType = value
    }

    /**
     * @param value The means of delivery.
     */
    @JvmName("oasiwqxfmxboncmt")
    public suspend fun deliveryMethod(`value`: Output) {
        this.deliveryMethod = value
    }

    /**
     * @param value
     */
    @JvmName("dqgmtyorjewlejmv")
    public suspend fun recipient(`value`: Output) {
        this.recipient = value
    }

    /**
     * @param value The subject of notification.
     */
    @JvmName("qxvbhkdcthxuaena")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value The content of notification.
     */
    @JvmName("wskepodviroapcrx")
    public suspend fun content(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value The type of content.
     */
    @JvmName("thgcdysjnhxoilnw")
    public suspend fun contentType(`value`: RuleSendNotificationActionContentType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value The means of delivery.
     */
    @JvmName("ulbfikclrqllxjja")
    public suspend fun deliveryMethod(`value`: RuleSendNotificationActionDeliveryMethod) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deliveryMethod = mapped
    }

    /**
     * @param value
     */
    @JvmName("rgxfjmmvwvitpkie")
    public suspend fun recipient(`value`: RuleNotificationRecipientTypeArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recipient = mapped
    }

    /**
     * @param argument
     */
    @JvmName("jrmgcfprutjaqgba")
    public suspend fun recipient(argument: suspend RuleNotificationRecipientTypeArgsBuilder.() -> Unit) {
        val toBeMapped = RuleNotificationRecipientTypeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.recipient = mapped
    }

    /**
     * @param value The subject of notification.
     */
    @JvmName("ggbakhlbtuiovhwe")
    public suspend fun subject(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    internal fun build(): RuleSendNotificationActionArgs = RuleSendNotificationActionArgs(
        content = content ?: throw PulumiNullFieldException("content"),
        contentType = contentType ?: throw PulumiNullFieldException("contentType"),
        deliveryMethod = deliveryMethod ?: throw PulumiNullFieldException("deliveryMethod"),
        recipient = recipient ?: throw PulumiNullFieldException("recipient"),
        subject = subject,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy