![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ses.kotlin.inputs.TemplateArgs.kt Maven / Gradle / Ivy
@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("emfwqipbshamikyv")
public suspend fun htmlPart(`value`: Output) {
this.htmlPart = value
}
/**
* @param value The subject line of the email.
*/
@JvmName("ebqyvdluefkhpwus")
public suspend fun subjectPart(`value`: Output) {
this.subjectPart = value
}
/**
* @param value The name of the template.
*/
@JvmName("cagwipffgtsubglu")
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("ivnkmrdjthgoqeic")
public suspend fun textPart(`value`: Output) {
this.textPart = value
}
/**
* @param value The HTML body of the email.
*/
@JvmName("ivyorwammkvnouwc")
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("nlhxyqjfdqibmabn")
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("xjdovqvnnoddunle")
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("dygcquktlxapiihe")
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,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy