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

com.pulumi.aws.gamelift.kotlin.MatchmakingRuleSetArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.gamelift.kotlin

import com.pulumi.aws.gamelift.MatchmakingRuleSetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides a GameLift Matchmaking Rule Set resources.
 * ## Import
 * GameLift Matchmaking Rule Sets  can be imported using the ID, e.g.,
 * ```sh
 * $ pulumi import aws:gamelift/matchmakingRuleSet:MatchmakingRuleSet example 
 * ```
 * @property name Name of the matchmaking rule set.
 * @property ruleSetBody JSON encoded string containing rule set data.
 * @property tags
 */
public data class MatchmakingRuleSetArgs
@Deprecated(
    message = """
This resource will be removed in the next major version.Consider using
    https://www.pulumi.com/registry/packages/aws-native/api-docs/gamelift/matchmakingruleset/
    instead
""",
)
constructor(
    public val name: Output? = null,
    public val ruleSetBody: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.gamelift.MatchmakingRuleSetArgs =
        com.pulumi.aws.gamelift.MatchmakingRuleSetArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .ruleSetBody(ruleSetBody?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [MatchmakingRuleSetArgs].
 */
@PulumiTagMarker
@Deprecated(
    message = """
This resource will be removed in the next major version.Consider using
    https://www.pulumi.com/registry/packages/aws-native/api-docs/gamelift/matchmakingruleset/
    instead
""",
)
public class MatchmakingRuleSetArgsBuilder internal constructor() {
    private var name: Output? = null

    private var ruleSetBody: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Name of the matchmaking rule set.
     */
    @JvmName("dujwbiaeetmflkiq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value JSON encoded string containing rule set data.
     */
    @JvmName("xxmhyoxrxneljody")
    public suspend fun ruleSetBody(`value`: Output) {
        this.ruleSetBody = value
    }

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

    /**
     * @param value Name of the matchmaking rule set.
     */
    @JvmName("esjswtsnwokslhin")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value JSON encoded string containing rule set data.
     */
    @JvmName("ercbmcwvvtejrrdq")
    public suspend fun ruleSetBody(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ruleSetBody = mapped
    }

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

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

    internal fun build(): MatchmakingRuleSetArgs = MatchmakingRuleSetArgs(
        name = name,
        ruleSetBody = ruleSetBody,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy