com.pulumi.gcp.networkservices.kotlin.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs.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.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs.builder
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 metadataLabelMatchCriteria Specifies how matching should be done.
* Possible values are: `MATCH_ANY`, `MATCH_ALL`.
* @property metadataLabels The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
* Structure is documented below.
*/
public data class EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs(
public val metadataLabelMatchCriteria: Output,
public val metadataLabels: Output>? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs =
com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs.builder()
.metadataLabelMatchCriteria(metadataLabelMatchCriteria.applyValue({ args0 -> args0 }))
.metadataLabels(
metadataLabels?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs].
*/
@PulumiTagMarker
public class EndpointPolicyEndpointMatcherMetadataLabelMatcherArgsBuilder internal constructor() {
private var metadataLabelMatchCriteria: Output? = null
private var metadataLabels:
Output>? = null
/**
* @param value Specifies how matching should be done.
* Possible values are: `MATCH_ANY`, `MATCH_ALL`.
*/
@JvmName("yqjyhnwwtgqhdtnx")
public suspend fun metadataLabelMatchCriteria(`value`: Output) {
this.metadataLabelMatchCriteria = value
}
/**
* @param value The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
* Structure is documented below.
*/
@JvmName("eamefyemxvxbssko")
public suspend fun metadataLabels(`value`: Output>) {
this.metadataLabels = value
}
@JvmName("vvdpyupakkpfbxcl")
public suspend fun metadataLabels(vararg values: Output) {
this.metadataLabels = Output.all(values.asList())
}
/**
* @param values The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
* Structure is documented below.
*/
@JvmName("aqqekpikrubgguof")
public suspend fun metadataLabels(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy