All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.datafactory.kotlin.inputs.BlobSinkArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.BlobSinkArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A copy activity Azure Blob sink.
 * @property blobWriterAddHeader Blob writer add header. Type: boolean (or Expression with resultType boolean).
 * @property blobWriterDateTimeFormat Blob writer date time format. Type: string (or Expression with resultType string).
 * @property blobWriterOverwriteFiles Blob writer overwrite files. Type: boolean (or Expression with resultType boolean).
 * @property copyBehavior The type of copy behavior for copy sink.
 * @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 sink data store. Type: integer (or Expression with resultType integer).
 * @property metadata Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
 * @property sinkRetryCount Sink retry count. Type: integer (or Expression with resultType integer).
 * @property sinkRetryWait Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
 * @property type Copy sink type.
 * Expected value is 'BlobSink'.
 * @property writeBatchSize Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
 * @property writeBatchTimeout Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
 */
public data class BlobSinkArgs(
    public val blobWriterAddHeader: Output? = null,
    public val blobWriterDateTimeFormat: Output? = null,
    public val blobWriterOverwriteFiles: Output? = null,
    public val copyBehavior: Output? = null,
    public val disableMetricsCollection: Output? = null,
    public val maxConcurrentConnections: Output? = null,
    public val metadata: Output>? = null,
    public val sinkRetryCount: Output? = null,
    public val sinkRetryWait: Output? = null,
    public val type: Output,
    public val writeBatchSize: Output? = null,
    public val writeBatchTimeout: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.BlobSinkArgs =
        com.pulumi.azurenative.datafactory.inputs.BlobSinkArgs.builder()
            .blobWriterAddHeader(blobWriterAddHeader?.applyValue({ args0 -> args0 }))
            .blobWriterDateTimeFormat(blobWriterDateTimeFormat?.applyValue({ args0 -> args0 }))
            .blobWriterOverwriteFiles(blobWriterOverwriteFiles?.applyValue({ args0 -> args0 }))
            .copyBehavior(copyBehavior?.applyValue({ args0 -> args0 }))
            .disableMetricsCollection(disableMetricsCollection?.applyValue({ args0 -> args0 }))
            .maxConcurrentConnections(maxConcurrentConnections?.applyValue({ args0 -> args0 }))
            .metadata(
                metadata?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sinkRetryCount(sinkRetryCount?.applyValue({ args0 -> args0 }))
            .sinkRetryWait(sinkRetryWait?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .writeBatchSize(writeBatchSize?.applyValue({ args0 -> args0 }))
            .writeBatchTimeout(writeBatchTimeout?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BlobSinkArgs].
 */
@PulumiTagMarker
public class BlobSinkArgsBuilder internal constructor() {
    private var blobWriterAddHeader: Output? = null

    private var blobWriterDateTimeFormat: Output? = null

    private var blobWriterOverwriteFiles: Output? = null

    private var copyBehavior: Output? = null

    private var disableMetricsCollection: Output? = null

    private var maxConcurrentConnections: Output? = null

    private var metadata: Output>? = null

    private var sinkRetryCount: Output? = null

    private var sinkRetryWait: Output? = null

    private var type: Output? = null

    private var writeBatchSize: Output? = null

    private var writeBatchTimeout: Output? = null

    /**
     * @param value Blob writer add header. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("kaqtnvdthaclhubr")
    public suspend fun blobWriterAddHeader(`value`: Output) {
        this.blobWriterAddHeader = value
    }

    /**
     * @param value Blob writer date time format. Type: string (or Expression with resultType string).
     */
    @JvmName("trvcseqgdkjnijla")
    public suspend fun blobWriterDateTimeFormat(`value`: Output) {
        this.blobWriterDateTimeFormat = value
    }

    /**
     * @param value Blob writer overwrite files. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("uiwckyjrebarcskg")
    public suspend fun blobWriterOverwriteFiles(`value`: Output) {
        this.blobWriterOverwriteFiles = value
    }

    /**
     * @param value The type of copy behavior for copy sink.
     */
    @JvmName("syolsihfhjdeocmj")
    public suspend fun copyBehavior(`value`: Output) {
        this.copyBehavior = value
    }

    /**
     * @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("rufcucuvipshbaxm")
    public suspend fun disableMetricsCollection(`value`: Output) {
        this.disableMetricsCollection = value
    }

    /**
     * @param value The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
     */
    @JvmName("lurpiyiyolnmasmt")
    public suspend fun maxConcurrentConnections(`value`: Output) {
        this.maxConcurrentConnections = value
    }

    /**
     * @param value Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("nfbawevwbynbjrtk")
    public suspend fun metadata(`value`: Output>) {
        this.metadata = value
    }

    @JvmName("fmvtnqodjucwervt")
    public suspend fun metadata(vararg values: Output) {
        this.metadata = Output.all(values.asList())
    }

    /**
     * @param values Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("clfkyqnuwmnkkqpb")
    public suspend fun metadata(values: List>) {
        this.metadata = Output.all(values)
    }

    /**
     * @param value Sink retry count. Type: integer (or Expression with resultType integer).
     */
    @JvmName("wdidfnjmenvovblm")
    public suspend fun sinkRetryCount(`value`: Output) {
        this.sinkRetryCount = value
    }

    /**
     * @param value Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     */
    @JvmName("jompqyhemntbqwqa")
    public suspend fun sinkRetryWait(`value`: Output) {
        this.sinkRetryWait = value
    }

    /**
     * @param value Copy sink type.
     * Expected value is 'BlobSink'.
     */
    @JvmName("rysuyctmrljstnuk")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
     */
    @JvmName("agxlaspxcwshfkbp")
    public suspend fun writeBatchSize(`value`: Output) {
        this.writeBatchSize = value
    }

    /**
     * @param value Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     */
    @JvmName("qrruxiyjbpeunaay")
    public suspend fun writeBatchTimeout(`value`: Output) {
        this.writeBatchTimeout = value
    }

    /**
     * @param value Blob writer add header. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("sfegqdlqwjqoyyfq")
    public suspend fun blobWriterAddHeader(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobWriterAddHeader = mapped
    }

    /**
     * @param value Blob writer date time format. Type: string (or Expression with resultType string).
     */
    @JvmName("ljqicwcfgfogvpgs")
    public suspend fun blobWriterDateTimeFormat(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobWriterDateTimeFormat = mapped
    }

    /**
     * @param value Blob writer overwrite files. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("jmaoiqbdrafucigg")
    public suspend fun blobWriterOverwriteFiles(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobWriterOverwriteFiles = mapped
    }

    /**
     * @param value The type of copy behavior for copy sink.
     */
    @JvmName("urfivlydllonqwgh")
    public suspend fun copyBehavior(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.copyBehavior = mapped
    }

    /**
     * @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("sgxgxaaivhvqnham")
    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 sink data store. Type: integer (or Expression with resultType integer).
     */
    @JvmName("ucwcmiabtqcdiqyp")
    public suspend fun maxConcurrentConnections(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxConcurrentConnections = mapped
    }

    /**
     * @param value Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("ouknipgueiroltfu")
    public suspend fun metadata(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param argument Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("ngopwoshprhrmdaj")
    public suspend fun metadata(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MetadataItemArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.metadata = mapped
    }

    /**
     * @param argument Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("vxfygihsjspqkhwe")
    public suspend fun metadata(vararg argument: suspend MetadataItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MetadataItemArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.metadata = mapped
    }

    /**
     * @param argument Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("hejgyrgyyitmpjlj")
    public suspend fun metadata(argument: suspend MetadataItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(MetadataItemArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.metadata = mapped
    }

    /**
     * @param values Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     */
    @JvmName("dsoohoidlswkluce")
    public suspend fun metadata(vararg values: MetadataItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value Sink retry count. Type: integer (or Expression with resultType integer).
     */
    @JvmName("rjaxfegdgvotseee")
    public suspend fun sinkRetryCount(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sinkRetryCount = mapped
    }

    /**
     * @param value Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     */
    @JvmName("iarllvusfynnvlvh")
    public suspend fun sinkRetryWait(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sinkRetryWait = mapped
    }

    /**
     * @param value Copy sink type.
     * Expected value is 'BlobSink'.
     */
    @JvmName("kwfqydakqpymqsre")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
     */
    @JvmName("gcqalmoeisepholf")
    public suspend fun writeBatchSize(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.writeBatchSize = mapped
    }

    /**
     * @param value Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     */
    @JvmName("vhykgorxeiahggqf")
    public suspend fun writeBatchTimeout(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.writeBatchTimeout = mapped
    }

    internal fun build(): BlobSinkArgs = BlobSinkArgs(
        blobWriterAddHeader = blobWriterAddHeader,
        blobWriterDateTimeFormat = blobWriterDateTimeFormat,
        blobWriterOverwriteFiles = blobWriterOverwriteFiles,
        copyBehavior = copyBehavior,
        disableMetricsCollection = disableMetricsCollection,
        maxConcurrentConnections = maxConcurrentConnections,
        metadata = metadata,
        sinkRetryCount = sinkRetryCount,
        sinkRetryWait = sinkRetryWait,
        type = type ?: throw PulumiNullFieldException("type"),
        writeBatchSize = writeBatchSize,
        writeBatchTimeout = writeBatchTimeout,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy