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

com.pulumi.awsnative.ses.kotlin.MailManagerRuleSetArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ses.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.ses.MailManagerRuleSetArgs.builder
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerRuleSetRuleArgs
import com.pulumi.awsnative.ses.kotlin.inputs.MailManagerRuleSetRuleArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::SES::MailManagerRuleSet Resource Type
 * @property ruleSetName A user-friendly name for the rule set.
 * @property rules Conditional rules that are evaluated for determining actions on email.
 * @property tags The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
 */
public data class MailManagerRuleSetArgs(
    public val ruleSetName: Output? = null,
    public val rules: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ses.MailManagerRuleSetArgs =
        com.pulumi.awsnative.ses.MailManagerRuleSetArgs.builder()
            .ruleSetName(ruleSetName?.applyValue({ args0 -> args0 }))
            .rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MailManagerRuleSetArgs].
 */
@PulumiTagMarker
public class MailManagerRuleSetArgsBuilder internal constructor() {
    private var ruleSetName: Output? = null

    private var rules: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value A user-friendly name for the rule set.
     */
    @JvmName("qxyfwgrwgvmmmplr")
    public suspend fun ruleSetName(`value`: Output) {
        this.ruleSetName = value
    }

    /**
     * @param value Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("xuoxisiynpqouhak")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("wbpxvolrwelyadee")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("lebmytdhcxcfbsuk")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("hyqeefsabjoswmxh")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A user-friendly name for the rule set.
     */
    @JvmName("inylesgunuiqxucl")
    public suspend fun ruleSetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleSetName = mapped
    }

    /**
     * @param value Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("vgoychegecavhnlx")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("kbxdbawgasvxqmbp")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MailManagerRuleSetRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("srtneqotstwsabpk")
    public suspend fun rules(vararg argument: suspend MailManagerRuleSetRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MailManagerRuleSetRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("ygtpcwdcfboobuic")
    public suspend fun rules(argument: suspend MailManagerRuleSetRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MailManagerRuleSetRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values Conditional rules that are evaluated for determining actions on email.
     */
    @JvmName("ydtblfnimyhrkdev")
    public suspend fun rules(vararg values: MailManagerRuleSetRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("oyuvtglbwsrxatfu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("uxarmvlwajfqkxyo")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("nrqufikvlsbsefxy")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("jpnktyuhsdajdajy")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
     */
    @JvmName("tfgxnutxhwokwnoa")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): MailManagerRuleSetArgs = MailManagerRuleSetArgs(
        ruleSetName = ruleSetName,
        rules = rules,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy