com.pulumi.awsnative.ses.kotlin.outputs.Template.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.ses.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* The content of the email, composed of a subject line, an HTML part, and a text-only part
* @property htmlPart The HTML body of the email.
* @property subjectPart The subject line of the email.
* @property templateName The name of the template.
* @property textPart The email body that is visible to recipients whose email clients do not display HTML content.
*/
public data class Template(
public val htmlPart: String? = null,
public val subjectPart: String,
public val templateName: String? = null,
public val textPart: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ses.outputs.Template): Template = Template(
htmlPart = javaType.htmlPart().map({ args0 -> args0 }).orElse(null),
subjectPart = javaType.subjectPart(),
templateName = javaType.templateName().map({ args0 -> args0 }).orElse(null),
textPart = javaType.textPart().map({ args0 -> args0 }).orElse(null),
)
}
}