com.pulumi.gcp.networkservices.kotlin.inputs.EndpointPolicyEndpointMatcherArgs.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.EndpointPolicyEndpointMatcherArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property metadataLabelMatcher The matcher is based on node metadata presented by xDS clients.
* Structure is documented below.
*/
public data class EndpointPolicyEndpointMatcherArgs(
public val metadataLabelMatcher: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherArgs =
com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherArgs.builder()
.metadataLabelMatcher(
metadataLabelMatcher.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [EndpointPolicyEndpointMatcherArgs].
*/
@PulumiTagMarker
public class EndpointPolicyEndpointMatcherArgsBuilder internal constructor() {
private var metadataLabelMatcher: Output? =
null
/**
* @param value The matcher is based on node metadata presented by xDS clients.
* Structure is documented below.
*/
@JvmName("gwejmyeuttdehepk")
public suspend fun metadataLabelMatcher(`value`: Output) {
this.metadataLabelMatcher = value
}
/**
* @param value The matcher is based on node metadata presented by xDS clients.
* Structure is documented below.
*/
@JvmName("kxduqfowmrukaipt")
public suspend fun metadataLabelMatcher(`value`: EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadataLabelMatcher = mapped
}
/**
* @param argument The matcher is based on node metadata presented by xDS clients.
* Structure is documented below.
*/
@JvmName("svqntnfaykseylwr")
public suspend fun metadataLabelMatcher(argument: suspend EndpointPolicyEndpointMatcherMetadataLabelMatcherArgsBuilder.() -> Unit) {
val toBeMapped = EndpointPolicyEndpointMatcherMetadataLabelMatcherArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.metadataLabelMatcher = mapped
}
internal fun build(): EndpointPolicyEndpointMatcherArgs = EndpointPolicyEndpointMatcherArgs(
metadataLabelMatcher = metadataLabelMatcher ?: throw
PulumiNullFieldException("metadataLabelMatcher"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy