com.pulumi.gcp.eventarc.kotlin.inputs.TriggerMatchingCriteriaArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.eventarc.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.eventarc.inputs.TriggerMatchingCriteriaArgs.builder
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 attribute Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
* @property operator Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
* @property value Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
* - - -
*/
public data class TriggerMatchingCriteriaArgs(
public val attribute: Output,
public val `operator`: Output? = null,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.eventarc.inputs.TriggerMatchingCriteriaArgs =
com.pulumi.gcp.eventarc.inputs.TriggerMatchingCriteriaArgs.builder()
.attribute(attribute.applyValue({ args0 -> args0 }))
.`operator`(`operator`?.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerMatchingCriteriaArgs].
*/
@PulumiTagMarker
public class TriggerMatchingCriteriaArgsBuilder internal constructor() {
private var attribute: Output? = null
private var `operator`: Output? = null
private var `value`: Output? = null
/**
* @param value Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
*/
@JvmName("ewdclmngcrmcxauv")
public suspend fun attribute(`value`: Output) {
this.attribute = value
}
/**
* @param value Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
*/
@JvmName("luggcqggadpalhbf")
public suspend fun `operator`(`value`: Output) {
this.`operator` = value
}
/**
* @param value Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
* - - -
*/
@JvmName("dleyaosujxyqwfoa")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
*/
@JvmName("xdtmtxsvyrvqngoo")
public suspend fun attribute(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.attribute = mapped
}
/**
* @param value Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is `match-path-pattern`.
*/
@JvmName("mhwoonevrlmkmmuk")
public suspend fun `operator`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`operator` = mapped
}
/**
* @param value Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
* - - -
*/
@JvmName("dajsrhjvxxfwptwp")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): TriggerMatchingCriteriaArgs = TriggerMatchingCriteriaArgs(
attribute = attribute ?: throw PulumiNullFieldException("attribute"),
`operator` = `operator`,
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy