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

com.pulumi.azure.iot.kotlin.inputs.IoTHubFallbackRouteArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.iot.kotlin.inputs

import com.pulumi.azure.iot.inputs.IoTHubFallbackRouteArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property condition The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: .
 * @property enabled Used to specify whether the fallback route is enabled.
 * @property endpointNames The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
 * @property source The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
 */
public data class IoTHubFallbackRouteArgs(
    public val condition: Output? = null,
    public val enabled: Output? = null,
    public val endpointNames: Output>? = null,
    public val source: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.iot.inputs.IoTHubFallbackRouteArgs =
        com.pulumi.azure.iot.inputs.IoTHubFallbackRouteArgs.builder()
            .condition(condition?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .endpointNames(endpointNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .source(source?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IoTHubFallbackRouteArgs].
 */
@PulumiTagMarker
public class IoTHubFallbackRouteArgsBuilder internal constructor() {
    private var condition: Output? = null

    private var enabled: Output? = null

    private var endpointNames: Output>? = null

    private var source: Output? = null

    /**
     * @param value The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: .
     */
    @JvmName("liguoevbwqxbwmyu")
    public suspend fun condition(`value`: Output) {
        this.condition = value
    }

    /**
     * @param value Used to specify whether the fallback route is enabled.
     */
    @JvmName("gxvgmohleuqorgsx")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
     */
    @JvmName("bhxqdplkyfojwoqq")
    public suspend fun endpointNames(`value`: Output>) {
        this.endpointNames = value
    }

    @JvmName("aehehjudqaflgwtv")
    public suspend fun endpointNames(vararg values: Output) {
        this.endpointNames = Output.all(values.asList())
    }

    /**
     * @param values The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
     */
    @JvmName("kthwqbelnwtsiahl")
    public suspend fun endpointNames(values: List>) {
        this.endpointNames = Output.all(values)
    }

    /**
     * @param value The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
     */
    @JvmName("jjodxbsggjvclppr")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The condition that is evaluated to apply the routing rule. Defaults to `true`. For grammar, see: .
     */
    @JvmName("wdhgcqdexhwnwocx")
    public suspend fun condition(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.condition = mapped
    }

    /**
     * @param value Used to specify whether the fallback route is enabled.
     */
    @JvmName("twrcwrfhjinypmry")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
     */
    @JvmName("caqvxehfwagimirn")
    public suspend fun endpointNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointNames = mapped
    }

    /**
     * @param values The endpoints to which messages that satisfy the condition are routed. Currently only 1 endpoint is allowed.
     */
    @JvmName("htucscbmtdbqkptm")
    public suspend fun endpointNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointNames = mapped
    }

    /**
     * @param value The source that the routing rule is to be applied to, such as `DeviceMessages`. Possible values include: `Invalid`, `DeviceMessages`, `TwinChangeEvents`, `DeviceLifecycleEvents`, `DeviceConnectionStateEvents`, `DeviceJobLifecycleEvents` and `DigitalTwinChangeEvents`. Defaults to `DeviceMessages`.
     */
    @JvmName("mskgasbiabounqja")
    public suspend fun source(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    internal fun build(): IoTHubFallbackRouteArgs = IoTHubFallbackRouteArgs(
        condition = condition,
        enabled = enabled,
        endpointNames = endpointNames,
        source = source,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy