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

com.pulumi.azure.compute.kotlin.inputs.OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs.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. Valid values must be between `1` and `26` characters long, start with a lower case letter, end with a lower case letter or number and contains only `a-z`, `0-9` and `hyphens`.
 * @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.
 * @property skuName Specifies what Public IP Address SKU the Public IP Address should be provisioned as. Possible vaules include `Basic_Regional`, `Basic_Global`, `Standard_Regional` or `Standard_Global`. For more information about Public IP Address SKU's and their capabilities, please see the [product documentation](https://docs.microsoft.com/azure/virtual-network/ip-services/public-ip-addresses#sku). Changing this forces a new resource to be created.
 * @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
OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs(
    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 skuName: Output? = null,
    public val version: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs.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 }))
            .skuName(skuName?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgs].
 */
@PulumiTagMarker
public class
OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressArgsBuilder
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 skuName: 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. Valid values must be between `1` and `26` characters long, start with a lower case letter, end with a lower case letter or number and contains only `a-z`, `0-9` and `hyphens`.
     */
    @JvmName("bbdnbyuegfpiwkba")
    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("ekctxqkxuaohtwiq")
    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("ywhlxvoaqygbcvbi")
    public suspend
    fun ipTags(`value`: Output>) {
        this.ipTags = value
    }

    @JvmName("gjexeddolcnaxmlm")
    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("imtlyvfnijhocyfa")
    public suspend
    fun ipTags(values: List>) {
        this.ipTags = Output.all(values)
    }

    /**
     * @param value The Name of the Public IP Address Configuration.
     */
    @JvmName("uhfrpdspwktpelnv")
    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.
     */
    @JvmName("opswumivndbwards")
    public suspend fun publicIpPrefixId(`value`: Output) {
        this.publicIpPrefixId = value
    }

    /**
     * @param value Specifies what Public IP Address SKU the Public IP Address should be provisioned as. Possible vaules include `Basic_Regional`, `Basic_Global`, `Standard_Regional` or `Standard_Global`. For more information about Public IP Address SKU's and their capabilities, please see the [product documentation](https://docs.microsoft.com/azure/virtual-network/ip-services/public-ip-addresses#sku). Changing this forces a new resource to be created.
     */
    @JvmName("xjoghxpqhmkemqgh")
    public suspend fun skuName(`value`: Output) {
        this.skuName = 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("asycqkiepeyyhmjq")
    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. Valid values must be between `1` and `26` characters long, start with a lower case letter, end with a lower case letter or number and contains only `a-z`, `0-9` and `hyphens`.
     */
    @JvmName("olnvkqkevdcpheux")
    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("wpensfhmnvgkacvr")
    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("epsthefghydnsvsr")
    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("possjvnwaxntcbwe")
    public suspend
    fun ipTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder().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("fjdvilslulphwhlk")
    public suspend fun ipTags(
        vararg
        argument: suspend OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder().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("jfpblhatcejoqlfj")
    public suspend
    fun ipTags(argument: suspend OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgsBuilder().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("uukuwrubavwxylll")
    public suspend fun ipTags(
        vararg
        values: OrchestratedVirtualMachineScaleSetNetworkInterfaceIpConfigurationPublicIpAddressIpTagArgs,
    ) {
        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("sdxhbrrwtaukeyvo")
    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.
     */
    @JvmName("vhcpckntrskiugjp")
    public suspend fun publicIpPrefixId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpPrefixId = mapped
    }

    /**
     * @param value Specifies what Public IP Address SKU the Public IP Address should be provisioned as. Possible vaules include `Basic_Regional`, `Basic_Global`, `Standard_Regional` or `Standard_Global`. For more information about Public IP Address SKU's and their capabilities, please see the [product documentation](https://docs.microsoft.com/azure/virtual-network/ip-services/public-ip-addresses#sku). Changing this forces a new resource to be created.
     */
    @JvmName("ufyscxfghmmraeso")
    public suspend fun skuName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuName = 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("cunkyiaptfclvebf")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy