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

com.pulumi.googlenative.transcoder.v1.kotlin.inputs.ImageArgs.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.ImageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Overlaid image.
 * @property alpha Target image opacity. Valid values are from `1.0` (solid, default) to `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
 * @property resolution Normalized image resolution, based on output video resolution. Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`.
 * @property uri URI of the image in Cloud Storage. For example, `gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported.
 */
public data class ImageArgs(
    public val alpha: Output? = null,
    public val resolution: Output? = null,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.transcoder.v1.inputs.ImageArgs =
        com.pulumi.googlenative.transcoder.v1.inputs.ImageArgs.builder()
            .alpha(alpha?.applyValue({ args0 -> args0 }))
            .resolution(resolution?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ImageArgs].
 */
@PulumiTagMarker
public class ImageArgsBuilder internal constructor() {
    private var alpha: Output? = null

    private var resolution: Output? = null

    private var uri: Output? = null

    /**
     * @param value Target image opacity. Valid values are from `1.0` (solid, default) to `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
     */
    @JvmName("utvowsbafjrmmmvx")
    public suspend fun alpha(`value`: Output) {
        this.alpha = value
    }

    /**
     * @param value Normalized image resolution, based on output video resolution. Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`.
     */
    @JvmName("umouuubkfumrvlgi")
    public suspend fun resolution(`value`: Output) {
        this.resolution = value
    }

    /**
     * @param value URI of the image in Cloud Storage. For example, `gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported.
     */
    @JvmName("bywnctvyrajrvlof")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Target image opacity. Valid values are from `1.0` (solid, default) to `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
     */
    @JvmName("pyrdvdseecbupaom")
    public suspend fun alpha(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alpha = mapped
    }

    /**
     * @param value Normalized image resolution, based on output video resolution. Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`.
     */
    @JvmName("gowewsatfsrejcej")
    public suspend fun resolution(`value`: NormalizedCoordinateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resolution = mapped
    }

    /**
     * @param argument Normalized image resolution, based on output video resolution. Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`.
     */
    @JvmName("sljnkfcotfrdjbom")
    public suspend fun resolution(argument: suspend NormalizedCoordinateArgsBuilder.() -> Unit) {
        val toBeMapped = NormalizedCoordinateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resolution = mapped
    }

    /**
     * @param value URI of the image in Cloud Storage. For example, `gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported.
     */
    @JvmName("ybcnqscxoyslwawu")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): ImageArgs = ImageArgs(
        alpha = alpha,
        resolution = resolution,
        uri = uri ?: throw PulumiNullFieldException("uri"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy