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

com.pulumi.azurenative.managednetworkfabric.kotlin.inputs.IpMatchConditionArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.managednetworkfabric.kotlin.inputs

import com.pulumi.azurenative.managednetworkfabric.inputs.IpMatchConditionArgs.builder
import com.pulumi.azurenative.managednetworkfabric.kotlin.enums.PrefixType
import com.pulumi.azurenative.managednetworkfabric.kotlin.enums.SourceDestinationType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Defines the condition that can be filtered using the selected IPs.
 * @property ipGroupNames The List of IP Group Names that need to be matched.
 * @property ipPrefixValues The list of IP Prefixes that need to be matched.
 * @property prefixType IP Prefix Type that needs to be matched.
 * @property type IP Address type that needs to be matched.
 */
public data class IpMatchConditionArgs(
    public val ipGroupNames: Output>? = null,
    public val ipPrefixValues: Output>? = null,
    public val prefixType: Output>? = null,
    public val type: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.managednetworkfabric.inputs.IpMatchConditionArgs =
        com.pulumi.azurenative.managednetworkfabric.inputs.IpMatchConditionArgs.builder()
            .ipGroupNames(ipGroupNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ipPrefixValues(ipPrefixValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .prefixType(
                prefixType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .type(
                type?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [IpMatchConditionArgs].
 */
@PulumiTagMarker
public class IpMatchConditionArgsBuilder internal constructor() {
    private var ipGroupNames: Output>? = null

    private var ipPrefixValues: Output>? = null

    private var prefixType: Output>? = null

    private var type: Output>? = null

    /**
     * @param value The List of IP Group Names that need to be matched.
     */
    @JvmName("oguutvkkmdsitvmx")
    public suspend fun ipGroupNames(`value`: Output>) {
        this.ipGroupNames = value
    }

    @JvmName("asqweecnmjfsfrwn")
    public suspend fun ipGroupNames(vararg values: Output) {
        this.ipGroupNames = Output.all(values.asList())
    }

    /**
     * @param values The List of IP Group Names that need to be matched.
     */
    @JvmName("ohkkjwnljlibcswj")
    public suspend fun ipGroupNames(values: List>) {
        this.ipGroupNames = Output.all(values)
    }

    /**
     * @param value The list of IP Prefixes that need to be matched.
     */
    @JvmName("xgmcrrtbwdmhrdtl")
    public suspend fun ipPrefixValues(`value`: Output>) {
        this.ipPrefixValues = value
    }

    @JvmName("rcphdspqjqijmbta")
    public suspend fun ipPrefixValues(vararg values: Output) {
        this.ipPrefixValues = Output.all(values.asList())
    }

    /**
     * @param values The list of IP Prefixes that need to be matched.
     */
    @JvmName("jlkwxptkdxfpspid")
    public suspend fun ipPrefixValues(values: List>) {
        this.ipPrefixValues = Output.all(values)
    }

    /**
     * @param value IP Prefix Type that needs to be matched.
     */
    @JvmName("jevbkupiefmhipxl")
    public suspend fun prefixType(`value`: Output>) {
        this.prefixType = value
    }

    /**
     * @param value IP Address type that needs to be matched.
     */
    @JvmName("agdjeeoehyxeglql")
    public suspend fun type(`value`: Output>) {
        this.type = value
    }

    /**
     * @param value The List of IP Group Names that need to be matched.
     */
    @JvmName("ypjhqlkvgkaqyoni")
    public suspend fun ipGroupNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipGroupNames = mapped
    }

    /**
     * @param values The List of IP Group Names that need to be matched.
     */
    @JvmName("dhhqjnamfwtowxah")
    public suspend fun ipGroupNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipGroupNames = mapped
    }

    /**
     * @param value The list of IP Prefixes that need to be matched.
     */
    @JvmName("dqotpjfgummidare")
    public suspend fun ipPrefixValues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipPrefixValues = mapped
    }

    /**
     * @param values The list of IP Prefixes that need to be matched.
     */
    @JvmName("luwcfwrwfjorckkc")
    public suspend fun ipPrefixValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipPrefixValues = mapped
    }

    /**
     * @param value IP Prefix Type that needs to be matched.
     */
    @JvmName("gufdxidbabbyaiji")
    public suspend fun prefixType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefixType = mapped
    }

    /**
     * @param value IP Prefix Type that needs to be matched.
     */
    @JvmName("pnhtyismwpygbing")
    public fun prefixType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.prefixType = mapped
    }

    /**
     * @param value IP Prefix Type that needs to be matched.
     */
    @JvmName("pbnapcajqylmfrhe")
    public fun prefixType(`value`: PrefixType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.prefixType = mapped
    }

    /**
     * @param value IP Address type that needs to be matched.
     */
    @JvmName("ifrsqavorvfsolqv")
    public suspend fun type(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value IP Address type that needs to be matched.
     */
    @JvmName("fqfkoewrawfuijos")
    public fun type(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value IP Address type that needs to be matched.
     */
    @JvmName("rhjxjfwlbioebyek")
    public fun type(`value`: SourceDestinationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): IpMatchConditionArgs = IpMatchConditionArgs(
        ipGroupNames = ipGroupNames,
        ipPrefixValues = ipPrefixValues,
        prefixType = prefixType,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy