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

com.pulumi.azurenative.datafactory.kotlin.inputs.HttpDatasetArgs.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.HttpDatasetArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A file in an HTTP web server.
 * @property additionalHeaders The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1
 * ...
 * request-header-name-n:request-header-value-n Type: string (or Expression with resultType string).
 * @property annotations List of tags that can be used for describing the Dataset.
 * @property compression The data compression method used on files.
 * @property description Dataset description.
 * @property folder The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
 * @property format The format of files.
 * @property linkedServiceName Linked service reference.
 * @property parameters Parameters for dataset.
 * @property relativeUrl The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string).
 * @property requestBody The body for the HTTP request. Type: string (or Expression with resultType string).
 * @property requestMethod The HTTP method for the HTTP request. Type: string (or Expression with resultType string).
 * @property schema Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
 * @property structure Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
 * @property type Type of dataset.
 * Expected value is 'HttpFile'.
 */
public data class HttpDatasetArgs(
    public val additionalHeaders: Output? = null,
    public val annotations: Output>? = null,
    public val compression: Output? = null,
    public val description: Output? = null,
    public val folder: Output? = null,
    public val format: Output? = null,
    public val linkedServiceName: Output,
    public val parameters: Output>? = null,
    public val relativeUrl: Output? = null,
    public val requestBody: Output? = null,
    public val requestMethod: Output? = null,
    public val schema: Output? = null,
    public val structure: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.HttpDatasetArgs =
        com.pulumi.azurenative.datafactory.inputs.HttpDatasetArgs.builder()
            .additionalHeaders(additionalHeaders?.applyValue({ args0 -> args0 }))
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .compression(compression?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .folder(folder?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .format(format?.applyValue({ args0 -> args0 }))
            .linkedServiceName(linkedServiceName.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .relativeUrl(relativeUrl?.applyValue({ args0 -> args0 }))
            .requestBody(requestBody?.applyValue({ args0 -> args0 }))
            .requestMethod(requestMethod?.applyValue({ args0 -> args0 }))
            .schema(schema?.applyValue({ args0 -> args0 }))
            .structure(structure?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HttpDatasetArgs].
 */
@PulumiTagMarker
public class HttpDatasetArgsBuilder internal constructor() {
    private var additionalHeaders: Output? = null

    private var annotations: Output>? = null

    private var compression: Output? = null

    private var description: Output? = null

    private var folder: Output? = null

    private var format: Output? = null

    private var linkedServiceName: Output? = null

    private var parameters: Output>? = null

    private var relativeUrl: Output? = null

    private var requestBody: Output? = null

    private var requestMethod: Output? = null

    private var schema: Output? = null

    private var structure: Output? = null

    private var type: Output? = null

    /**
     * @param value The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1
     * ...
     * request-header-name-n:request-header-value-n Type: string (or Expression with resultType string).
     */
    @JvmName("ynjghtihhajylvum")
    public suspend fun additionalHeaders(`value`: Output) {
        this.additionalHeaders = value
    }

    /**
     * @param value List of tags that can be used for describing the Dataset.
     */
    @JvmName("onggkykxlgqxegci")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

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

    /**
     * @param values List of tags that can be used for describing the Dataset.
     */
    @JvmName("ybshuqsusdsgfuol")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

    /**
     * @param value The data compression method used on files.
     */
    @JvmName("istppaccrhddncxo")
    public suspend fun compression(`value`: Output) {
        this.compression = value
    }

    /**
     * @param value Dataset description.
     */
    @JvmName("bchgrlydvhxmpset")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     */
    @JvmName("qgfphtoswkonjavy")
    public suspend fun folder(`value`: Output) {
        this.folder = value
    }

    /**
     * @param value The format of files.
     */
    @JvmName("nvoufjqwkiyemsqw")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @param value Linked service reference.
     */
    @JvmName("jplfpcpwwpqcdynj")
    public suspend fun linkedServiceName(`value`: Output) {
        this.linkedServiceName = value
    }

    /**
     * @param value Parameters for dataset.
     */
    @JvmName("xjgonyrkjiosbihn")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string).
     */
    @JvmName("omiersoooemdgsit")
    public suspend fun relativeUrl(`value`: Output) {
        this.relativeUrl = value
    }

    /**
     * @param value The body for the HTTP request. Type: string (or Expression with resultType string).
     */
    @JvmName("mxxyjdqqkbxqnxsh")
    public suspend fun requestBody(`value`: Output) {
        this.requestBody = value
    }

    /**
     * @param value The HTTP method for the HTTP request. Type: string (or Expression with resultType string).
     */
    @JvmName("fjhnxmfhibrtmuau")
    public suspend fun requestMethod(`value`: Output) {
        this.requestMethod = value
    }

    /**
     * @param value Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     */
    @JvmName("fmnnraxmfysstjnd")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     */
    @JvmName("bpyaxmlvlkaiioqg")
    public suspend fun structure(`value`: Output) {
        this.structure = value
    }

    /**
     * @param value Type of dataset.
     * Expected value is 'HttpFile'.
     */
    @JvmName("afocaiheqnnvhxst")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1
     * ...
     * request-header-name-n:request-header-value-n Type: string (or Expression with resultType string).
     */
    @JvmName("mwdbtfemcwfesevt")
    public suspend fun additionalHeaders(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalHeaders = mapped
    }

    /**
     * @param value List of tags that can be used for describing the Dataset.
     */
    @JvmName("gecmxyhmvxaouqmq")
    public suspend fun annotations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param values List of tags that can be used for describing the Dataset.
     */
    @JvmName("uaoudftrnaqblicx")
    public suspend fun annotations(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value The data compression method used on files.
     */
    @JvmName("jbumnqeyjehcncnv")
    public suspend fun compression(`value`: DatasetCompressionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compression = mapped
    }

    /**
     * @param argument The data compression method used on files.
     */
    @JvmName("kntmbktpudytyreq")
    public suspend fun compression(argument: suspend DatasetCompressionArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetCompressionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.compression = mapped
    }

    /**
     * @param value Dataset description.
     */
    @JvmName("dycyrwqyykcsamap")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     */
    @JvmName("aqldyqhoxfmjtnwx")
    public suspend fun folder(`value`: DatasetFolderArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.folder = mapped
    }

    /**
     * @param argument The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     */
    @JvmName("yohjvbplgieirsip")
    public suspend fun folder(argument: suspend DatasetFolderArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetFolderArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.folder = mapped
    }

    /**
     * @param value The format of files.
     */
    @JvmName("rvfipxehyypkppgk")
    public suspend fun format(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.format = mapped
    }

    /**
     * @param value Linked service reference.
     */
    @JvmName("wpsedppwvprohqwd")
    public suspend fun linkedServiceName(`value`: LinkedServiceReferenceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.linkedServiceName = mapped
    }

    /**
     * @param argument Linked service reference.
     */
    @JvmName("gkcvmltepsljremr")
    public suspend fun linkedServiceName(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.linkedServiceName = mapped
    }

    /**
     * @param value Parameters for dataset.
     */
    @JvmName("nyygguauwtsfinpo")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Parameters for dataset.
     */
    @JvmName("pjmwhioyuhetxkfl")
    public suspend fun parameters(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                ParameterSpecificationArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Parameters for dataset.
     */
    @JvmName("mgqqjyabvxowrlhy")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string).
     */
    @JvmName("auaeiqnkqpybocoa")
    public suspend fun relativeUrl(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.relativeUrl = mapped
    }

    /**
     * @param value The body for the HTTP request. Type: string (or Expression with resultType string).
     */
    @JvmName("qnrpmlsfelqdxewt")
    public suspend fun requestBody(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestBody = mapped
    }

    /**
     * @param value The HTTP method for the HTTP request. Type: string (or Expression with resultType string).
     */
    @JvmName("wvcvlmpxgxsxvgvf")
    public suspend fun requestMethod(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestMethod = mapped
    }

    /**
     * @param value Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     */
    @JvmName("dqjuwiaueivdccnm")
    public suspend fun schema(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param value Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     */
    @JvmName("ejbbkdyvxrfmrrgx")
    public suspend fun structure(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.structure = mapped
    }

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

    internal fun build(): HttpDatasetArgs = HttpDatasetArgs(
        additionalHeaders = additionalHeaders,
        annotations = annotations,
        compression = compression,
        description = description,
        folder = folder,
        format = format,
        linkedServiceName = linkedServiceName ?: throw PulumiNullFieldException("linkedServiceName"),
        parameters = parameters,
        relativeUrl = relativeUrl,
        requestBody = requestBody,
        requestMethod = requestMethod,
        schema = schema,
        structure = structure,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy