com.pulumi.awsnative.ses.kotlin.inputs.TemplateArgs.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.inputs
import com.pulumi.awsnative.ses.inputs.TemplateArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* 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 TemplateArgs(
public val htmlPart: Output? = null,
public val subjectPart: Output,
public val templateName: Output? = null,
public val textPart: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ses.inputs.TemplateArgs =
com.pulumi.awsnative.ses.inputs.TemplateArgs.builder()
.htmlPart(htmlPart?.applyValue({ args0 -> args0 }))
.subjectPart(subjectPart.applyValue({ args0 -> args0 }))
.templateName(templateName?.applyValue({ args0 -> args0 }))
.textPart(textPart?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TemplateArgs].
*/
@PulumiTagMarker
public class TemplateArgsBuilder internal constructor() {
private var htmlPart: Output? = null
private var subjectPart: Output? = null
private var templateName: Output? = null
private var textPart: Output? = null
/**
* @param value The HTML body of the email.
*/
@JvmName("kdxokfvesdigqaij")
public suspend fun htmlPart(`value`: Output) {
this.htmlPart = value
}
/**
* @param value The subject line of the email.
*/
@JvmName("hegpltoxnarhbmys")
public suspend fun subjectPart(`value`: Output) {
this.subjectPart = value
}
/**
* @param value The name of the template.
*/
@JvmName("oqvgmtchxhokgwtl")
public suspend fun templateName(`value`: Output) {
this.templateName = value
}
/**
* @param value The email body that is visible to recipients whose email clients do not display HTML content.
*/
@JvmName("gqfwwptbnufnubvm")
public suspend fun textPart(`value`: Output) {
this.textPart = value
}
/**
* @param value The HTML body of the email.
*/
@JvmName("fvdwsgcjmpudyogu")
public suspend fun htmlPart(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.htmlPart = mapped
}
/**
* @param value The subject line of the email.
*/
@JvmName("qjayqryatnlcepde")
public suspend fun subjectPart(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.subjectPart = mapped
}
/**
* @param value The name of the template.
*/
@JvmName("ednfejwpdfwfmlnm")
public suspend fun templateName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.templateName = mapped
}
/**
* @param value The email body that is visible to recipients whose email clients do not display HTML content.
*/
@JvmName("bjdtpwplrekugdqk")
public suspend fun textPart(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.textPart = mapped
}
internal fun build(): TemplateArgs = TemplateArgs(
htmlPart = htmlPart,
subjectPart = subjectPart ?: throw PulumiNullFieldException("subjectPart"),
templateName = templateName,
textPart = textPart,
)
}