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

com.pulumi.awsnative.medialive.kotlin.inputs.ClusterNetworkSettingsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.medialive.kotlin.inputs

import com.pulumi.awsnative.medialive.inputs.ClusterNetworkSettingsArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * On premises settings which will have the interface network mappings and default Output logical interface
 * @property defaultRoute Default value if the customer does not define it in channel Output API
 * @property interfaceMappings Network mappings for the cluster
 */
public data class ClusterNetworkSettingsArgs(
    public val defaultRoute: Output? = null,
    public val interfaceMappings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.medialive.inputs.ClusterNetworkSettingsArgs =
        com.pulumi.awsnative.medialive.inputs.ClusterNetworkSettingsArgs.builder()
            .defaultRoute(defaultRoute?.applyValue({ args0 -> args0 }))
            .interfaceMappings(
                interfaceMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterNetworkSettingsArgs].
 */
@PulumiTagMarker
public class ClusterNetworkSettingsArgsBuilder internal constructor() {
    private var defaultRoute: Output? = null

    private var interfaceMappings: Output>? = null

    /**
     * @param value Default value if the customer does not define it in channel Output API
     */
    @JvmName("uigaotxallnhfcrq")
    public suspend fun defaultRoute(`value`: Output) {
        this.defaultRoute = value
    }

    /**
     * @param value Network mappings for the cluster
     */
    @JvmName("sulunsatohoumnbb")
    public suspend fun interfaceMappings(`value`: Output>) {
        this.interfaceMappings = value
    }

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

    /**
     * @param values Network mappings for the cluster
     */
    @JvmName("lclppytoqmueqlgb")
    public suspend fun interfaceMappings(values: List>) {
        this.interfaceMappings = Output.all(values)
    }

    /**
     * @param value Default value if the customer does not define it in channel Output API
     */
    @JvmName("ihxgomditmlxpfuo")
    public suspend fun defaultRoute(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRoute = mapped
    }

    /**
     * @param value Network mappings for the cluster
     */
    @JvmName("jpkbipqqbfcmynug")
    public suspend fun interfaceMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.interfaceMappings = mapped
    }

    /**
     * @param argument Network mappings for the cluster
     */
    @JvmName("pvjaorbsnybopivg")
    public suspend fun interfaceMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterInterfaceMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.interfaceMappings = mapped
    }

    /**
     * @param argument Network mappings for the cluster
     */
    @JvmName("kpqjlcbqtxrdhdux")
    public suspend fun interfaceMappings(vararg argument: suspend ClusterInterfaceMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterInterfaceMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.interfaceMappings = mapped
    }

    /**
     * @param argument Network mappings for the cluster
     */
    @JvmName("gfnlbmuiuukghvud")
    public suspend fun interfaceMappings(argument: suspend ClusterInterfaceMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ClusterInterfaceMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.interfaceMappings = mapped
    }

    /**
     * @param values Network mappings for the cluster
     */
    @JvmName("dlsjrwuqngltkllx")
    public suspend fun interfaceMappings(vararg values: ClusterInterfaceMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.interfaceMappings = mapped
    }

    internal fun build(): ClusterNetworkSettingsArgs = ClusterNetworkSettingsArgs(
        defaultRoute = defaultRoute,
        interfaceMappings = interfaceMappings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy