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

com.pulumi.azurenative.streamanalytics.kotlin.inputs.AzureMachineLearningWebServiceFunctionBindingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.streamanalytics.kotlin.inputs

import com.pulumi.azurenative.streamanalytics.inputs.AzureMachineLearningWebServiceFunctionBindingArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The binding to an Azure Machine Learning web service.
 * @property apiKey The API key used to authenticate with Request-Response endpoint.
 * @property batchSize Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
 * @property endpoint The Request-Response execute endpoint of the Azure Machine Learning web service. Find out more here: https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
 * @property inputs The inputs for the Azure Machine Learning web service endpoint.
 * @property outputs A list of outputs from the Azure Machine Learning web service endpoint execution.
 * @property type Indicates the function binding type.
 * Expected value is 'Microsoft.MachineLearning/WebService'.
 */
public data class AzureMachineLearningWebServiceFunctionBindingArgs(
    public val apiKey: Output? = null,
    public val batchSize: Output? = null,
    public val endpoint: Output? = null,
    public val inputs: Output? = null,
    public val outputs: Output>? = null,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.streamanalytics.inputs.AzureMachineLearningWebServiceFunctionBindingArgs =
        com.pulumi.azurenative.streamanalytics.inputs.AzureMachineLearningWebServiceFunctionBindingArgs.builder()
            .apiKey(apiKey?.applyValue({ args0 -> args0 }))
            .batchSize(batchSize?.applyValue({ args0 -> args0 }))
            .endpoint(endpoint?.applyValue({ args0 -> args0 }))
            .inputs(inputs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .outputs(
                outputs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AzureMachineLearningWebServiceFunctionBindingArgs].
 */
@PulumiTagMarker
public class AzureMachineLearningWebServiceFunctionBindingArgsBuilder internal constructor() {
    private var apiKey: Output? = null

    private var batchSize: Output? = null

    private var endpoint: Output? = null

    private var inputs: Output? = null

    private var outputs: Output>? = null

    private var type: Output? = null

    /**
     * @param value The API key used to authenticate with Request-Response endpoint.
     */
    @JvmName("ahokiearitglewsp")
    public suspend fun apiKey(`value`: Output) {
        this.apiKey = value
    }

    /**
     * @param value Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
     */
    @JvmName("tosgkktnbdbqixnv")
    public suspend fun batchSize(`value`: Output) {
        this.batchSize = value
    }

    /**
     * @param value The Request-Response execute endpoint of the Azure Machine Learning web service. Find out more here: https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
     */
    @JvmName("whpbbhdrnyuhhmsc")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value The inputs for the Azure Machine Learning web service endpoint.
     */
    @JvmName("rkqydchkmqrdiujs")
    public suspend fun inputs(`value`: Output) {
        this.inputs = value
    }

    /**
     * @param value A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("lgmadbcefwkvbseh")
    public suspend fun outputs(`value`: Output>) {
        this.outputs = value
    }

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

    /**
     * @param values A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("pdolnrgwqnvorqbi")
    public suspend fun outputs(values: List>) {
        this.outputs = Output.all(values)
    }

    /**
     * @param value Indicates the function binding type.
     * Expected value is 'Microsoft.MachineLearning/WebService'.
     */
    @JvmName("evymgyydheinjbun")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The API key used to authenticate with Request-Response endpoint.
     */
    @JvmName("vkqdwqhnrsebrovv")
    public suspend fun apiKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiKey = mapped
    }

    /**
     * @param value Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
     */
    @JvmName("xdmnteujywgspuwa")
    public suspend fun batchSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchSize = mapped
    }

    /**
     * @param value The Request-Response execute endpoint of the Azure Machine Learning web service. Find out more here: https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
     */
    @JvmName("xfngrxrnmrhmdypa")
    public suspend fun endpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpoint = mapped
    }

    /**
     * @param value The inputs for the Azure Machine Learning web service endpoint.
     */
    @JvmName("uufwvryfeskaqkbf")
    public suspend fun inputs(`value`: AzureMachineLearningWebServiceInputsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputs = mapped
    }

    /**
     * @param argument The inputs for the Azure Machine Learning web service endpoint.
     */
    @JvmName("ynckvtypuevmscjh")
    public suspend fun inputs(argument: suspend AzureMachineLearningWebServiceInputsArgsBuilder.() -> Unit) {
        val toBeMapped = AzureMachineLearningWebServiceInputsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.inputs = mapped
    }

    /**
     * @param value A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("fmqjviojmvejixfc")
    public suspend fun outputs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    /**
     * @param argument A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("egcamebmnvolaawx")
    public suspend fun outputs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AzureMachineLearningWebServiceOutputColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("ooxjhkafvmbwbcop")
    public suspend fun outputs(vararg argument: suspend AzureMachineLearningWebServiceOutputColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AzureMachineLearningWebServiceOutputColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("udyycmjuvnvygufb")
    public suspend fun outputs(argument: suspend AzureMachineLearningWebServiceOutputColumnArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AzureMachineLearningWebServiceOutputColumnArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param values A list of outputs from the Azure Machine Learning web service endpoint execution.
     */
    @JvmName("yhnfldbrvlsdotqw")
    public suspend fun outputs(vararg values: AzureMachineLearningWebServiceOutputColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    /**
     * @param value Indicates the function binding type.
     * Expected value is 'Microsoft.MachineLearning/WebService'.
     */
    @JvmName("kucvkpdqxvmlgops")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AzureMachineLearningWebServiceFunctionBindingArgs =
        AzureMachineLearningWebServiceFunctionBindingArgs(
            apiKey = apiKey,
            batchSize = batchSize,
            endpoint = endpoint,
            inputs = inputs,
            outputs = outputs,
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy