Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.iot.kotlin.inputs
import com.pulumi.azure.iot.inputs.IoTHubRouteArgs.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 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 a route is enabled.
* @property endpointNames The list of endpoints to which messages that satisfy the condition are routed.
* @property name The name of the route.
* @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`.
*/
public data class IoTHubRouteArgs(
public val condition: Output? = null,
public val enabled: Output,
public val endpointNames: Output>,
public val name: Output,
public val source: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.iot.inputs.IoTHubRouteArgs =
com.pulumi.azure.iot.inputs.IoTHubRouteArgs.builder()
.condition(condition?.applyValue({ args0 -> args0 }))
.enabled(enabled.applyValue({ args0 -> args0 }))
.endpointNames(endpointNames.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name.applyValue({ args0 -> args0 }))
.source(source.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IoTHubRouteArgs].
*/
@PulumiTagMarker
public class IoTHubRouteArgsBuilder internal constructor() {
private var condition: Output? = null
private var enabled: Output? = null
private var endpointNames: Output>? = null
private var name: 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("dajrcfbakajttpgo")
public suspend fun condition(`value`: Output) {
this.condition = value
}
/**
* @param value Used to specify whether a route is enabled.
*/
@JvmName("qehybciftlbmpgye")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The list of endpoints to which messages that satisfy the condition are routed.
*/
@JvmName("pnlyjvpndcmvppcj")
public suspend fun endpointNames(`value`: Output>) {
this.endpointNames = value
}
@JvmName("nrqlpwkbitgukoju")
public suspend fun endpointNames(vararg values: Output) {
this.endpointNames = Output.all(values.asList())
}
/**
* @param values The list of endpoints to which messages that satisfy the condition are routed.
*/
@JvmName("xfcnfbgjeqwxtorp")
public suspend fun endpointNames(values: List