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.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.SwitchActivityArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.ActivityOnInactiveMarkAs
import com.pulumi.azurenative.datafactory.kotlin.enums.ActivityState
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 com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property.
* @property cases List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.
* @property defaultActivities List of activities to execute if no case condition is satisfied. This is an optional property and if not provided, the activity will exit without any action.
* @property dependsOn Activity depends on condition.
* @property description Activity description.
* @property name Activity name.
* @property on An expression that would evaluate to a string or integer. This is used to determine the block of activities in cases that will be executed.
* @property onInactiveMarkAs Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
* @property state Activity state. This is an optional property and if not provided, the state will be Active by default.
* @property type Type of activity.
* Expected value is 'Switch'.
* @property userProperties Activity user properties.
*/
public data class SwitchActivityArgs(
public val cases: Output>? = null,
public val defaultActivities: Output>? = null,
public val dependsOn: Output>? = null,
public val description: Output? = null,
public val name: Output,
public val on: Output,
public val onInactiveMarkAs: Output>? = null,
public val state: Output>? = null,
public val type: Output,
public val userProperties: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.SwitchActivityArgs =
com.pulumi.azurenative.datafactory.inputs.SwitchActivityArgs.builder()
.cases(cases?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.defaultActivities(defaultActivities?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.dependsOn(
dependsOn?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.on(on.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.onInactiveMarkAs(
onInactiveMarkAs?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.state(
state?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.type(type.applyValue({ args0 -> args0 }))
.userProperties(
userProperties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [SwitchActivityArgs].
*/
@PulumiTagMarker
public class SwitchActivityArgsBuilder internal constructor() {
private var cases: Output>? = null
private var defaultActivities: Output>? = null
private var dependsOn: Output>? = null
private var description: Output? = null
private var name: Output? = null
private var on: Output? = null
private var onInactiveMarkAs: Output>? = null
private var state: Output>? = null
private var type: Output? = null
private var userProperties: Output>? = null
/**
* @param value List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.
*/
@JvmName("ofsrxdajgumfjvng")
public suspend fun cases(`value`: Output>) {
this.cases = value
}
@JvmName("fjtydkcqrsfbeujh")
public suspend fun cases(vararg values: Output) {
this.cases = Output.all(values.asList())
}
/**
* @param values List of cases that correspond to expected values of the 'on' property. This is an optional property and if not provided, the activity will execute activities provided in defaultActivities.
*/
@JvmName("vstkahtypjqbbfqk")
public suspend fun cases(values: List