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

com.pulumi.azure.network.kotlin.inputs.ApplicationGatewayPrivateLinkConfigurationArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewayPrivateLinkConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 id The ID of the Rewrite Rule Set
 * @property ipConfigurations One or more `ip_configuration` blocks as defined below.
 * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
 * ```bash
 * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
 * ```
 * @property name The name of the private link configuration.
 */
public data class ApplicationGatewayPrivateLinkConfigurationArgs(
    public val id: Output? = null,
    public val ipConfigurations: Output>,
    public val name: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewayPrivateLinkConfigurationArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewayPrivateLinkConfigurationArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .ipConfigurations(
                ipConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGatewayPrivateLinkConfigurationArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayPrivateLinkConfigurationArgsBuilder internal constructor() {
    private var id: Output? = null

    private var ipConfigurations:
        Output>? = null

    private var name: Output? = null

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("gqwfmrgdxsqgenjy")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("fpsctrotkxuawpko")
    public suspend fun ipConfigurations(`value`: Output>) {
        this.ipConfigurations = value
    }

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

    /**
     * @param values One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("xuxapcoqfkwhtnfi")
    public suspend fun ipConfigurations(values: List>) {
        this.ipConfigurations = Output.all(values)
    }

    /**
     * @param value The name of the private link configuration.
     */
    @JvmName("ogwgcvbqjtflgmca")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("jdgnqhhqskrkebyt")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("uywotpedulbyfidy")
    public suspend fun ipConfigurations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param argument One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("yvsdvhproixbsqwo")
    public suspend fun ipConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationGatewayPrivateLinkConfigurationIpConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("xqymculftrsrjwth")
    public suspend fun ipConfigurations(vararg argument: suspend ApplicationGatewayPrivateLinkConfigurationIpConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationGatewayPrivateLinkConfigurationIpConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param argument One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("sjimbwlxjpkldxre")
    public suspend fun ipConfigurations(argument: suspend ApplicationGatewayPrivateLinkConfigurationIpConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ApplicationGatewayPrivateLinkConfigurationIpConfigurationArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.ipConfigurations = mapped
    }

    /**
     * @param values One or more `ip_configuration` blocks as defined below.
     * > **Please Note**: The `AllowApplicationGatewayPrivateLink` feature must be registered on the subscription before enabling private link
     * ```bash
     * az feature register --name AllowApplicationGatewayPrivateLink --namespace Microsoft.Network
     * ```
     */
    @JvmName("adfssdhgsdskyush")
    public suspend fun ipConfigurations(vararg values: ApplicationGatewayPrivateLinkConfigurationIpConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipConfigurations = mapped
    }

    /**
     * @param value The name of the private link configuration.
     */
    @JvmName("xwyapcmqijbglgoh")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ApplicationGatewayPrivateLinkConfigurationArgs =
        ApplicationGatewayPrivateLinkConfigurationArgs(
            id = id,
            ipConfigurations = ipConfigurations ?: throw PulumiNullFieldException("ipConfigurations"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy