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

com.pulumi.azure.mobile.kotlin.inputs.NetworkSimPolicySliceArgs.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.mobile.kotlin.inputs

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

/**
 *
 * @property dataNetworks An array of `data_network` block as defined below.
 * @property defaultDataNetworkId The ID of default data network to use if the user equipment does not explicitly specify it. Configuration for this object must exist in the `data_network` block.
 * @property sliceId The ID of the slice that these settings apply to.
 */
public data class NetworkSimPolicySliceArgs(
    public val dataNetworks: Output>,
    public val defaultDataNetworkId: Output,
    public val sliceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mobile.inputs.NetworkSimPolicySliceArgs =
        com.pulumi.azure.mobile.inputs.NetworkSimPolicySliceArgs.builder()
            .dataNetworks(
                dataNetworks.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .defaultDataNetworkId(defaultDataNetworkId.applyValue({ args0 -> args0 }))
            .sliceId(sliceId.applyValue({ args0 -> args0 })).build()
}

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

    private var defaultDataNetworkId: Output? = null

    private var sliceId: Output? = null

    /**
     * @param value An array of `data_network` block as defined below.
     */
    @JvmName("tydmaqpmmywgtqpa")
    public suspend fun dataNetworks(`value`: Output>) {
        this.dataNetworks = value
    }

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

    /**
     * @param values An array of `data_network` block as defined below.
     */
    @JvmName("rggogqgndnetnlct")
    public suspend fun dataNetworks(values: List>) {
        this.dataNetworks = Output.all(values)
    }

    /**
     * @param value The ID of default data network to use if the user equipment does not explicitly specify it. Configuration for this object must exist in the `data_network` block.
     */
    @JvmName("uisxhklyhjkdrauk")
    public suspend fun defaultDataNetworkId(`value`: Output) {
        this.defaultDataNetworkId = value
    }

    /**
     * @param value The ID of the slice that these settings apply to.
     */
    @JvmName("ftmbhyervehbgcwj")
    public suspend fun sliceId(`value`: Output) {
        this.sliceId = value
    }

    /**
     * @param value An array of `data_network` block as defined below.
     */
    @JvmName("fvueixxmjtkytspt")
    public suspend fun dataNetworks(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataNetworks = mapped
    }

    /**
     * @param argument An array of `data_network` block as defined below.
     */
    @JvmName("tnbyoljfpxlmrgdl")
    public suspend
    fun dataNetworks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkSimPolicySliceDataNetworkArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dataNetworks = mapped
    }

    /**
     * @param argument An array of `data_network` block as defined below.
     */
    @JvmName("hgvasimwnenqnmrb")
    public suspend fun dataNetworks(
        vararg
        argument: suspend NetworkSimPolicySliceDataNetworkArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            NetworkSimPolicySliceDataNetworkArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dataNetworks = mapped
    }

    /**
     * @param argument An array of `data_network` block as defined below.
     */
    @JvmName("bikbisgpyihuqfjw")
    public suspend
    fun dataNetworks(argument: suspend NetworkSimPolicySliceDataNetworkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkSimPolicySliceDataNetworkArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dataNetworks = mapped
    }

    /**
     * @param values An array of `data_network` block as defined below.
     */
    @JvmName("goucepkaqxlsxnve")
    public suspend fun dataNetworks(vararg values: NetworkSimPolicySliceDataNetworkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataNetworks = mapped
    }

    /**
     * @param value The ID of default data network to use if the user equipment does not explicitly specify it. Configuration for this object must exist in the `data_network` block.
     */
    @JvmName("nvhobasbypedihsj")
    public suspend fun defaultDataNetworkId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.defaultDataNetworkId = mapped
    }

    /**
     * @param value The ID of the slice that these settings apply to.
     */
    @JvmName("jylydrtewkvhythx")
    public suspend fun sliceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sliceId = mapped
    }

    internal fun build(): NetworkSimPolicySliceArgs = NetworkSimPolicySliceArgs(
        dataNetworks = dataNetworks ?: throw PulumiNullFieldException("dataNetworks"),
        defaultDataNetworkId = defaultDataNetworkId ?: throw
            PulumiNullFieldException("defaultDataNetworkId"),
        sliceId = sliceId ?: throw PulumiNullFieldException("sliceId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy