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

com.pulumi.azure.apimanagement.kotlin.inputs.ApiOperationResponseRepresentationFormParameterArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.apimanagement.kotlin.inputs

import com.pulumi.azure.apimanagement.inputs.ApiOperationResponseRepresentationFormParameterArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property defaultValue The default value for this Form Parameter.
 * @property description A description of this Form Parameter.
 * @property examples One or more `example` blocks as defined above.
 * @property name The Name of this Form Parameter.
 * @property required Is this Form Parameter Required?
 * @property schemaId The name of the Schema.
 * @property type The Type of this Form Parameter, such as a `string`.
 * @property typeName The type name defined by the Schema.
 * @property values One or more acceptable values for this Form Parameter.
 */
public data class ApiOperationResponseRepresentationFormParameterArgs(
    public val defaultValue: Output? = null,
    public val description: Output? = null,
    public val examples: Output>? =
        null,
    public val name: Output,
    public val required: Output,
    public val schemaId: Output? = null,
    public val type: Output,
    public val typeName: Output? = null,
    public val values: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.apimanagement.inputs.ApiOperationResponseRepresentationFormParameterArgs =
        com.pulumi.azure.apimanagement.inputs.ApiOperationResponseRepresentationFormParameterArgs.builder()
            .defaultValue(defaultValue?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .examples(
                examples?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .required(required.applyValue({ args0 -> args0 }))
            .schemaId(schemaId?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .typeName(typeName?.applyValue({ args0 -> args0 }))
            .values(values?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ApiOperationResponseRepresentationFormParameterArgs].
 */
@PulumiTagMarker
public class ApiOperationResponseRepresentationFormParameterArgsBuilder internal constructor() {
    private var defaultValue: Output? = null

    private var description: Output? = null

    private var examples: Output>? =
        null

    private var name: Output? = null

    private var required: Output? = null

    private var schemaId: Output? = null

    private var type: Output? = null

    private var typeName: Output? = null

    private var values: Output>? = null

    /**
     * @param value The default value for this Form Parameter.
     */
    @JvmName("dachalivviopwnge")
    public suspend fun defaultValue(`value`: Output) {
        this.defaultValue = value
    }

    /**
     * @param value A description of this Form Parameter.
     */
    @JvmName("chrdsuqokuqhkrcl")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value One or more `example` blocks as defined above.
     */
    @JvmName("ldcfienylycghryu")
    public suspend
    fun examples(`value`: Output>) {
        this.examples = value
    }

    @JvmName("pqtrowmicuowsidg")
    public suspend fun examples(
        vararg
        values: Output,
    ) {
        this.examples = Output.all(values.asList())
    }

    /**
     * @param values One or more `example` blocks as defined above.
     */
    @JvmName("vlvyqblplpenyspm")
    public suspend
    fun examples(values: List>) {
        this.examples = Output.all(values)
    }

    /**
     * @param value The Name of this Form Parameter.
     */
    @JvmName("okmevphwypcssdhw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Is this Form Parameter Required?
     */
    @JvmName("nyqrnugokxtbabfi")
    public suspend fun required(`value`: Output) {
        this.required = value
    }

    /**
     * @param value The name of the Schema.
     */
    @JvmName("thfgjsaehfeldtyd")
    public suspend fun schemaId(`value`: Output) {
        this.schemaId = value
    }

    /**
     * @param value The Type of this Form Parameter, such as a `string`.
     */
    @JvmName("amtxibtxtedebdqs")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The type name defined by the Schema.
     */
    @JvmName("lkcbjrsbplgysfpn")
    public suspend fun typeName(`value`: Output) {
        this.typeName = value
    }

    /**
     * @param value One or more acceptable values for this Form Parameter.
     */
    @JvmName("ktuhoakmfynryilv")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values One or more acceptable values for this Form Parameter.
     */
    @JvmName("bddepotdyhmhxqbr")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value The default value for this Form Parameter.
     */
    @JvmName("rybvhvnhelisexsy")
    public suspend fun defaultValue(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultValue = mapped
    }

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

    /**
     * @param value One or more `example` blocks as defined above.
     */
    @JvmName("roflruqquiqcojfi")
    public suspend
    fun examples(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.examples = mapped
    }

    /**
     * @param argument One or more `example` blocks as defined above.
     */
    @JvmName("uodfakwoylwptnyc")
    public suspend
    fun examples(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApiOperationResponseRepresentationFormParameterExampleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.examples = mapped
    }

    /**
     * @param argument One or more `example` blocks as defined above.
     */
    @JvmName("eustimsxqcstinls")
    public suspend fun examples(
        vararg
        argument: suspend ApiOperationResponseRepresentationFormParameterExampleArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ApiOperationResponseRepresentationFormParameterExampleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.examples = mapped
    }

    /**
     * @param argument One or more `example` blocks as defined above.
     */
    @JvmName("sktuwrchpnftuwuh")
    public suspend
    fun examples(argument: suspend ApiOperationResponseRepresentationFormParameterExampleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ApiOperationResponseRepresentationFormParameterExampleArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.examples = mapped
    }

    /**
     * @param values One or more `example` blocks as defined above.
     */
    @JvmName("gsjsqgeghwwjuqei")
    public suspend fun examples(
        vararg
        values: ApiOperationResponseRepresentationFormParameterExampleArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.examples = mapped
    }

    /**
     * @param value The Name of this Form Parameter.
     */
    @JvmName("enjmhoeouidugplq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Is this Form Parameter Required?
     */
    @JvmName("unmhonxafyeflhto")
    public suspend fun required(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.required = mapped
    }

    /**
     * @param value The name of the Schema.
     */
    @JvmName("gwllfvtvulruuqko")
    public suspend fun schemaId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaId = mapped
    }

    /**
     * @param value The Type of this Form Parameter, such as a `string`.
     */
    @JvmName("fnmawvotbapxmttj")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The type name defined by the Schema.
     */
    @JvmName("lxycaopcxgfvvacm")
    public suspend fun typeName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.typeName = mapped
    }

    /**
     * @param value One or more acceptable values for this Form Parameter.
     */
    @JvmName("rwcjgiahyviylywt")
    public suspend fun values(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values One or more acceptable values for this Form Parameter.
     */
    @JvmName("tfmyxdilcpfsxpnx")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): ApiOperationResponseRepresentationFormParameterArgs =
        ApiOperationResponseRepresentationFormParameterArgs(
            defaultValue = defaultValue,
            description = description,
            examples = examples,
            name = name ?: throw PulumiNullFieldException("name"),
            required = required ?: throw PulumiNullFieldException("required"),
            schemaId = schemaId,
            type = type ?: throw PulumiNullFieldException("type"),
            typeName = typeName,
            values = values,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy