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

com.pulumi.azurenative.managednetwork.kotlin.inputs.ScopeArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.managednetwork.kotlin.inputs

import com.pulumi.azurenative.managednetwork.inputs.ScopeArgs.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

/**
 * Scope of a Managed Network
 * @property managementGroups The collection of management groups covered by the Managed Network
 * @property subnets The collection of  subnets covered by the Managed Network
 * @property subscriptions The collection of subscriptions covered by the Managed Network
 * @property virtualNetworks The collection of virtual nets covered by the Managed Network
 */
public data class ScopeArgs(
    public val managementGroups: Output>? = null,
    public val subnets: Output>? = null,
    public val subscriptions: Output>? = null,
    public val virtualNetworks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.managednetwork.inputs.ScopeArgs =
        com.pulumi.azurenative.managednetwork.inputs.ScopeArgs.builder()
            .managementGroups(
                managementGroups?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .subnets(
                subnets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .subscriptions(
                subscriptions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .virtualNetworks(
                virtualNetworks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var subnets: Output>? = null

    private var subscriptions: Output>? = null

    private var virtualNetworks: Output>? = null

    /**
     * @param value The collection of management groups covered by the Managed Network
     */
    @JvmName("dmgdemxsuvebldat")
    public suspend fun managementGroups(`value`: Output>) {
        this.managementGroups = value
    }

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

    /**
     * @param values The collection of management groups covered by the Managed Network
     */
    @JvmName("ycgwvyeitbajjudf")
    public suspend fun managementGroups(values: List>) {
        this.managementGroups = Output.all(values)
    }

    /**
     * @param value The collection of  subnets covered by the Managed Network
     */
    @JvmName("jubrxfyrdcrlohpe")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

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

    /**
     * @param values The collection of  subnets covered by the Managed Network
     */
    @JvmName("hbfagloavovmetnd")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value The collection of subscriptions covered by the Managed Network
     */
    @JvmName("jgddcrijjcgmavnk")
    public suspend fun subscriptions(`value`: Output>) {
        this.subscriptions = value
    }

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

    /**
     * @param values The collection of subscriptions covered by the Managed Network
     */
    @JvmName("yvfmkuaixgqdmvwd")
    public suspend fun subscriptions(values: List>) {
        this.subscriptions = Output.all(values)
    }

    /**
     * @param value The collection of virtual nets covered by the Managed Network
     */
    @JvmName("oxistpcttllamryg")
    public suspend fun virtualNetworks(`value`: Output>) {
        this.virtualNetworks = value
    }

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

    /**
     * @param values The collection of virtual nets covered by the Managed Network
     */
    @JvmName("nkhtmynbtsmeovso")
    public suspend fun virtualNetworks(values: List>) {
        this.virtualNetworks = Output.all(values)
    }

    /**
     * @param value The collection of management groups covered by the Managed Network
     */
    @JvmName("bynjjrehwsjslpwl")
    public suspend fun managementGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managementGroups = mapped
    }

    /**
     * @param argument The collection of management groups covered by the Managed Network
     */
    @JvmName("pbrtghhfkilxqdoy")
    public suspend fun managementGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.managementGroups = mapped
    }

    /**
     * @param argument The collection of management groups covered by the Managed Network
     */
    @JvmName("hspaowxfmqcjhftt")
    public suspend fun managementGroups(vararg argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.managementGroups = mapped
    }

    /**
     * @param argument The collection of management groups covered by the Managed Network
     */
    @JvmName("jgoqerjjjjgqrmff")
    public suspend fun managementGroups(argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceIdArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.managementGroups = mapped
    }

    /**
     * @param values The collection of management groups covered by the Managed Network
     */
    @JvmName("ugmckqnhmlyemphl")
    public suspend fun managementGroups(vararg values: ResourceIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.managementGroups = mapped
    }

    /**
     * @param value The collection of  subnets covered by the Managed Network
     */
    @JvmName("aehwroggluopjqke")
    public suspend fun subnets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param argument The collection of  subnets covered by the Managed Network
     */
    @JvmName("tmhmfdcinlymncks")
    public suspend fun subnets(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.subnets = mapped
    }

    /**
     * @param argument The collection of  subnets covered by the Managed Network
     */
    @JvmName("uphhnxggxeeneare")
    public suspend fun subnets(vararg argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.subnets = mapped
    }

    /**
     * @param argument The collection of  subnets covered by the Managed Network
     */
    @JvmName("kxtjreoyopemmfgl")
    public suspend fun subnets(argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceIdArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.subnets = mapped
    }

    /**
     * @param values The collection of  subnets covered by the Managed Network
     */
    @JvmName("nmmxvwtuoqkllsmp")
    public suspend fun subnets(vararg values: ResourceIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param value The collection of subscriptions covered by the Managed Network
     */
    @JvmName("vpnnindfobdvgdke")
    public suspend fun subscriptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscriptions = mapped
    }

    /**
     * @param argument The collection of subscriptions covered by the Managed Network
     */
    @JvmName("nmjfjcruthoeeeca")
    public suspend fun subscriptions(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.subscriptions = mapped
    }

    /**
     * @param argument The collection of subscriptions covered by the Managed Network
     */
    @JvmName("ljxkarusdinjuexa")
    public suspend fun subscriptions(vararg argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.subscriptions = mapped
    }

    /**
     * @param argument The collection of subscriptions covered by the Managed Network
     */
    @JvmName("wwidvqisymrdkmhl")
    public suspend fun subscriptions(argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceIdArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.subscriptions = mapped
    }

    /**
     * @param values The collection of subscriptions covered by the Managed Network
     */
    @JvmName("ssufqprdqonypmye")
    public suspend fun subscriptions(vararg values: ResourceIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subscriptions = mapped
    }

    /**
     * @param value The collection of virtual nets covered by the Managed Network
     */
    @JvmName("swmupyctkskbqquj")
    public suspend fun virtualNetworks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworks = mapped
    }

    /**
     * @param argument The collection of virtual nets covered by the Managed Network
     */
    @JvmName("ppekognfnvcrgmhs")
    public suspend fun virtualNetworks(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.virtualNetworks = mapped
    }

    /**
     * @param argument The collection of virtual nets covered by the Managed Network
     */
    @JvmName("hcwisqfnumfbfkdx")
    public suspend fun virtualNetworks(vararg argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ResourceIdArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.virtualNetworks = mapped
    }

    /**
     * @param argument The collection of virtual nets covered by the Managed Network
     */
    @JvmName("bolqgsdylhardeqj")
    public suspend fun virtualNetworks(argument: suspend ResourceIdArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceIdArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.virtualNetworks = mapped
    }

    /**
     * @param values The collection of virtual nets covered by the Managed Network
     */
    @JvmName("evbletcwknjshidm")
    public suspend fun virtualNetworks(vararg values: ResourceIdArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.virtualNetworks = mapped
    }

    internal fun build(): ScopeArgs = ScopeArgs(
        managementGroups = managementGroups,
        subnets = subnets,
        subscriptions = subscriptions,
        virtualNetworks = virtualNetworks,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy