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

com.pulumi.azurenative.media.kotlin.inputs.InputFileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.media.kotlin.inputs

import com.pulumi.azurenative.media.inputs.InputFileArgs.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 kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * An InputDefinition for a single file.  TrackSelections are scoped to the file specified.
 * @property filename Name of the file that this input definition applies to.
 * @property includedTracks The list of TrackDescriptors which define the metadata and selection of tracks in the input.
 * @property odataType The discriminator for derived types.
 * Expected value is '#Microsoft.Media.InputFile'.
 */
public data class InputFileArgs(
    public val filename: Output? = null,
    public val includedTracks: Output>? = null,
    public val odataType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.InputFileArgs =
        com.pulumi.azurenative.media.inputs.InputFileArgs.builder()
            .filename(filename?.applyValue({ args0 -> args0 }))
            .includedTracks(includedTracks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .odataType(odataType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InputFileArgs].
 */
@PulumiTagMarker
public class InputFileArgsBuilder internal constructor() {
    private var filename: Output? = null

    private var includedTracks: Output>? = null

    private var odataType: Output? = null

    /**
     * @param value Name of the file that this input definition applies to.
     */
    @JvmName("lgcxrqumyoymxfyd")
    public suspend fun filename(`value`: Output) {
        this.filename = value
    }

    /**
     * @param value The list of TrackDescriptors which define the metadata and selection of tracks in the input.
     */
    @JvmName("lvqcvxmdnmekgqbp")
    public suspend fun includedTracks(`value`: Output>) {
        this.includedTracks = value
    }

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

    /**
     * @param values The list of TrackDescriptors which define the metadata and selection of tracks in the input.
     */
    @JvmName("rqmmdknxvcnmjtkc")
    public suspend fun includedTracks(values: List>) {
        this.includedTracks = Output.all(values)
    }

    /**
     * @param value The discriminator for derived types.
     * Expected value is '#Microsoft.Media.InputFile'.
     */
    @JvmName("bydmgxmhdejhusgk")
    public suspend fun odataType(`value`: Output) {
        this.odataType = value
    }

    /**
     * @param value Name of the file that this input definition applies to.
     */
    @JvmName("vhpvkkncglojowdw")
    public suspend fun filename(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filename = mapped
    }

    /**
     * @param value The list of TrackDescriptors which define the metadata and selection of tracks in the input.
     */
    @JvmName("brpcelvbwobvujka")
    public suspend fun includedTracks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedTracks = mapped
    }

    /**
     * @param values The list of TrackDescriptors which define the metadata and selection of tracks in the input.
     */
    @JvmName("jtefyfmtrhxvmafy")
    public suspend fun includedTracks(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedTracks = mapped
    }

    /**
     * @param value The discriminator for derived types.
     * Expected value is '#Microsoft.Media.InputFile'.
     */
    @JvmName("ywuoxfsmonamirss")
    public suspend fun odataType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.odataType = mapped
    }

    internal fun build(): InputFileArgs = InputFileArgs(
        filename = filename,
        includedTracks = includedTracks,
        odataType = odataType ?: throw PulumiNullFieldException("odataType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy