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

com.pulumi.awsnative.ses.kotlin.outputs.Template.kt Maven / Gradle / Ivy

@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy