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

com.pulumi.awsnative.ses.kotlin.inputs.MailManagerTrafficPolicyPolicyStatementArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ses.kotlin.inputs

import com.pulumi.awsnative.ses.inputs.MailManagerTrafficPolicyPolicyStatementArgs.builder
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerTrafficPolicyAcceptAction
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.Any
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property action The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
 * @property conditions The list of conditions to apply to incoming messages for filtering email traffic.
 */
public data class MailManagerTrafficPolicyPolicyStatementArgs(
    public val action: Output,
    public val conditions: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ses.inputs.MailManagerTrafficPolicyPolicyStatementArgs = com.pulumi.awsnative.ses.inputs.MailManagerTrafficPolicyPolicyStatementArgs.builder()
        .action(action.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .conditions(conditions.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [MailManagerTrafficPolicyPolicyStatementArgs].
 */
@PulumiTagMarker
public class MailManagerTrafficPolicyPolicyStatementArgsBuilder internal constructor() {
    private var action: Output? = null

    private var conditions: Output>? = null

    /**
     * @param value The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
     */
    @JvmName("npciawahwtdjymbd")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The list of conditions to apply to incoming messages for filtering email traffic.
     */
    @JvmName("ritiggnltvowrjxm")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

    @JvmName("xlsfjetvmonmpmhf")
    public suspend fun conditions(vararg values: Output) {
        this.conditions = Output.all(values.asList())
    }

    /**
     * @param values The list of conditions to apply to incoming messages for filtering email traffic.
     */
    @JvmName("cyqeoowtedreswkr")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
     */
    @JvmName("judjppyiblyynvrx")
    public suspend fun action(`value`: MailManagerTrafficPolicyAcceptAction) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value The list of conditions to apply to incoming messages for filtering email traffic.
     */
    @JvmName("ivqbmyfluuoyocgb")
    public suspend fun conditions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param values The list of conditions to apply to incoming messages for filtering email traffic.
     */
    @JvmName("xqcwahsiquhiuuvf")
    public suspend fun conditions(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    internal fun build(): MailManagerTrafficPolicyPolicyStatementArgs =
        MailManagerTrafficPolicyPolicyStatementArgs(
            action = action ?: throw PulumiNullFieldException("action"),
            conditions = conditions ?: throw PulumiNullFieldException("conditions"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy