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.ValidationActivityArgs.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 verifies that an external resource exists.
* @property childItems Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean).
* @property dataset Validation activity dataset reference.
* @property dependsOn Activity depends on condition.
* @property description Activity description.
* @property minimumSize Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer (or Expression with resultType integer).
* @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 sleep A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: integer (or Expression with resultType integer).
* @property state Activity state. This is an optional property and if not provided, the state will be Active by default.
* @property timeout Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
* @property type Type of activity.
* Expected value is 'Validation'.
* @property userProperties Activity user properties.
*/
public data class ValidationActivityArgs(
public val childItems: Output? = null,
public val dataset: Output,
public val dependsOn: Output>? = null,
public val description: Output? = null,
public val minimumSize: Output? = null,
public val name: Output,
public val onInactiveMarkAs: Output>? = null,
public val sleep: Output? = null,
public val state: Output>? = null,
public val timeout: Output? = null,
public val type: Output,
public val userProperties: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.ValidationActivityArgs =
com.pulumi.azurenative.datafactory.inputs.ValidationActivityArgs.builder()
.childItems(childItems?.applyValue({ args0 -> args0 }))
.dataset(dataset.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.dependsOn(
dependsOn?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.minimumSize(minimumSize?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.onInactiveMarkAs(
onInactiveMarkAs?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.sleep(sleep?.applyValue({ args0 -> args0 }))
.state(
state?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.timeout(timeout?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.userProperties(
userProperties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ValidationActivityArgs].
*/
@PulumiTagMarker
public class ValidationActivityArgsBuilder internal constructor() {
private var childItems: Output? = null
private var dataset: Output? = null
private var dependsOn: Output>? = null
private var description: Output? = null
private var minimumSize: Output? = null
private var name: Output? = null
private var onInactiveMarkAs: Output>? = null
private var sleep: Output? = null
private var state: Output>? = null
private var timeout: Output? = null
private var type: Output? = null
private var userProperties: Output>? = null
/**
* @param value Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the folder must be empty. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("wqxsgmmertwvpyjo")
public suspend fun childItems(`value`: Output) {
this.childItems = value
}
/**
* @param value Validation activity dataset reference.
*/
@JvmName("uxohiabwcvfqebnt")
public suspend fun dataset(`value`: Output) {
this.dataset = value
}
/**
* @param value Activity depends on condition.
*/
@JvmName("ymloblugkwclhnpx")
public suspend fun dependsOn(`value`: Output>) {
this.dependsOn = value
}
@JvmName("rrthimpsrrpctyii")
public suspend fun dependsOn(vararg values: Output) {
this.dependsOn = Output.all(values.asList())
}
/**
* @param values Activity depends on condition.
*/
@JvmName("fddfnplojvkvlkmt")
public suspend fun dependsOn(values: List