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

com.pulumi.azurenative.media.kotlin.inputs.TrackPropertyConditionArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.media.kotlin.inputs

import com.pulumi.azurenative.media.inputs.TrackPropertyConditionArgs.builder
import com.pulumi.azurenative.media.kotlin.enums.TrackPropertyCompareOperation
import com.pulumi.azurenative.media.kotlin.enums.TrackPropertyType
import com.pulumi.core.Either
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Class to specify one track property condition
 * @property operation Track property condition operation
 * @property property Track property type
 * @property value Track property value
 */
public data class TrackPropertyConditionArgs(
    public val operation: Output>,
    public val `property`: Output>,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.media.inputs.TrackPropertyConditionArgs =
        com.pulumi.azurenative.media.inputs.TrackPropertyConditionArgs.builder()
            .operation(
                operation.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .`property`(
                `property`.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TrackPropertyConditionArgs].
 */
@PulumiTagMarker
public class TrackPropertyConditionArgsBuilder internal constructor() {
    private var operation: Output>? = null

    private var `property`: Output>? = null

    private var `value`: Output? = null

    /**
     * @param value Track property condition operation
     */
    @JvmName("pmrrrineqfhsnwvo")
    public suspend fun operation(`value`: Output>) {
        this.operation = value
    }

    /**
     * @param value Track property type
     */
    @JvmName("tuqiaftlropahjmx")
    public suspend fun `property`(`value`: Output>) {
        this.`property` = value
    }

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

    /**
     * @param value Track property condition operation
     */
    @JvmName("xoqdxuwbljwgkaka")
    public suspend fun operation(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operation = mapped
    }

    /**
     * @param value Track property condition operation
     */
    @JvmName("nxarbxkykxxqlpqo")
    public fun operation(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operation = mapped
    }

    /**
     * @param value Track property condition operation
     */
    @JvmName("eikmxfykytlnwdgm")
    public fun operation(`value`: TrackPropertyCompareOperation) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operation = mapped
    }

    /**
     * @param value Track property type
     */
    @JvmName("btwhcxpyebigjcjb")
    public suspend fun `property`(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`property` = mapped
    }

    /**
     * @param value Track property type
     */
    @JvmName("yodqbmqyokcxjcgh")
    public fun `property`(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`property` = mapped
    }

    /**
     * @param value Track property type
     */
    @JvmName("yqqxektimjqlkvjq")
    public fun `property`(`value`: TrackPropertyType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`property` = mapped
    }

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

    internal fun build(): TrackPropertyConditionArgs = TrackPropertyConditionArgs(
        operation = operation ?: throw PulumiNullFieldException("operation"),
        `property` = `property` ?: throw PulumiNullFieldException("property"),
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy