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

com.pulumi.azure.batch.kotlin.inputs.PoolTaskSchedulingPolicyArgs.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.

There is a newer version: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.batch.kotlin.inputs

import com.pulumi.azure.batch.inputs.PoolTaskSchedulingPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property nodeFillType Supported values are "Pack" and "Spread". "Pack" means as many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool. "Spread" means that tasks should be assigned evenly across all nodes in the pool.
 */
public data class PoolTaskSchedulingPolicyArgs(
    public val nodeFillType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.batch.inputs.PoolTaskSchedulingPolicyArgs =
        com.pulumi.azure.batch.inputs.PoolTaskSchedulingPolicyArgs.builder()
            .nodeFillType(nodeFillType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PoolTaskSchedulingPolicyArgs].
 */
@PulumiTagMarker
public class PoolTaskSchedulingPolicyArgsBuilder internal constructor() {
    private var nodeFillType: Output? = null

    /**
     * @param value Supported values are "Pack" and "Spread". "Pack" means as many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool. "Spread" means that tasks should be assigned evenly across all nodes in the pool.
     */
    @JvmName("fqqdjjggelpglvcg")
    public suspend fun nodeFillType(`value`: Output) {
        this.nodeFillType = value
    }

    /**
     * @param value Supported values are "Pack" and "Spread". "Pack" means as many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool. "Spread" means that tasks should be assigned evenly across all nodes in the pool.
     */
    @JvmName("gkbegbdhvonvwrla")
    public suspend fun nodeFillType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeFillType = mapped
    }

    internal fun build(): PoolTaskSchedulingPolicyArgs = PoolTaskSchedulingPolicyArgs(
        nodeFillType = nodeFillType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy