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

com.pulumi.azurenative.hardwaresecuritymodules.kotlin.inputs.NetworkProfileArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.hardwaresecuritymodules.kotlin.inputs

import com.pulumi.azurenative.hardwaresecuritymodules.inputs.NetworkProfileArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The network profile definition.
 * @property networkInterfaces Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
 * @property subnet Specifies the identifier of the subnet.
 */
public data class NetworkProfileArgs(
    public val networkInterfaces: Output>? = null,
    public val subnet: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hardwaresecuritymodules.inputs.NetworkProfileArgs =
        com.pulumi.azurenative.hardwaresecuritymodules.inputs.NetworkProfileArgs.builder()
            .networkInterfaces(
                networkInterfaces?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .subnet(subnet?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var subnet: Output? = null

    /**
     * @param value Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("kewjhcwdpmmxkqdu")
    public suspend fun networkInterfaces(`value`: Output>) {
        this.networkInterfaces = value
    }

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

    /**
     * @param values Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("efxupiaxsttwtgix")
    public suspend fun networkInterfaces(values: List>) {
        this.networkInterfaces = Output.all(values)
    }

    /**
     * @param value Specifies the identifier of the subnet.
     */
    @JvmName("kefqomeosukcwgfo")
    public suspend fun subnet(`value`: Output) {
        this.subnet = value
    }

    /**
     * @param value Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("upcqbdbuwckvqrms")
    public suspend fun networkInterfaces(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

    /**
     * @param argument Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("jkoxrsafeelfxfli")
    public suspend fun networkInterfaces(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param argument Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("kofarinuaurbtfou")
    public suspend fun networkInterfaces(vararg argument: suspend NetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInterfaceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param argument Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("ynuepjvfwgeweoma")
    public suspend fun networkInterfaces(argument: suspend NetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(NetworkInterfaceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param values Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.
     */
    @JvmName("hrfhpwdxcpofoywx")
    public suspend fun networkInterfaces(vararg values: NetworkInterfaceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

    /**
     * @param value Specifies the identifier of the subnet.
     */
    @JvmName("fxenjmeiofhaxpgs")
    public suspend fun subnet(`value`: ApiEntityReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnet = mapped
    }

    /**
     * @param argument Specifies the identifier of the subnet.
     */
    @JvmName("vqahtxcpucfhpfrh")
    public suspend fun subnet(argument: suspend ApiEntityReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = ApiEntityReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.subnet = mapped
    }

    internal fun build(): NetworkProfileArgs = NetworkProfileArgs(
        networkInterfaces = networkInterfaces,
        subnet = subnet,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy