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

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

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

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

import com.pulumi.azurenative.network.inputs.HubPublicIPAddressesArgs.builder
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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Public IP addresses associated with azure firewall.
 * @property addresses The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
 * @property count The number of Public IP addresses associated with azure firewall.
 */
public data class HubPublicIPAddressesArgs(
    public val addresses: Output>? = null,
    public val count: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.HubPublicIPAddressesArgs =
        com.pulumi.azurenative.network.inputs.HubPublicIPAddressesArgs.builder()
            .addresses(
                addresses?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .count(count?.applyValue({ args0 -> args0 })).build()
}

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

    private var count: Output? = null

    /**
     * @param value The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("tmixvnbweqlquesg")
    public suspend fun addresses(`value`: Output>) {
        this.addresses = value
    }

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

    /**
     * @param values The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("pjlkswrcqgatpupo")
    public suspend fun addresses(values: List>) {
        this.addresses = Output.all(values)
    }

    /**
     * @param value The number of Public IP addresses associated with azure firewall.
     */
    @JvmName("nbpabtammwbyhhit")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("kjqnelrlkxfwsupq")
    public suspend fun addresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addresses = mapped
    }

    /**
     * @param argument The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("ulsdbavnlecnckhq")
    public suspend fun addresses(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AzureFirewallPublicIPAddressArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.addresses = mapped
    }

    /**
     * @param argument The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("wfaehjugohqptusm")
    public suspend fun addresses(vararg argument: suspend AzureFirewallPublicIPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AzureFirewallPublicIPAddressArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.addresses = mapped
    }

    /**
     * @param argument The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("borltjjjdgrwgejp")
    public suspend fun addresses(argument: suspend AzureFirewallPublicIPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AzureFirewallPublicIPAddressArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.addresses = mapped
    }

    /**
     * @param values The list of Public IP addresses associated with azure firewall or IP addresses to be retained.
     */
    @JvmName("civrbtbyebqddagf")
    public suspend fun addresses(vararg values: AzureFirewallPublicIPAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addresses = mapped
    }

    /**
     * @param value The number of Public IP addresses associated with azure firewall.
     */
    @JvmName("ayksgejxqcmicxmo")
    public suspend fun count(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.count = mapped
    }

    internal fun build(): HubPublicIPAddressesArgs = HubPublicIPAddressesArgs(
        addresses = addresses,
        count = count,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy