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

com.pulumi.awsnative.connect.kotlin.outputs.RuleSendNotificationAction.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.connect.kotlin.outputs

import com.pulumi.awsnative.connect.kotlin.enums.RuleSendNotificationActionContentType
import com.pulumi.awsnative.connect.kotlin.enums.RuleSendNotificationActionDeliveryMethod
import kotlin.String
import kotlin.Suppress

/**
 * 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 RuleSendNotificationAction(
    public val content: String,
    public val contentType: RuleSendNotificationActionContentType,
    public val deliveryMethod: RuleSendNotificationActionDeliveryMethod,
    public val recipient: RuleNotificationRecipientType,
    public val subject: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.connect.outputs.RuleSendNotificationAction): RuleSendNotificationAction = RuleSendNotificationAction(
            content = javaType.content(),
            contentType = javaType.contentType().let({ args0 ->
                com.pulumi.awsnative.connect.kotlin.enums.RuleSendNotificationActionContentType.Companion.toKotlin(args0)
            }),
            deliveryMethod = javaType.deliveryMethod().let({ args0 ->
                com.pulumi.awsnative.connect.kotlin.enums.RuleSendNotificationActionDeliveryMethod.Companion.toKotlin(args0)
            }),
            recipient = javaType.recipient().let({ args0 ->
                com.pulumi.awsnative.connect.kotlin.outputs.RuleNotificationRecipientType.Companion.toKotlin(args0)
            }),
            subject = javaType.subject().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy