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

com.pulumi.cloudflare.kotlin.inputs.EmailRoutingRuleMatcherArgs.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.EmailRoutingRuleMatcherArgs.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.jvm.JvmName

/**
 *
 * @property field Field to match on. Required for `type` of `literal`.
 * @property type Type of matcher. Available values: `literal`, `all`
 * @property value Value to match on. Required for `type` of `literal`.
 */
public data class EmailRoutingRuleMatcherArgs(
    public val `field`: Output? = null,
    public val type: Output,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.EmailRoutingRuleMatcherArgs =
        com.pulumi.cloudflare.inputs.EmailRoutingRuleMatcherArgs.builder()
            .`field`(`field`?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EmailRoutingRuleMatcherArgs].
 */
@PulumiTagMarker
public class EmailRoutingRuleMatcherArgsBuilder internal constructor() {
    private var `field`: Output? = null

    private var type: Output? = null

    private var `value`: Output? = null

    /**
     * @param value Field to match on. Required for `type` of `literal`.
     */
    @JvmName("kycqbccfosfpmett")
    public suspend fun `field`(`value`: Output) {
        this.`field` = value
    }

    /**
     * @param value Type of matcher. Available values: `literal`, `all`
     */
    @JvmName("nhpkindxjsqhuvwv")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Value to match on. Required for `type` of `literal`.
     */
    @JvmName("srrrcldmhglhtdos")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value Field to match on. Required for `type` of `literal`.
     */
    @JvmName("dgdkryawyimbjqvf")
    public suspend fun `field`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`field` = mapped
    }

    /**
     * @param value Type of matcher. Available values: `literal`, `all`
     */
    @JvmName("intyuawivdgpekra")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Value to match on. Required for `type` of `literal`.
     */
    @JvmName("ugmwqtsdqgqmagdl")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): EmailRoutingRuleMatcherArgs = EmailRoutingRuleMatcherArgs(
        `field` = `field`,
        type = type ?: throw PulumiNullFieldException("type"),
        `value` = `value`,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy