com.pulumi.awsnative.ses.kotlin.inputs.MailManagerRuleSetSendActionArgs.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.MailManagerRuleSetSendActionArgs.builder
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerRuleSetActionFailurePolicy
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
/**
*
* @property actionFailurePolicy
* @property roleArn
*/
public data class MailManagerRuleSetSendActionArgs(
public val actionFailurePolicy: Output? = null,
public val roleArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ses.inputs.MailManagerRuleSetSendActionArgs =
com.pulumi.awsnative.ses.inputs.MailManagerRuleSetSendActionArgs.builder()
.actionFailurePolicy(
actionFailurePolicy?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MailManagerRuleSetSendActionArgs].
*/
@PulumiTagMarker
public class MailManagerRuleSetSendActionArgsBuilder internal constructor() {
private var actionFailurePolicy: Output? = null
private var roleArn: Output? = null
/**
* @param value
*/
@JvmName("pvpsgntdhkuyropj")
public suspend fun actionFailurePolicy(`value`: Output) {
this.actionFailurePolicy = value
}
/**
* @param value
*/
@JvmName("nbmsuoswtjsiepmv")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value
*/
@JvmName("mkxfxwqywwapjurc")
public suspend fun actionFailurePolicy(`value`: MailManagerRuleSetActionFailurePolicy?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.actionFailurePolicy = mapped
}
/**
* @param value
*/
@JvmName("deysggxhswctcabp")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
internal fun build(): MailManagerRuleSetSendActionArgs = MailManagerRuleSetSendActionArgs(
actionFailurePolicy = actionFailurePolicy,
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
)
}