com.pulumi.azurenative.datafactory.kotlin.inputs.BlobSourceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.BlobSourceArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A copy activity Azure Blob source.
* @property disableMetricsCollection If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
* @property maxConcurrentConnections The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
* @property recursive If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).
* @property skipHeaderLineCount Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer).
* @property sourceRetryCount Source retry count. Type: integer (or Expression with resultType integer).
* @property sourceRetryWait Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
* @property treatEmptyAsNull Treat empty as null. Type: boolean (or Expression with resultType boolean).
* @property type Copy source type.
* Expected value is 'BlobSource'.
*/
public data class BlobSourceArgs(
public val disableMetricsCollection: Output? = null,
public val maxConcurrentConnections: Output? = null,
public val recursive: Output? = null,
public val skipHeaderLineCount: Output? = null,
public val sourceRetryCount: Output? = null,
public val sourceRetryWait: Output? = null,
public val treatEmptyAsNull: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.BlobSourceArgs =
com.pulumi.azurenative.datafactory.inputs.BlobSourceArgs.builder()
.disableMetricsCollection(disableMetricsCollection?.applyValue({ args0 -> args0 }))
.maxConcurrentConnections(maxConcurrentConnections?.applyValue({ args0 -> args0 }))
.recursive(recursive?.applyValue({ args0 -> args0 }))
.skipHeaderLineCount(skipHeaderLineCount?.applyValue({ args0 -> args0 }))
.sourceRetryCount(sourceRetryCount?.applyValue({ args0 -> args0 }))
.sourceRetryWait(sourceRetryWait?.applyValue({ args0 -> args0 }))
.treatEmptyAsNull(treatEmptyAsNull?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BlobSourceArgs].
*/
@PulumiTagMarker
public class BlobSourceArgsBuilder internal constructor() {
private var disableMetricsCollection: Output? = null
private var maxConcurrentConnections: Output? = null
private var recursive: Output? = null
private var skipHeaderLineCount: Output? = null
private var sourceRetryCount: Output? = null
private var sourceRetryWait: Output? = null
private var treatEmptyAsNull: Output? = null
private var type: Output? = null
/**
* @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("rkbpjyqjifvcmiqg")
public suspend fun disableMetricsCollection(`value`: Output) {
this.disableMetricsCollection = value
}
/**
* @param value The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
*/
@JvmName("pgjgvxfxyqdpreaf")
public suspend fun maxConcurrentConnections(`value`: Output) {
this.maxConcurrentConnections = value
}
/**
* @param value If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("mqyfcgkewtkrjvbd")
public suspend fun recursive(`value`: Output) {
this.recursive = value
}
/**
* @param value Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer).
*/
@JvmName("inxihxeswsxwfcwi")
public suspend fun skipHeaderLineCount(`value`: Output) {
this.skipHeaderLineCount = value
}
/**
* @param value Source retry count. Type: integer (or Expression with resultType integer).
*/
@JvmName("hipevgkybesajxxo")
public suspend fun sourceRetryCount(`value`: Output) {
this.sourceRetryCount = value
}
/**
* @param value Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JvmName("boqlnswvluaujfpn")
public suspend fun sourceRetryWait(`value`: Output) {
this.sourceRetryWait = value
}
/**
* @param value Treat empty as null. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("utvpobeiyycidwrw")
public suspend fun treatEmptyAsNull(`value`: Output) {
this.treatEmptyAsNull = value
}
/**
* @param value Copy source type.
* Expected value is 'BlobSource'.
*/
@JvmName("xwhjboyubclqnbsn")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("jhbbotnijnrbxnqb")
public suspend fun disableMetricsCollection(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableMetricsCollection = mapped
}
/**
* @param value The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
*/
@JvmName("wmouotrhwrodtbmr")
public suspend fun maxConcurrentConnections(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentConnections = mapped
}
/**
* @param value If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("bvbeehtyavecrium")
public suspend fun recursive(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recursive = mapped
}
/**
* @param value Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer).
*/
@JvmName("afmjpgxckidlcyqn")
public suspend fun skipHeaderLineCount(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipHeaderLineCount = mapped
}
/**
* @param value Source retry count. Type: integer (or Expression with resultType integer).
*/
@JvmName("ocqbkcvkukinetap")
public suspend fun sourceRetryCount(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceRetryCount = mapped
}
/**
* @param value Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JvmName("iaiyvgcrtqncfglp")
public suspend fun sourceRetryWait(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceRetryWait = mapped
}
/**
* @param value Treat empty as null. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("bpcjnoaqhnnxfyhc")
public suspend fun treatEmptyAsNull(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.treatEmptyAsNull = mapped
}
/**
* @param value Copy source type.
* Expected value is 'BlobSource'.
*/
@JvmName("cbfomshprnvnmtvq")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): BlobSourceArgs = BlobSourceArgs(
disableMetricsCollection = disableMetricsCollection,
maxConcurrentConnections = maxConcurrentConnections,
recursive = recursive,
skipHeaderLineCount = skipHeaderLineCount,
sourceRetryCount = sourceRetryCount,
sourceRetryWait = sourceRetryWait,
treatEmptyAsNull = treatEmptyAsNull,
type = type ?: throw PulumiNullFieldException("type"),
)
}