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

com.pulumi.gcp.networkservices.kotlin.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs.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: 8.10.0.0
Show newest version
@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>) {
        this.metadataLabels = Output.all(values)
    }

    /**
     * @param value Specifies how matching should be done.
     * Possible values are: `MATCH_ANY`, `MATCH_ALL`.
     */
    @JvmName("wmexdqkkeaehmygg")
    public suspend fun metadataLabelMatchCriteria(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadataLabelMatchCriteria = mapped
    }

    /**
     * @param value The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
     * Structure is documented below.
     */
    @JvmName("fyxtmtmicmleeaud")
    public suspend fun metadataLabels(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadataLabels = mapped
    }

    /**
     * @param argument The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
     * Structure is documented below.
     */
    @JvmName("hxchenppcwpmektx")
    public suspend fun metadataLabels(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.metadataLabels = mapped
    }

    /**
     * @param argument The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
     * Structure is documented below.
     */
    @JvmName("drujmmvxqetqwrka")
    public suspend fun metadataLabels(vararg argument: suspend EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.metadataLabels = mapped
    }

    /**
     * @param argument The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
     * Structure is documented below.
     */
    @JvmName("hmxqxbcbhqpjkari")
    public suspend fun metadataLabels(argument: suspend EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.metadataLabels = mapped
    }

    /**
     * @param values The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
     * Structure is documented below.
     */
    @JvmName("lgqrtgnduapkhyra")
    public suspend fun metadataLabels(vararg values: EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadataLabels = mapped
    }

    internal fun build(): EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs =
        EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs(
            metadataLabelMatchCriteria = metadataLabelMatchCriteria ?: throw
                PulumiNullFieldException("metadataLabelMatchCriteria"),
            metadataLabels = metadataLabels,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy