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

com.pulumi.azurenative.machinelearning.kotlin.inputs.ServiceInputOutputSpecificationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.machinelearning.kotlin.inputs

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

/**
 * The swagger 2.0 schema describing the service's inputs or outputs. See Swagger specification: http://swagger.io/specification/
 * @property description The description of the Swagger schema.
 * @property properties Specifies a collection that contains the column schema for each input or output of the web service. For more information, see the Swagger specification.
 * @property title The title of your Swagger schema.
 * @property type The type of the entity described in swagger. Always 'object'.
 */
public data class ServiceInputOutputSpecificationArgs(
    public val description: Output? = null,
    public val properties: Output>,
    public val title: Output? = null,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearning.inputs.ServiceInputOutputSpecificationArgs =
        com.pulumi.azurenative.machinelearning.inputs.ServiceInputOutputSpecificationArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .properties(
                properties.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .title(title?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceInputOutputSpecificationArgs].
 */
@PulumiTagMarker
public class ServiceInputOutputSpecificationArgsBuilder internal constructor() {
    private var description: Output? = null

    private var properties: Output>? = null

    private var title: Output? = null

    private var type: Output? = null

    /**
     * @param value The description of the Swagger schema.
     */
    @JvmName("ylcveymdevgdbnii")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies a collection that contains the column schema for each input or output of the web service. For more information, see the Swagger specification.
     */
    @JvmName("httgftiwflsesmae")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value The title of your Swagger schema.
     */
    @JvmName("ejofxmjhiqfdjuww")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value The type of the entity described in swagger. Always 'object'.
     */
    @JvmName("yamlyuwqoicqruwb")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value Specifies a collection that contains the column schema for each input or output of the web service. For more information, see the Swagger specification.
     */
    @JvmName("lqdlbrytttoommfq")
    public suspend fun properties(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument Specifies a collection that contains the column schema for each input or output of the web service. For more information, see the Swagger specification.
     */
    @JvmName("wuofpwhyxbapdraq")
    public suspend fun properties(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                TableSpecificationArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param values Specifies a collection that contains the column schema for each input or output of the web service. For more information, see the Swagger specification.
     */
    @JvmName("yuqxyytkfhssyiyx")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value The title of your Swagger schema.
     */
    @JvmName("mecpardgngklerer")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    /**
     * @param value The type of the entity described in swagger. Always 'object'.
     */
    @JvmName("lcvkmvoumunslvde")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): ServiceInputOutputSpecificationArgs = ServiceInputOutputSpecificationArgs(
        description = description,
        properties = properties ?: throw PulumiNullFieldException("properties"),
        title = title,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy