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

com.pulumi.gcp.transcoder.kotlin.inputs.JobTemplateConfigOverlayArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.transcoder.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.transcoder.inputs.JobTemplateConfigOverlayArgs.builder
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

/**
 *
 * @property animations List of animations. The list should be chronological, without any time overlap.
 * Structure is documented below.
 * @property image Image overlay.
 * Structure is documented below.
 */
public data class JobTemplateConfigOverlayArgs(
    public val animations: Output>? = null,
    public val image: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.transcoder.inputs.JobTemplateConfigOverlayArgs =
        com.pulumi.gcp.transcoder.inputs.JobTemplateConfigOverlayArgs.builder()
            .animations(
                animations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .image(image?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var image: Output? = null

    /**
     * @param value List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("udtacwrvtbjcwkhd")
    public suspend fun animations(`value`: Output>) {
        this.animations = value
    }

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

    /**
     * @param values List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("gukuvxnmeymgmlyy")
    public suspend fun animations(values: List>) {
        this.animations = Output.all(values)
    }

    /**
     * @param value Image overlay.
     * Structure is documented below.
     */
    @JvmName("kmybquflqkjpsyrl")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("vrqphlufqbtvwysq")
    public suspend fun animations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.animations = mapped
    }

    /**
     * @param argument List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("utuxadukqchjlisf")
    public suspend fun animations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JobTemplateConfigOverlayAnimationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.animations = mapped
    }

    /**
     * @param argument List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("whugmokmyqcidtiy")
    public suspend fun animations(vararg argument: suspend JobTemplateConfigOverlayAnimationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JobTemplateConfigOverlayAnimationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.animations = mapped
    }

    /**
     * @param argument List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("hkemihlhxxsnhyth")
    public suspend fun animations(argument: suspend JobTemplateConfigOverlayAnimationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            JobTemplateConfigOverlayAnimationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.animations = mapped
    }

    /**
     * @param values List of animations. The list should be chronological, without any time overlap.
     * Structure is documented below.
     */
    @JvmName("qrvcsxrrcxegccul")
    public suspend fun animations(vararg values: JobTemplateConfigOverlayAnimationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.animations = mapped
    }

    /**
     * @param value Image overlay.
     * Structure is documented below.
     */
    @JvmName("hnfiahyfhlyyljbd")
    public suspend fun image(`value`: JobTemplateConfigOverlayImageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param argument Image overlay.
     * Structure is documented below.
     */
    @JvmName("aehvnffperywpyyd")
    public suspend fun image(argument: suspend JobTemplateConfigOverlayImageArgsBuilder.() -> Unit) {
        val toBeMapped = JobTemplateConfigOverlayImageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.image = mapped
    }

    internal fun build(): JobTemplateConfigOverlayArgs = JobTemplateConfigOverlayArgs(
        animations = animations,
        image = image,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy