com.pulumi.awsnative.connect.kotlin.outputs.RuleSendNotificationAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.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),
)
}
}