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

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

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

package com.pulumi.awsnative.omics.kotlin

import com.pulumi.awsnative.omics.RunGroupArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of AWS::Omics::RunGroup Resource Type
 * @property maxCpus The group's maximum CPU count setting.
 * @property maxDuration The group's maximum duration setting in minutes.
 * @property maxGpus The maximum GPUs that can be used by a run group.
 * @property maxRuns The group's maximum concurrent run setting.
 * @property name The group's name.
 * @property tags Tags for the group.
 */
public data class RunGroupArgs(
    public val maxCpus: Output? = null,
    public val maxDuration: Output? = null,
    public val maxGpus: Output? = null,
    public val maxRuns: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.omics.RunGroupArgs =
        com.pulumi.awsnative.omics.RunGroupArgs.builder()
            .maxCpus(maxCpus?.applyValue({ args0 -> args0 }))
            .maxDuration(maxDuration?.applyValue({ args0 -> args0 }))
            .maxGpus(maxGpus?.applyValue({ args0 -> args0 }))
            .maxRuns(maxRuns?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RunGroupArgs].
 */
@PulumiTagMarker
public class RunGroupArgsBuilder internal constructor() {
    private var maxCpus: Output? = null

    private var maxDuration: Output? = null

    private var maxGpus: Output? = null

    private var maxRuns: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The group's maximum CPU count setting.
     */
    @JvmName("aelkpsfucsjnitkf")
    public suspend fun maxCpus(`value`: Output) {
        this.maxCpus = value
    }

    /**
     * @param value The group's maximum duration setting in minutes.
     */
    @JvmName("utevuececjycfqfj")
    public suspend fun maxDuration(`value`: Output) {
        this.maxDuration = value
    }

    /**
     * @param value The maximum GPUs that can be used by a run group.
     */
    @JvmName("qnhlkuhhorlcnrkc")
    public suspend fun maxGpus(`value`: Output) {
        this.maxGpus = value
    }

    /**
     * @param value The group's maximum concurrent run setting.
     */
    @JvmName("pxwahxeoqqiynrxw")
    public suspend fun maxRuns(`value`: Output) {
        this.maxRuns = value
    }

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

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

    /**
     * @param value The group's maximum CPU count setting.
     */
    @JvmName("omrgwbqoecfjfvxr")
    public suspend fun maxCpus(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCpus = mapped
    }

    /**
     * @param value The group's maximum duration setting in minutes.
     */
    @JvmName("fpjadhybapvcqoea")
    public suspend fun maxDuration(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDuration = mapped
    }

    /**
     * @param value The maximum GPUs that can be used by a run group.
     */
    @JvmName("vbsgjjnafdivvimy")
    public suspend fun maxGpus(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxGpus = mapped
    }

    /**
     * @param value The group's maximum concurrent run setting.
     */
    @JvmName("sdjhxagmfffhduxt")
    public suspend fun maxRuns(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxRuns = mapped
    }

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

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

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

    internal fun build(): RunGroupArgs = RunGroupArgs(
        maxCpus = maxCpus,
        maxDuration = maxDuration,
        maxGpus = maxGpus,
        maxRuns = maxRuns,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy