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

com.pulumi.azure.batch.kotlin.inputs.PoolNetworkConfigurationArgs.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.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.PoolNetworkConfigurationArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property acceleratedNetworkingEnabled Whether to enable accelerated networking. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new resource to be created.
 * @property dynamicVnetAssignmentScope The scope of dynamic vnet assignment. Allowed values: `none`, `job`. Changing this forces a new resource to be created. Defaults to `none`.
 * @property endpointConfigurations A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
 * @property publicAddressProvisioningType Type of public IP address provisioning. Supported values are `BatchManaged`, `UserManaged` and `NoPublicIPAddresses`.
 * @property publicIps A list of public IP ids that will be allocated to nodes. Changing this forces a new resource to be created.
 * @property subnetId The ARM resource identifier of the virtual network subnet which the compute nodes of the pool will join. Changing this forces a new resource to be created.
 */
public data class PoolNetworkConfigurationArgs(
    public val acceleratedNetworkingEnabled: Output? = null,
    public val dynamicVnetAssignmentScope: Output? = null,
    public val endpointConfigurations: Output>? = null,
    public val publicAddressProvisioningType: Output? = null,
    public val publicIps: Output>? = null,
    public val subnetId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.PoolNetworkConfigurationArgs =
        com.pulumi.azure.batch.inputs.PoolNetworkConfigurationArgs.builder()
            .acceleratedNetworkingEnabled(acceleratedNetworkingEnabled?.applyValue({ args0 -> args0 }))
            .dynamicVnetAssignmentScope(dynamicVnetAssignmentScope?.applyValue({ args0 -> args0 }))
            .endpointConfigurations(
                endpointConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .publicAddressProvisioningType(publicAddressProvisioningType?.applyValue({ args0 -> args0 }))
            .publicIps(publicIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PoolNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class PoolNetworkConfigurationArgsBuilder internal constructor() {
    private var acceleratedNetworkingEnabled: Output? = null

    private var dynamicVnetAssignmentScope: Output? = null

    private var endpointConfigurations:
        Output>? = null

    private var publicAddressProvisioningType: Output? = null

    private var publicIps: Output>? = null

    private var subnetId: Output? = null

    /**
     * @param value Whether to enable accelerated networking. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new resource to be created.
     */
    @JvmName("hyoforrtxubmrhjv")
    public suspend fun acceleratedNetworkingEnabled(`value`: Output) {
        this.acceleratedNetworkingEnabled = value
    }

    /**
     * @param value The scope of dynamic vnet assignment. Allowed values: `none`, `job`. Changing this forces a new resource to be created. Defaults to `none`.
     */
    @JvmName("genhtstnlaseliyo")
    public suspend fun dynamicVnetAssignmentScope(`value`: Output) {
        this.dynamicVnetAssignmentScope = value
    }

    /**
     * @param value A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("ehbggiwufdkwscxm")
    public suspend fun endpointConfigurations(`value`: Output>) {
        this.endpointConfigurations = value
    }

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

    /**
     * @param values A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("fnppxfjfcaaddvda")
    public suspend fun endpointConfigurations(values: List>) {
        this.endpointConfigurations = Output.all(values)
    }

    /**
     * @param value Type of public IP address provisioning. Supported values are `BatchManaged`, `UserManaged` and `NoPublicIPAddresses`.
     */
    @JvmName("wiyfxjonyhguatoh")
    public suspend fun publicAddressProvisioningType(`value`: Output) {
        this.publicAddressProvisioningType = value
    }

    /**
     * @param value A list of public IP ids that will be allocated to nodes. Changing this forces a new resource to be created.
     */
    @JvmName("oejebbbassowkxfm")
    public suspend fun publicIps(`value`: Output>) {
        this.publicIps = value
    }

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

    /**
     * @param values A list of public IP ids that will be allocated to nodes. Changing this forces a new resource to be created.
     */
    @JvmName("ulvwosrjmmulatnv")
    public suspend fun publicIps(values: List>) {
        this.publicIps = Output.all(values)
    }

    /**
     * @param value The ARM resource identifier of the virtual network subnet which the compute nodes of the pool will join. Changing this forces a new resource to be created.
     */
    @JvmName("jqnafyictltvfkll")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value Whether to enable accelerated networking. Possible values are `true` and `false`. Defaults to `false`. Changing this forces a new resource to be created.
     */
    @JvmName("lxmnekdcorpeybgr")
    public suspend fun acceleratedNetworkingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratedNetworkingEnabled = mapped
    }

    /**
     * @param value The scope of dynamic vnet assignment. Allowed values: `none`, `job`. Changing this forces a new resource to be created. Defaults to `none`.
     */
    @JvmName("rndwhqqbmjpcyxrh")
    public suspend fun dynamicVnetAssignmentScope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dynamicVnetAssignmentScope = mapped
    }

    /**
     * @param value A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("sqetrjjlugcnfomy")
    public suspend fun endpointConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointConfigurations = mapped
    }

    /**
     * @param argument A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("qalqnovadeykwinm")
    public suspend fun endpointConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PoolNetworkConfigurationEndpointConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.endpointConfigurations = mapped
    }

    /**
     * @param argument A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("ngxqidflclejijxb")
    public suspend fun endpointConfigurations(vararg argument: suspend PoolNetworkConfigurationEndpointConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PoolNetworkConfigurationEndpointConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.endpointConfigurations = mapped
    }

    /**
     * @param argument A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("walayoouuejtttfk")
    public suspend fun endpointConfigurations(argument: suspend PoolNetworkConfigurationEndpointConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PoolNetworkConfigurationEndpointConfigurationArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.endpointConfigurations = mapped
    }

    /**
     * @param values A list of `endpoint_configuration` blocks that can be used to address specific ports on an individual compute node externally as defined below. Set as documented in the inbound_nat_pools block below. Changing this forces a new resource to be created.
     */
    @JvmName("lkgaweygxrjccowd")
    public suspend fun endpointConfigurations(vararg values: PoolNetworkConfigurationEndpointConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointConfigurations = mapped
    }

    /**
     * @param value Type of public IP address provisioning. Supported values are `BatchManaged`, `UserManaged` and `NoPublicIPAddresses`.
     */
    @JvmName("itssxmhggvnhrryb")
    public suspend fun publicAddressProvisioningType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicAddressProvisioningType = mapped
    }

    /**
     * @param value A list of public IP ids that will be allocated to nodes. Changing this forces a new resource to be created.
     */
    @JvmName("yskxsyanqsrkloom")
    public suspend fun publicIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIps = mapped
    }

    /**
     * @param values A list of public IP ids that will be allocated to nodes. Changing this forces a new resource to be created.
     */
    @JvmName("cohsbstnmunrkled")
    public suspend fun publicIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIps = mapped
    }

    /**
     * @param value The ARM resource identifier of the virtual network subnet which the compute nodes of the pool will join. Changing this forces a new resource to be created.
     */
    @JvmName("kwbjoifneqygeauy")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    internal fun build(): PoolNetworkConfigurationArgs = PoolNetworkConfigurationArgs(
        acceleratedNetworkingEnabled = acceleratedNetworkingEnabled,
        dynamicVnetAssignmentScope = dynamicVnetAssignmentScope,
        endpointConfigurations = endpointConfigurations,
        publicAddressProvisioningType = publicAddressProvisioningType,
        publicIps = publicIps,
        subnetId = subnetId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy