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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.datafactory.inputs.PolybaseSettingsArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.PolybaseSettingsRejectType
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.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * PolyBase settings.
 * @property rejectSampleValue Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0.
 * @property rejectType Reject type.
 * @property rejectValue Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression with resultType number), minimum: 0.
 * @property useTypeDefault Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType boolean).
 */
public data class PolybaseSettingsArgs(
    public val rejectSampleValue: Output? = null,
    public val rejectType: Output>? = null,
    public val rejectValue: Output? = null,
    public val useTypeDefault: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.PolybaseSettingsArgs =
        com.pulumi.azurenative.datafactory.inputs.PolybaseSettingsArgs.builder()
            .rejectSampleValue(rejectSampleValue?.applyValue({ args0 -> args0 }))
            .rejectType(
                rejectType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .rejectValue(rejectValue?.applyValue({ args0 -> args0 }))
            .useTypeDefault(useTypeDefault?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolybaseSettingsArgs].
 */
@PulumiTagMarker
public class PolybaseSettingsArgsBuilder internal constructor() {
    private var rejectSampleValue: Output? = null

    private var rejectType: Output>? = null

    private var rejectValue: Output? = null

    private var useTypeDefault: Output? = null

    /**
     * @param value Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0.
     */
    @JvmName("etrtkxvbrivxfmwh")
    public suspend fun rejectSampleValue(`value`: Output) {
        this.rejectSampleValue = value
    }

    /**
     * @param value Reject type.
     */
    @JvmName("mkrxrxdcatgpyjga")
    public suspend fun rejectType(`value`: Output>) {
        this.rejectType = value
    }

    /**
     * @param value Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression with resultType number), minimum: 0.
     */
    @JvmName("wtxhaegsgsievafy")
    public suspend fun rejectValue(`value`: Output) {
        this.rejectValue = value
    }

    /**
     * @param value Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("nbqiwqahvmvtjjvv")
    public suspend fun useTypeDefault(`value`: Output) {
        this.useTypeDefault = value
    }

    /**
     * @param value Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. Type: integer (or Expression with resultType integer), minimum: 0.
     */
    @JvmName("lsiobybgrhxddufn")
    public suspend fun rejectSampleValue(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rejectSampleValue = mapped
    }

    /**
     * @param value Reject type.
     */
    @JvmName("xysvrnfjerhyvspp")
    public suspend fun rejectType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rejectType = mapped
    }

    /**
     * @param value Reject type.
     */
    @JvmName("xmgixejqsullsgwg")
    public fun rejectType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rejectType = mapped
    }

    /**
     * @param value Reject type.
     */
    @JvmName("ntbggbfcqxicmhth")
    public fun rejectType(`value`: PolybaseSettingsRejectType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rejectType = mapped
    }

    /**
     * @param value Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression with resultType number), minimum: 0.
     */
    @JvmName("rutshjsusuyvqdfy")
    public suspend fun rejectValue(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rejectValue = mapped
    }

    /**
     * @param value Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("hdcvfirkgttgjhdf")
    public suspend fun useTypeDefault(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useTypeDefault = mapped
    }

    internal fun build(): PolybaseSettingsArgs = PolybaseSettingsArgs(
        rejectSampleValue = rejectSampleValue,
        rejectType = rejectType,
        rejectValue = rejectValue,
        useTypeDefault = useTypeDefault,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy