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

com.pulumi.azure.hsm.kotlin.inputs.ModuleNetworkProfileArgs.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.hsm.kotlin.inputs

import com.pulumi.azure.hsm.inputs.ModuleNetworkProfileArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property networkInterfacePrivateIpAddresses The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
 * @property subnetId The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
 */
public data class ModuleNetworkProfileArgs(
    public val networkInterfacePrivateIpAddresses: Output>,
    public val subnetId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.hsm.inputs.ModuleNetworkProfileArgs =
        com.pulumi.azure.hsm.inputs.ModuleNetworkProfileArgs.builder()
            .networkInterfacePrivateIpAddresses(
                networkInterfacePrivateIpAddresses.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .subnetId(subnetId.applyValue({ args0 -> args0 })).build()
}

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

    private var subnetId: Output? = null

    /**
     * @param value The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
     */
    @JvmName("fxjcbwprroipipme")
    public suspend fun networkInterfacePrivateIpAddresses(`value`: Output>) {
        this.networkInterfacePrivateIpAddresses = value
    }

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

    /**
     * @param values The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
     */
    @JvmName("iqrqdghknepgcbyj")
    public suspend fun networkInterfacePrivateIpAddresses(values: List>) {
        this.networkInterfacePrivateIpAddresses = Output.all(values)
    }

    /**
     * @param value The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
     */
    @JvmName("mpgtvmghnxxuyvdl")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
     */
    @JvmName("mraerbryoocdirsg")
    public suspend fun networkInterfacePrivateIpAddresses(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfacePrivateIpAddresses = mapped
    }

    /**
     * @param values The private IPv4 address of the network interface. Changing this forces a new Dedicated Hardware Security Module to be created.
     */
    @JvmName("hfjqtmhxiggvwqom")
    public suspend fun networkInterfacePrivateIpAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfacePrivateIpAddresses = mapped
    }

    /**
     * @param value The ID of the subnet. Changing this forces a new Dedicated Hardware Security Module to be created.
     */
    @JvmName("wueqxenpssgdxdvo")
    public suspend fun subnetId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    internal fun build(): ModuleNetworkProfileArgs = ModuleNetworkProfileArgs(
        networkInterfacePrivateIpAddresses = networkInterfacePrivateIpAddresses ?: throw
            PulumiNullFieldException("networkInterfacePrivateIpAddresses"),
        subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy