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

com.pulumi.awsnative.ses.kotlin.inputs.MailManagerRuleSetRuleIpExpressionArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.ses.inputs.MailManagerRuleSetRuleIpExpressionArgs.builder
import com.pulumi.awsnative.ses.kotlin.enums.MailManagerRuleSetRuleIpOperator
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property evaluate
 * @property operator
 * @property values
 */
public data class MailManagerRuleSetRuleIpExpressionArgs(
    public val evaluate: Output,
    public val `operator`: Output,
    public val values: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ses.inputs.MailManagerRuleSetRuleIpExpressionArgs =
        com.pulumi.awsnative.ses.inputs.MailManagerRuleSetRuleIpExpressionArgs.builder()
            .evaluate(evaluate.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`operator`(`operator`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [MailManagerRuleSetRuleIpExpressionArgs].
 */
@PulumiTagMarker
public class MailManagerRuleSetRuleIpExpressionArgsBuilder internal constructor() {
    private var evaluate: Output? = null

    private var `operator`: Output? = null

    private var values: Output>? = null

    /**
     * @param value
     */
    @JvmName("tawxxmbgpxwqpfep")
    public suspend fun evaluate(`value`: Output) {
        this.evaluate = value
    }

    /**
     * @param value
     */
    @JvmName("ypuycytycobyedag")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value
     */
    @JvmName("tpvnxiwkraktfauq")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values
     */
    @JvmName("xulkbhdfgawskhls")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("ykgwjkrttombfwkt")
    public suspend fun evaluate(`value`: MailManagerRuleSetRuleIpToEvaluatePropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.evaluate = mapped
    }

    /**
     * @param argument
     */
    @JvmName("cgbiggqahqjlcnbv")
    public suspend fun evaluate(argument: suspend MailManagerRuleSetRuleIpToEvaluatePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = MailManagerRuleSetRuleIpToEvaluatePropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.evaluate = mapped
    }

    /**
     * @param value
     */
    @JvmName("ahaljqpkxsplhepx")
    public suspend fun `operator`(`value`: MailManagerRuleSetRuleIpOperator) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value
     */
    @JvmName("yghydmduiwelnjfj")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values
     */
    @JvmName("ypereepatreaxjon")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): MailManagerRuleSetRuleIpExpressionArgs =
        MailManagerRuleSetRuleIpExpressionArgs(
            evaluate = evaluate ?: throw PulumiNullFieldException("evaluate"),
            `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
            values = values ?: throw PulumiNullFieldException("values"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy