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

com.pulumi.aws.medialive.kotlin.inputs.ChannelEncoderSettingsOutputGroupArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.medialive.kotlin.inputs

import com.pulumi.aws.medialive.inputs.ChannelEncoderSettingsOutputGroupArgs.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 name Custom output group name defined by the user.
 * @property outputGroupSettings Settings associated with the output group. See Output Group Settings for more details.
 * @property outputs List of outputs. See Outputs for more details.
 */
public data class ChannelEncoderSettingsOutputGroupArgs(
    public val name: Output? = null,
    public val outputGroupSettings: Output,
    public val outputs: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.medialive.inputs.ChannelEncoderSettingsOutputGroupArgs =
        com.pulumi.aws.medialive.inputs.ChannelEncoderSettingsOutputGroupArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .outputGroupSettings(
                outputGroupSettings.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .outputs(
                outputs.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ChannelEncoderSettingsOutputGroupArgs].
 */
@PulumiTagMarker
public class ChannelEncoderSettingsOutputGroupArgsBuilder internal constructor() {
    private var name: Output? = null

    private var outputGroupSettings: Output? =
        null

    private var outputs: Output>? = null

    /**
     * @param value Custom output group name defined by the user.
     */
    @JvmName("jwmhraralhnovcif")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Settings associated with the output group. See Output Group Settings for more details.
     */
    @JvmName("hegjyighbghytpsf")
    public suspend fun outputGroupSettings(`value`: Output) {
        this.outputGroupSettings = value
    }

    /**
     * @param value List of outputs. See Outputs for more details.
     */
    @JvmName("axgkqbacywuxwykx")
    public suspend fun outputs(`value`: Output>) {
        this.outputs = value
    }

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

    /**
     * @param values List of outputs. See Outputs for more details.
     */
    @JvmName("vbwvdysnhibvqjne")
    public suspend fun outputs(values: List>) {
        this.outputs = Output.all(values)
    }

    /**
     * @param value Custom output group name defined by the user.
     */
    @JvmName("axvqgbdsqrbxjfup")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Settings associated with the output group. See Output Group Settings for more details.
     */
    @JvmName("lcpwsboimqbvkgqj")
    public suspend fun outputGroupSettings(`value`: ChannelEncoderSettingsOutputGroupOutputGroupSettingsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputGroupSettings = mapped
    }

    /**
     * @param argument Settings associated with the output group. See Output Group Settings for more details.
     */
    @JvmName("dccflciasqlbewfa")
    public suspend fun outputGroupSettings(argument: suspend ChannelEncoderSettingsOutputGroupOutputGroupSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = ChannelEncoderSettingsOutputGroupOutputGroupSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.outputGroupSettings = mapped
    }

    /**
     * @param value List of outputs. See Outputs for more details.
     */
    @JvmName("hrbjrayigijlpobr")
    public suspend fun outputs(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    /**
     * @param argument List of outputs. See Outputs for more details.
     */
    @JvmName("thnqmoodoglxryjm")
    public suspend fun outputs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ChannelEncoderSettingsOutputGroupOutputArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument List of outputs. See Outputs for more details.
     */
    @JvmName("ucxwrpgafxhwhqpd")
    public suspend fun outputs(vararg argument: suspend ChannelEncoderSettingsOutputGroupOutputArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ChannelEncoderSettingsOutputGroupOutputArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument List of outputs. See Outputs for more details.
     */
    @JvmName("ydlynprvxkosymxv")
    public suspend fun outputs(argument: suspend ChannelEncoderSettingsOutputGroupOutputArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ChannelEncoderSettingsOutputGroupOutputArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param values List of outputs. See Outputs for more details.
     */
    @JvmName("tejpwbhrekgfuaov")
    public suspend fun outputs(vararg values: ChannelEncoderSettingsOutputGroupOutputArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    internal fun build(): ChannelEncoderSettingsOutputGroupArgs =
        ChannelEncoderSettingsOutputGroupArgs(
            name = name,
            outputGroupSettings = outputGroupSettings ?: throw PulumiNullFieldException("outputGroupSettings"),
            outputs = outputs ?: throw PulumiNullFieldException("outputs"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy