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

com.pulumi.azurenative.migrate.kotlin.inputs.VirtualNetworkResourceSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.migrate.kotlin.inputs

import com.pulumi.azurenative.migrate.inputs.VirtualNetworkResourceSettingsArgs.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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Defines the virtual network resource settings.
 * @property addressSpace Gets or sets the address prefixes for the virtual network.
 * @property dnsServers Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
 * deployed in the virtual network.
 * @property enableDdosProtection Gets or sets a value indicating whether gets or sets whether the
 * DDOS protection should be switched on.
 * @property resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
 * Expected value is 'Microsoft.Network/virtualNetworks'.
 * @property subnets Gets or sets List of subnets in a VirtualNetwork.
 * @property tags Gets or sets the Resource tags.
 * @property targetResourceGroupName Gets or sets the target resource group name.
 * @property targetResourceName Gets or sets the target Resource name.
 */
public data class VirtualNetworkResourceSettingsArgs(
    public val addressSpace: Output>? = null,
    public val dnsServers: Output>? = null,
    public val enableDdosProtection: Output? = null,
    public val resourceType: Output,
    public val subnets: Output>? = null,
    public val tags: Output>? = null,
    public val targetResourceGroupName: Output? = null,
    public val targetResourceName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.migrate.inputs.VirtualNetworkResourceSettingsArgs =
        com.pulumi.azurenative.migrate.inputs.VirtualNetworkResourceSettingsArgs.builder()
            .addressSpace(addressSpace?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .dnsServers(dnsServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .enableDdosProtection(enableDdosProtection?.applyValue({ args0 -> args0 }))
            .resourceType(resourceType.applyValue({ args0 -> args0 }))
            .subnets(
                subnets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetResourceGroupName(targetResourceGroupName?.applyValue({ args0 -> args0 }))
            .targetResourceName(targetResourceName.applyValue({ args0 -> args0 })).build()
}

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

    private var dnsServers: Output>? = null

    private var enableDdosProtection: Output? = null

    private var resourceType: Output? = null

    private var subnets: Output>? = null

    private var tags: Output>? = null

    private var targetResourceGroupName: Output? = null

    private var targetResourceName: Output? = null

    /**
     * @param value Gets or sets the address prefixes for the virtual network.
     */
    @JvmName("ifoxsunlirpfsowe")
    public suspend fun addressSpace(`value`: Output>) {
        this.addressSpace = value
    }

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

    /**
     * @param values Gets or sets the address prefixes for the virtual network.
     */
    @JvmName("pmotikxxobvxpkbd")
    public suspend fun addressSpace(values: List>) {
        this.addressSpace = Output.all(values)
    }

    /**
     * @param value Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
     * deployed in the virtual network.
     */
    @JvmName("mvhtyachisovxbos")
    public suspend fun dnsServers(`value`: Output>) {
        this.dnsServers = value
    }

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

    /**
     * @param values Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
     * deployed in the virtual network.
     */
    @JvmName("goaxjfjsuwthgkel")
    public suspend fun dnsServers(values: List>) {
        this.dnsServers = Output.all(values)
    }

    /**
     * @param value Gets or sets a value indicating whether gets or sets whether the
     * DDOS protection should be switched on.
     */
    @JvmName("ojgilugajgmfuaqd")
    public suspend fun enableDdosProtection(`value`: Output) {
        this.enableDdosProtection = value
    }

    /**
     * @param value The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/virtualNetworks'.
     */
    @JvmName("mguuucsqjlkcsubi")
    public suspend fun resourceType(`value`: Output) {
        this.resourceType = value
    }

    /**
     * @param value Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("sdwdinqrfknxatwq")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

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

    /**
     * @param values Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("fdmlcamtxgfictup")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value Gets or sets the Resource tags.
     */
    @JvmName("qndibswvvcopdiwc")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Gets or sets the target resource group name.
     */
    @JvmName("vpdrttrvoxdbfkxu")
    public suspend fun targetResourceGroupName(`value`: Output) {
        this.targetResourceGroupName = value
    }

    /**
     * @param value Gets or sets the target Resource name.
     */
    @JvmName("ibafmldaannnmdaq")
    public suspend fun targetResourceName(`value`: Output) {
        this.targetResourceName = value
    }

    /**
     * @param value Gets or sets the address prefixes for the virtual network.
     */
    @JvmName("gipjqnvignjkusbw")
    public suspend fun addressSpace(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addressSpace = mapped
    }

    /**
     * @param values Gets or sets the address prefixes for the virtual network.
     */
    @JvmName("cadsbsdcygbosplq")
    public suspend fun addressSpace(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressSpace = mapped
    }

    /**
     * @param value Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
     * deployed in the virtual network.
     */
    @JvmName("wtkogghtwwfbyevj")
    public suspend fun dnsServers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param values Gets or sets DHCPOptions that contains an array of DNS servers available to VMs
     * deployed in the virtual network.
     */
    @JvmName("tdlrdetbvhvcesqv")
    public suspend fun dnsServers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsServers = mapped
    }

    /**
     * @param value Gets or sets a value indicating whether gets or sets whether the
     * DDOS protection should be switched on.
     */
    @JvmName("qgacocednrrwmgsi")
    public suspend fun enableDdosProtection(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableDdosProtection = mapped
    }

    /**
     * @param value The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/virtualNetworks'.
     */
    @JvmName("anjthrngkrpieyrt")
    public suspend fun resourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceType = mapped
    }

    /**
     * @param value Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("hodeihaogkboblmk")
    public suspend fun subnets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param argument Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("nuftlhdymnihasxt")
    public suspend fun subnets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SubnetResourceSettingsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.subnets = mapped
    }

    /**
     * @param argument Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("sovmfrarmhdetvcv")
    public suspend fun subnets(vararg argument: suspend SubnetResourceSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SubnetResourceSettingsArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.subnets = mapped
    }

    /**
     * @param argument Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("nujmbiwmmdpcnfng")
    public suspend fun subnets(argument: suspend SubnetResourceSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(SubnetResourceSettingsArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.subnets = mapped
    }

    /**
     * @param values Gets or sets List of subnets in a VirtualNetwork.
     */
    @JvmName("ohrcyxbfwhjlpthk")
    public suspend fun subnets(vararg values: SubnetResourceSettingsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param value Gets or sets the Resource tags.
     */
    @JvmName("pnarpnlhvdsisyjt")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Gets or sets the Resource tags.
     */
    @JvmName("rijpsqcpwboxdfdk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Gets or sets the target resource group name.
     */
    @JvmName("shocdhtcafrpehhj")
    public suspend fun targetResourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetResourceGroupName = mapped
    }

    /**
     * @param value Gets or sets the target Resource name.
     */
    @JvmName("kmbrsdsoqqwfkqyo")
    public suspend fun targetResourceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetResourceName = mapped
    }

    internal fun build(): VirtualNetworkResourceSettingsArgs = VirtualNetworkResourceSettingsArgs(
        addressSpace = addressSpace,
        dnsServers = dnsServers,
        enableDdosProtection = enableDdosProtection,
        resourceType = resourceType ?: throw PulumiNullFieldException("resourceType"),
        subnets = subnets,
        tags = tags,
        targetResourceGroupName = targetResourceGroupName,
        targetResourceName = targetResourceName ?: throw PulumiNullFieldException("targetResourceName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy