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.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.DatabricksSparkJarActivityArgs.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.collections.Map
import kotlin.jvm.JvmName
/**
* DatabricksSparkJar activity.
* @property dependsOn Activity depends on condition.
* @property description Activity description.
* @property libraries A list of libraries to be installed on the cluster that will execute the job.
* @property linkedServiceName Linked service reference.
* @property mainClassName The full name of the class containing the main method to be executed. This class must be contained in a JAR provided as a library. Type: string (or Expression with resultType string).
* @property name Activity name.
* @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 parameters Parameters that will be passed to the main method.
* @property policy Activity policy.
* @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 'DatabricksSparkJar'.
* @property userProperties Activity user properties.
*/
public data class DatabricksSparkJarActivityArgs(
public val dependsOn: Output>? = null,
public val description: Output? = null,
public val libraries: Output>>? = null,
public val linkedServiceName: Output? = null,
public val mainClassName: Output,
public val name: Output,
public val onInactiveMarkAs: Output>? = null,
public val parameters: Output>? = null,
public val policy: 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.DatabricksSparkJarActivityArgs =
com.pulumi.azurenative.datafactory.inputs.DatabricksSparkJarActivityArgs.builder()
.dependsOn(
dependsOn?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.libraries(
libraries?.applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
})
}),
)
.linkedServiceName(linkedServiceName?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.mainClassName(mainClassName.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.onInactiveMarkAs(
onInactiveMarkAs?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.parameters(parameters?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.policy(policy?.applyValue({ 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 [DatabricksSparkJarActivityArgs].
*/
@PulumiTagMarker
public class DatabricksSparkJarActivityArgsBuilder internal constructor() {
private var dependsOn: Output>? = null
private var description: Output? = null
private var libraries: Output>>? = null
private var linkedServiceName: Output? = null
private var mainClassName: Output? = null
private var name: Output? = null
private var onInactiveMarkAs: Output>? = null
private var parameters: Output>? = null
private var policy: Output? = null
private var state: Output>? = null
private var type: Output? = null
private var userProperties: Output>? = null
/**
* @param value Activity depends on condition.
*/
@JvmName("fqgifhivpriljbsx")
public suspend fun dependsOn(`value`: Output>) {
this.dependsOn = value
}
@JvmName("xtnnwoitwownpxua")
public suspend fun dependsOn(vararg values: Output) {
this.dependsOn = Output.all(values.asList())
}
/**
* @param values Activity depends on condition.
*/
@JvmName("bspqdulrkclastce")
public suspend fun dependsOn(values: List