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

com.pulumi.azurenative.machinelearningservices.kotlin.inputs.UriFileJobOutputArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.machinelearningservices.kotlin.inputs

import com.pulumi.azurenative.machinelearningservices.inputs.UriFileJobOutputArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.OutputDeliveryMode
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property description Description for the output.
 * @property jobOutputType Enum to determine the Job Output Type.
 * Expected value is 'uri_file'.
 * @property mode Output Asset Delivery Mode.
 * @property uri Output Asset URI.
 */
public data class UriFileJobOutputArgs(
    public val description: Output? = null,
    public val jobOutputType: Output,
    public val mode: Output>? = null,
    public val uri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.UriFileJobOutputArgs = com.pulumi.azurenative.machinelearningservices.inputs.UriFileJobOutputArgs.builder()
        .description(description?.applyValue({ args0 -> args0 }))
        .jobOutputType(jobOutputType.applyValue({ args0 -> args0 }))
        .mode(
            mode?.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .uri(uri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UriFileJobOutputArgs].
 */
@PulumiTagMarker
public class UriFileJobOutputArgsBuilder internal constructor() {
    private var description: Output? = null

    private var jobOutputType: Output? = null

    private var mode: Output>? = null

    private var uri: Output? = null

    /**
     * @param value Description for the output.
     */
    @JvmName("iwiespitxwaamted")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Enum to determine the Job Output Type.
     * Expected value is 'uri_file'.
     */
    @JvmName("tcuoobsevxrdkvel")
    public suspend fun jobOutputType(`value`: Output) {
        this.jobOutputType = value
    }

    /**
     * @param value Output Asset Delivery Mode.
     */
    @JvmName("fjccjxivatkpbdit")
    public suspend fun mode(`value`: Output>) {
        this.mode = value
    }

    /**
     * @param value Output Asset URI.
     */
    @JvmName("nmouyyvpprnabsds")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Description for the output.
     */
    @JvmName("baxspgseckbsrjad")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Enum to determine the Job Output Type.
     * Expected value is 'uri_file'.
     */
    @JvmName("fsfciohfcyvsdrpv")
    public suspend fun jobOutputType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jobOutputType = mapped
    }

    /**
     * @param value Output Asset Delivery Mode.
     */
    @JvmName("edwrctdjmmnvnmju")
    public suspend fun mode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Output Asset Delivery Mode.
     */
    @JvmName("wyjkissimnmhepre")
    public fun mode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Output Asset Delivery Mode.
     */
    @JvmName("ajfvjljidahqakaf")
    public fun mode(`value`: OutputDeliveryMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Output Asset URI.
     */
    @JvmName("qfawdambemlnjlsr")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): UriFileJobOutputArgs = UriFileJobOutputArgs(
        description = description,
        jobOutputType = jobOutputType ?: throw PulumiNullFieldException("jobOutputType"),
        mode = mode,
        uri = uri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy