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

com.pulumi.awsnative.batch.kotlin.SchedulingPolicyArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin

import com.pulumi.awsnative.batch.SchedulingPolicyArgs.builder
import com.pulumi.awsnative.batch.kotlin.inputs.SchedulingPolicyFairsharePolicyArgs
import com.pulumi.awsnative.batch.kotlin.inputs.SchedulingPolicyFairsharePolicyArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type schema for AWS::Batch::SchedulingPolicy
 * @property fairsharePolicy The fair share policy of the scheduling policy.
 * @property name Name of Scheduling Policy.
 * @property tags A key-value pair to associate with a resource.
 */
public data class SchedulingPolicyArgs(
    public val fairsharePolicy: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.SchedulingPolicyArgs =
        com.pulumi.awsnative.batch.SchedulingPolicyArgs.builder()
            .fairsharePolicy(fairsharePolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [SchedulingPolicyArgs].
 */
@PulumiTagMarker
public class SchedulingPolicyArgsBuilder internal constructor() {
    private var fairsharePolicy: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The fair share policy of the scheduling policy.
     */
    @JvmName("uwvytamuxwdfhcrh")
    public suspend fun fairsharePolicy(`value`: Output) {
        this.fairsharePolicy = value
    }

    /**
     * @param value Name of Scheduling Policy.
     */
    @JvmName("pcuoolcmhwthfvoi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A key-value pair to associate with a resource.
     */
    @JvmName("qvbkiasbxovdhwps")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The fair share policy of the scheduling policy.
     */
    @JvmName("safbqnuokuylkyah")
    public suspend fun fairsharePolicy(`value`: SchedulingPolicyFairsharePolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fairsharePolicy = mapped
    }

    /**
     * @param argument The fair share policy of the scheduling policy.
     */
    @JvmName("axtkwggxihtnhdnw")
    public suspend fun fairsharePolicy(argument: suspend SchedulingPolicyFairsharePolicyArgsBuilder.() -> Unit) {
        val toBeMapped = SchedulingPolicyFairsharePolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.fairsharePolicy = mapped
    }

    /**
     * @param value Name of Scheduling Policy.
     */
    @JvmName("wcrqvrvaixflquit")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A key-value pair to associate with a resource.
     */
    @JvmName("slnfitssajfekitj")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A key-value pair to associate with a resource.
     */
    @JvmName("ktpyesnumhpriuxx")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): SchedulingPolicyArgs = SchedulingPolicyArgs(
        fairsharePolicy = fairsharePolicy,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy