com.pulumi.cloudflare.kotlin.inputs.EmailRoutingRuleMatcherArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The 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("epdieeqxencaniau")
public suspend fun `field`(`value`: Output) {
this.`field` = value
}
/**
* @param value Type of matcher. Available values: `literal`, `all`
*/
@JvmName("hmpgwnritqrjaxpi")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Value to match on. Required for `type` of `literal`.
*/
@JvmName("cfgwuifnesrgambq")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Field to match on. Required for `type` of `literal`.
*/
@JvmName("kycwgoqpekyjltqi")
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("hfvhapixbdjowupl")
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("bivrqwahkdrnwpid")
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`,
)
}