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

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

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

import com.pulumi.azure.network.inputs.FirewallVirtualHubArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property privateIpAddress The private IP address associated with the Firewall.
 * @property publicIpAddresses The list of public IP addresses associated with the Firewall.
 * @property publicIpCount Specifies the number of public IPs to assign to the Firewall. Defaults to `1`.
 * @property virtualHubId Specifies the ID of the Virtual Hub where the Firewall resides in.
 */
public data class FirewallVirtualHubArgs(
    public val privateIpAddress: Output? = null,
    public val publicIpAddresses: Output>? = null,
    public val publicIpCount: Output? = null,
    public val virtualHubId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.FirewallVirtualHubArgs =
        com.pulumi.azure.network.inputs.FirewallVirtualHubArgs.builder()
            .privateIpAddress(privateIpAddress?.applyValue({ args0 -> args0 }))
            .publicIpAddresses(publicIpAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .publicIpCount(publicIpCount?.applyValue({ args0 -> args0 }))
            .virtualHubId(virtualHubId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirewallVirtualHubArgs].
 */
@PulumiTagMarker
public class FirewallVirtualHubArgsBuilder internal constructor() {
    private var privateIpAddress: Output? = null

    private var publicIpAddresses: Output>? = null

    private var publicIpCount: Output? = null

    private var virtualHubId: Output? = null

    /**
     * @param value The private IP address associated with the Firewall.
     */
    @JvmName("udcismidrpdtwicw")
    public suspend fun privateIpAddress(`value`: Output) {
        this.privateIpAddress = value
    }

    /**
     * @param value The list of public IP addresses associated with the Firewall.
     */
    @JvmName("wcvpbgxojnnkpjmf")
    public suspend fun publicIpAddresses(`value`: Output>) {
        this.publicIpAddresses = value
    }

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

    /**
     * @param values The list of public IP addresses associated with the Firewall.
     */
    @JvmName("cqydpoeexykagiib")
    public suspend fun publicIpAddresses(values: List>) {
        this.publicIpAddresses = Output.all(values)
    }

    /**
     * @param value Specifies the number of public IPs to assign to the Firewall. Defaults to `1`.
     */
    @JvmName("untjfoeooanyvnvq")
    public suspend fun publicIpCount(`value`: Output) {
        this.publicIpCount = value
    }

    /**
     * @param value Specifies the ID of the Virtual Hub where the Firewall resides in.
     */
    @JvmName("rpyifuyxurhjsqed")
    public suspend fun virtualHubId(`value`: Output) {
        this.virtualHubId = value
    }

    /**
     * @param value The private IP address associated with the Firewall.
     */
    @JvmName("pwmusvnubjxduuxl")
    public suspend fun privateIpAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpAddress = mapped
    }

    /**
     * @param value The list of public IP addresses associated with the Firewall.
     */
    @JvmName("qvhoicbgbylvcttr")
    public suspend fun publicIpAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpAddresses = mapped
    }

    /**
     * @param values The list of public IP addresses associated with the Firewall.
     */
    @JvmName("hqjntjhcpiuvnfbk")
    public suspend fun publicIpAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIpAddresses = mapped
    }

    /**
     * @param value Specifies the number of public IPs to assign to the Firewall. Defaults to `1`.
     */
    @JvmName("aigjbwpiefmokrpf")
    public suspend fun publicIpCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpCount = mapped
    }

    /**
     * @param value Specifies the ID of the Virtual Hub where the Firewall resides in.
     */
    @JvmName("jgxelxccxakjutiu")
    public suspend fun virtualHubId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualHubId = mapped
    }

    internal fun build(): FirewallVirtualHubArgs = FirewallVirtualHubArgs(
        privateIpAddress = privateIpAddress,
        publicIpAddresses = publicIpAddresses,
        publicIpCount = publicIpCount,
        virtualHubId = virtualHubId ?: throw PulumiNullFieldException("virtualHubId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy