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

com.pulumi.azurenative.network.kotlin.inputs.ApplicationGatewayFrontendIPConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.ApplicationGatewayFrontendIPConfigurationArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.IPAllocationMethod
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Frontend IP configuration of an application gateway.
 * @property id Resource ID.
 * @property name Name of the frontend IP configuration that is unique within an Application Gateway.
 * @property privateIPAddress PrivateIPAddress of the network interface IP Configuration.
 * @property privateIPAllocationMethod The private IP address allocation method.
 * @property privateLinkConfiguration Reference to the application gateway private link configuration.
 * @property publicIPAddress Reference to the PublicIP resource.
 * @property subnet Reference to the subnet resource.
 */
public data class ApplicationGatewayFrontendIPConfigurationArgs(
    public val id: Output? = null,
    public val name: Output? = null,
    public val privateIPAddress: Output? = null,
    public val privateIPAllocationMethod: Output>? = null,
    public val privateLinkConfiguration: Output? = null,
    public val publicIPAddress: Output? = null,
    public val subnet: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ApplicationGatewayFrontendIPConfigurationArgs =
        com.pulumi.azurenative.network.inputs.ApplicationGatewayFrontendIPConfigurationArgs.builder()
            .id(id?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .privateIPAddress(privateIPAddress?.applyValue({ args0 -> args0 }))
            .privateIPAllocationMethod(
                privateIPAllocationMethod?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .privateLinkConfiguration(
                privateLinkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .publicIPAddress(publicIPAddress?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .subnet(subnet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var name: Output? = null

    private var privateIPAddress: Output? = null

    private var privateIPAllocationMethod: Output>? = null

    private var privateLinkConfiguration: Output? = null

    private var publicIPAddress: Output? = null

    private var subnet: Output? = null

    /**
     * @param value Resource ID.
     */
    @JvmName("yvahxeipsgejfsmu")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Name of the frontend IP configuration that is unique within an Application Gateway.
     */
    @JvmName("ykrdqcbjspkwfhmq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value PrivateIPAddress of the network interface IP Configuration.
     */
    @JvmName("dnotjmxtbhsxlkms")
    public suspend fun privateIPAddress(`value`: Output) {
        this.privateIPAddress = value
    }

    /**
     * @param value The private IP address allocation method.
     */
    @JvmName("xqrfmvsalilbbsxh")
    public suspend fun privateIPAllocationMethod(`value`: Output>) {
        this.privateIPAllocationMethod = value
    }

    /**
     * @param value Reference to the application gateway private link configuration.
     */
    @JvmName("wosvetjqwuxgewub")
    public suspend fun privateLinkConfiguration(`value`: Output) {
        this.privateLinkConfiguration = value
    }

    /**
     * @param value Reference to the PublicIP resource.
     */
    @JvmName("mqlxncextefqvhdc")
    public suspend fun publicIPAddress(`value`: Output) {
        this.publicIPAddress = value
    }

    /**
     * @param value Reference to the subnet resource.
     */
    @JvmName("kfcrqbhblkpefbrq")
    public suspend fun subnet(`value`: Output) {
        this.subnet = value
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("gydoagsxyqngvpyf")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Name of the frontend IP configuration that is unique within an Application Gateway.
     */
    @JvmName("cwbsapmpnrktxhuu")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value PrivateIPAddress of the network interface IP Configuration.
     */
    @JvmName("ktcuqgvvksqxiuru")
    public suspend fun privateIPAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIPAddress = mapped
    }

    /**
     * @param value The private IP address allocation method.
     */
    @JvmName("wsryodsdnfeptyty")
    public suspend fun privateIPAllocationMethod(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIPAllocationMethod = mapped
    }

    /**
     * @param value The private IP address allocation method.
     */
    @JvmName("yldxyaqwdpafbwga")
    public fun privateIPAllocationMethod(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIPAllocationMethod = mapped
    }

    /**
     * @param value The private IP address allocation method.
     */
    @JvmName("bqqjecjlydvudkep")
    public fun privateIPAllocationMethod(`value`: IPAllocationMethod) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIPAllocationMethod = mapped
    }

    /**
     * @param value Reference to the application gateway private link configuration.
     */
    @JvmName("gkuxdnyxbrrdkprx")
    public suspend fun privateLinkConfiguration(`value`: SubResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateLinkConfiguration = mapped
    }

    /**
     * @param argument Reference to the application gateway private link configuration.
     */
    @JvmName("shnyvendttjqemut")
    public suspend fun privateLinkConfiguration(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.privateLinkConfiguration = mapped
    }

    /**
     * @param value Reference to the PublicIP resource.
     */
    @JvmName("xnoynrgmasasmsob")
    public suspend fun publicIPAddress(`value`: SubResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIPAddress = mapped
    }

    /**
     * @param argument Reference to the PublicIP resource.
     */
    @JvmName("kjkvqdvsnoupsvou")
    public suspend fun publicIPAddress(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.publicIPAddress = mapped
    }

    /**
     * @param value Reference to the subnet resource.
     */
    @JvmName("fcyqbyweufdmtfup")
    public suspend fun subnet(`value`: SubResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnet = mapped
    }

    /**
     * @param argument Reference to the subnet resource.
     */
    @JvmName("bqblqdymgigcvxjk")
    public suspend fun subnet(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.subnet = mapped
    }

    internal fun build(): ApplicationGatewayFrontendIPConfigurationArgs =
        ApplicationGatewayFrontendIPConfigurationArgs(
            id = id,
            name = name,
            privateIPAddress = privateIPAddress,
            privateIPAllocationMethod = privateIPAllocationMethod,
            privateLinkConfiguration = privateLinkConfiguration,
            publicIPAddress = publicIPAddress,
            subnet = subnet,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy