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

com.pulumi.awsnative.connect.kotlin.inputs.RuleFieldArgs.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.connect.kotlin.inputs

import com.pulumi.awsnative.connect.inputs.RuleFieldArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The field of the case.
 * @property id The Id of the field
 * @property value
 */
public data class RuleFieldArgs(
    public val id: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.RuleFieldArgs =
        com.pulumi.awsnative.connect.inputs.RuleFieldArgs.builder()
            .id(id.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RuleFieldArgs].
 */
@PulumiTagMarker
public class RuleFieldArgsBuilder internal constructor() {
    private var id: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The Id of the field
     */
    @JvmName("uxwoggnxtmhaqeow")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

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

    /**
     * @param value The Id of the field
     */
    @JvmName("baqbkfmuoyeithoe")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

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

    /**
     * @param argument
     */
    @JvmName("ffkeuicnygjxkytf")
    public suspend fun `value`(argument: suspend RuleFieldValueArgsBuilder.() -> Unit) {
        val toBeMapped = RuleFieldValueArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.`value` = mapped
    }

    internal fun build(): RuleFieldArgs = RuleFieldArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy