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

com.pulumi.googlenative.transcoder.v1.kotlin.inputs.OverlayArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.transcoder.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.transcoder.v1.inputs.OverlayArgs.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

/**
 * Overlay configuration.
 * @property animations List of Animations. The list should be chronological, without any time overlap.
 * @property image Image overlay.
 */
public data class OverlayArgs(
    public val animations: Output>? = null,
    public val image: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.transcoder.v1.inputs.OverlayArgs =
        com.pulumi.googlenative.transcoder.v1.inputs.OverlayArgs.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 [OverlayArgs].
 */
@PulumiTagMarker
public class OverlayArgsBuilder 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.
     */
    @JvmName("nxcjuolscmgxbrsv")
    public suspend fun animations(`value`: Output>) {
        this.animations = value
    }

    @JvmName("aqtastppsfcoynlc")
    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.
     */
    @JvmName("sxgpmgxgrrphljrg")
    public suspend fun animations(values: List>) {
        this.animations = Output.all(values)
    }

    /**
     * @param value Image overlay.
     */
    @JvmName("jrhmahpixrppertu")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value List of Animations. The list should be chronological, without any time overlap.
     */
    @JvmName("oakwiegdclsxhcvp")
    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.
     */
    @JvmName("ugbjrvxdxwobxvjv")
    public suspend fun animations(argument: List Unit>) {
        val toBeMapped = argument.toList().map { AnimationArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.animations = mapped
    }

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

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

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

    /**
     * @param value Image overlay.
     */
    @JvmName("bkrrqrermnljqhvx")
    public suspend fun image(`value`: ImageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param argument Image overlay.
     */
    @JvmName("khthomfivdakqsoh")
    public suspend fun image(argument: suspend ImageArgsBuilder.() -> Unit) {
        val toBeMapped = ImageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.image = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy