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

com.pulumi.cloudflare.kotlin.inputs.EmailRoutingCatchAllActionArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.EmailRoutingCatchAllActionArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property type Type of supported action. Available values: `drop`, `forward`, `worker`.
 * @property values A list with items in the following form.
 */
public data class EmailRoutingCatchAllActionArgs(
    public val type: Output,
    public val values: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.EmailRoutingCatchAllActionArgs =
        com.pulumi.cloudflare.inputs.EmailRoutingCatchAllActionArgs.builder()
            .type(type.applyValue({ args0 -> args0 }))
            .values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [EmailRoutingCatchAllActionArgs].
 */
@PulumiTagMarker
public class EmailRoutingCatchAllActionArgsBuilder internal constructor() {
    private var type: Output? = null

    private var values: Output>? = null

    /**
     * @param value Type of supported action. Available values: `drop`, `forward`, `worker`.
     */
    @JvmName("iivbihtwujwfagwn")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A list with items in the following form.
     */
    @JvmName("gijsmjaxchwtdlny")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values A list with items in the following form.
     */
    @JvmName("hlvabhubusqmddxf")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value Type of supported action. Available values: `drop`, `forward`, `worker`.
     */
    @JvmName("trafncuaquhvbdbq")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value A list with items in the following form.
     */
    @JvmName("bfkmprhkqhcvjxoy")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values A list with items in the following form.
     */
    @JvmName("sgmeaylvnwwgoeml")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): EmailRoutingCatchAllActionArgs = EmailRoutingCatchAllActionArgs(
        type = type ?: throw PulumiNullFieldException("type"),
        values = values ?: throw PulumiNullFieldException("values"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy