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

com.pulumi.awsnative.omics.kotlin.WorkflowArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.omics.kotlin

import com.pulumi.awsnative.omics.WorkflowArgs.builder
import com.pulumi.awsnative.omics.kotlin.enums.WorkflowAccelerators
import com.pulumi.awsnative.omics.kotlin.enums.WorkflowEngine
import com.pulumi.awsnative.omics.kotlin.inputs.WorkflowParameterArgs
import com.pulumi.awsnative.omics.kotlin.inputs.WorkflowParameterArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of AWS::Omics::Workflow Resource Type
 * @property accelerators
 * @property definitionUri The URI of a definition for the workflow.
 * @property description The parameter's description.
 * @property engine An engine for the workflow.
 * @property main The path of the main definition file for the workflow.
 * @property name The workflow's name.
 * @property parameterTemplate The workflow's parameter template.
 * @property storageCapacity The default storage capacity for the workflow runs, in gibibytes.
 * @property tags Tags for the workflow.
 */
public data class WorkflowArgs(
    public val accelerators: Output? = null,
    public val definitionUri: Output? = null,
    public val description: Output? = null,
    public val engine: Output? = null,
    public val main: Output? = null,
    public val name: Output? = null,
    public val parameterTemplate: Output>? = null,
    public val storageCapacity: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.omics.WorkflowArgs =
        com.pulumi.awsnative.omics.WorkflowArgs.builder()
            .accelerators(accelerators?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .definitionUri(definitionUri?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .engine(engine?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .main(main?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .parameterTemplate(
                parameterTemplate?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .storageCapacity(storageCapacity?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [WorkflowArgs].
 */
@PulumiTagMarker
public class WorkflowArgsBuilder internal constructor() {
    private var accelerators: Output? = null

    private var definitionUri: Output? = null

    private var description: Output? = null

    private var engine: Output? = null

    private var main: Output? = null

    private var name: Output? = null

    private var parameterTemplate: Output>? = null

    private var storageCapacity: Output? = null

    private var tags: Output>? = null

    /**
     * @param value
     */
    @JvmName("ssghflswfmbweuft")
    public suspend fun accelerators(`value`: Output) {
        this.accelerators = value
    }

    /**
     * @param value The URI of a definition for the workflow.
     */
    @JvmName("tbstbyhbkeocbmdh")
    public suspend fun definitionUri(`value`: Output) {
        this.definitionUri = value
    }

    /**
     * @param value The parameter's description.
     */
    @JvmName("ocfhoryvuygsvixs")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value An engine for the workflow.
     */
    @JvmName("tclsoemgwnwqmjmr")
    public suspend fun engine(`value`: Output) {
        this.engine = value
    }

    /**
     * @param value The path of the main definition file for the workflow.
     */
    @JvmName("fxmapyjhkjeuhkba")
    public suspend fun main(`value`: Output) {
        this.main = value
    }

    /**
     * @param value The workflow's name.
     */
    @JvmName("qqqfgilvjpdklqfq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The workflow's parameter template.
     */
    @JvmName("ioxfedtpjlrhajot")
    public suspend fun parameterTemplate(`value`: Output>) {
        this.parameterTemplate = value
    }

    /**
     * @param value The default storage capacity for the workflow runs, in gibibytes.
     */
    @JvmName("hewqjshciiaemrnt")
    public suspend fun storageCapacity(`value`: Output) {
        this.storageCapacity = value
    }

    /**
     * @param value Tags for the workflow.
     */
    @JvmName("iyvfqulpmktnwgvi")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value
     */
    @JvmName("ftvrdesijauyhqme")
    public suspend fun accelerators(`value`: WorkflowAccelerators?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accelerators = mapped
    }

    /**
     * @param value The URI of a definition for the workflow.
     */
    @JvmName("wexmcgmikwoeaijg")
    public suspend fun definitionUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.definitionUri = mapped
    }

    /**
     * @param value The parameter's description.
     */
    @JvmName("fxvemefmkpeoyvja")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value An engine for the workflow.
     */
    @JvmName("wgrdlkudekvcobda")
    public suspend fun engine(`value`: WorkflowEngine?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engine = mapped
    }

    /**
     * @param value The path of the main definition file for the workflow.
     */
    @JvmName("pwelckomamtbrdgh")
    public suspend fun main(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.main = mapped
    }

    /**
     * @param value The workflow's name.
     */
    @JvmName("mfvxkeqascknsftk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The workflow's parameter template.
     */
    @JvmName("twakmctanginfmjd")
    public suspend fun parameterTemplate(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterTemplate = mapped
    }

    /**
     * @param argument The workflow's parameter template.
     */
    @JvmName("fspuymsqujolimxh")
    public suspend fun parameterTemplate(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                WorkflowParameterArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.parameterTemplate = mapped
    }

    /**
     * @param values The workflow's parameter template.
     */
    @JvmName("ypqyskwjwhxxxmsr")
    public fun parameterTemplate(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameterTemplate = mapped
    }

    /**
     * @param value The default storage capacity for the workflow runs, in gibibytes.
     */
    @JvmName("ealthffguuixfani")
    public suspend fun storageCapacity(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageCapacity = mapped
    }

    /**
     * @param value Tags for the workflow.
     */
    @JvmName("xdvoydmjxmbtbiwe")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Tags for the workflow.
     */
    @JvmName("nnwoacujeyojgtlx")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): WorkflowArgs = WorkflowArgs(
        accelerators = accelerators,
        definitionUri = definitionUri,
        description = description,
        engine = engine,
        main = main,
        name = name,
        parameterTemplate = parameterTemplate,
        storageCapacity = storageCapacity,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy