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

com.pulumi.azure.compute.kotlin.inputs.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs.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.compute.kotlin.inputs

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

/**
 *
 * @property domainNameLabel The Prefix which should be used for the Domain Name Label for each Virtual Machine Instance. Azure concatenates the Domain Name Label and Virtual Machine Index to create a unique Domain Name Label for each Virtual Machine.
 * @property idleTimeoutInMinutes The Idle Timeout in Minutes for the Public IP Address. Possible values are in the range `4` to `32`.
 * @property ipTags One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
 * @property name The Name of the Public IP Address Configuration.
 * @property publicIpPrefixId The ID of the Public IP Address Prefix from where Public IP Addresses should be allocated. Changing this forces a new resource to be created.
 * > **Note:** This functionality is in Preview and must be opted into via `az feature register --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress` and then `az provider register -n Microsoft.Network`.
 * @property version The Internet Protocol Version which should be used for this public IP address. Possible values are `IPv4` and `IPv6`. Defaults to `IPv4`. Changing this forces a new resource to be created.
 */
public data class LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs(
    public val domainNameLabel: Output? = null,
    public val idleTimeoutInMinutes: Output? = null,
    public val ipTags: Output>? =
        null,
    public val name: Output,
    public val publicIpPrefixId: Output? = null,
    public val version: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs =
        com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs.builder()
            .domainNameLabel(domainNameLabel?.applyValue({ args0 -> args0 }))
            .idleTimeoutInMinutes(idleTimeoutInMinutes?.applyValue({ args0 -> args0 }))
            .ipTags(ipTags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .publicIpPrefixId(publicIpPrefixId?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs].
 */
@PulumiTagMarker
public class LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgsBuilder
internal constructor() {
    private var domainNameLabel: Output? = null

    private var idleTimeoutInMinutes: Output? = null

    private var ipTags:
        Output>? =
        null

    private var name: Output? = null

    private var publicIpPrefixId: Output? = null

    private var version: Output? = null

    /**
     * @param value The Prefix which should be used for the Domain Name Label for each Virtual Machine Instance. Azure concatenates the Domain Name Label and Virtual Machine Index to create a unique Domain Name Label for each Virtual Machine.
     */
    @JvmName("ouqqwaxyuhamshal")
    public suspend fun domainNameLabel(`value`: Output) {
        this.domainNameLabel = value
    }

    /**
     * @param value The Idle Timeout in Minutes for the Public IP Address. Possible values are in the range `4` to `32`.
     */
    @JvmName("mhyhaalqcmqxgpjo")
    public suspend fun idleTimeoutInMinutes(`value`: Output) {
        this.idleTimeoutInMinutes = value
    }

    /**
     * @param value One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("fjmhblloboqkhkug")
    public suspend fun ipTags(`value`: Output>) {
        this.ipTags = value
    }

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

    /**
     * @param values One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("txfbjtmndccpekks")
    public suspend fun ipTags(values: List>) {
        this.ipTags = Output.all(values)
    }

    /**
     * @param value The Name of the Public IP Address Configuration.
     */
    @JvmName("mrnigfojwgguimji")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the Public IP Address Prefix from where Public IP Addresses should be allocated. Changing this forces a new resource to be created.
     * > **Note:** This functionality is in Preview and must be opted into via `az feature register --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress` and then `az provider register -n Microsoft.Network`.
     */
    @JvmName("tbxjhbjqvnbhigwc")
    public suspend fun publicIpPrefixId(`value`: Output) {
        this.publicIpPrefixId = value
    }

    /**
     * @param value The Internet Protocol Version which should be used for this public IP address. Possible values are `IPv4` and `IPv6`. Defaults to `IPv4`. Changing this forces a new resource to be created.
     */
    @JvmName("cpmfaahtslkjcfss")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The Prefix which should be used for the Domain Name Label for each Virtual Machine Instance. Azure concatenates the Domain Name Label and Virtual Machine Index to create a unique Domain Name Label for each Virtual Machine.
     */
    @JvmName("emlsyscbxbnmetea")
    public suspend fun domainNameLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainNameLabel = mapped
    }

    /**
     * @param value The Idle Timeout in Minutes for the Public IP Address. Possible values are in the range `4` to `32`.
     */
    @JvmName("afabwslegicunknv")
    public suspend fun idleTimeoutInMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleTimeoutInMinutes = mapped
    }

    /**
     * @param value One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("fkrfxlrsjvebdnan")
    public suspend fun ipTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipTags = mapped
    }

    /**
     * @param argument One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("jirhemrugqcjevhd")
    public suspend fun ipTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipTags = mapped
    }

    /**
     * @param argument One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("cljhxffvifcudsur")
    public suspend fun ipTags(vararg argument: suspend LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ipTags = mapped
    }

    /**
     * @param argument One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("woffvwcxvwtcpxbt")
    public suspend fun ipTags(argument: suspend LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.ipTags = mapped
    }

    /**
     * @param values One or more `ip_tag` blocks as defined above. Changing this forces a new resource to be created.
     */
    @JvmName("pqeenbramsdoignv")
    public suspend fun ipTags(vararg values: LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipTags = mapped
    }

    /**
     * @param value The Name of the Public IP Address Configuration.
     */
    @JvmName("fefvugonnxykjysn")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID of the Public IP Address Prefix from where Public IP Addresses should be allocated. Changing this forces a new resource to be created.
     * > **Note:** This functionality is in Preview and must be opted into via `az feature register --namespace Microsoft.Network --name AllowBringYourOwnPublicIpAddress` and then `az provider register -n Microsoft.Network`.
     */
    @JvmName("pviwacwdhoqijmlv")
    public suspend fun publicIpPrefixId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpPrefixId = mapped
    }

    /**
     * @param value The Internet Protocol Version which should be used for this public IP address. Possible values are `IPv4` and `IPv6`. Defaults to `IPv4`. Changing this forces a new resource to be created.
     */
    @JvmName("kqkrwoqyvgnnceyx")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs =
        LinuxVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs(
            domainNameLabel = domainNameLabel,
            idleTimeoutInMinutes = idleTimeoutInMinutes,
            ipTags = ipTags,
            name = name ?: throw PulumiNullFieldException("name"),
            publicIpPrefixId = publicIpPrefixId,
            version = version,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy