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

com.pulumi.azure.apimanagement.kotlin.inputs.ApiOperationRequestArgs.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.ApiOperationRequestArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property description A description of the HTTP Request, which may include HTML tags.
 * @property headers One or more `header` blocks as defined above.
 * @property queryParameters One or more `query_parameter` blocks as defined above.
 * @property representations One or more `representation` blocks as defined below.
 */
public data class ApiOperationRequestArgs(
    public val description: Output? = null,
    public val headers: Output>? = null,
    public val queryParameters: Output>? = null,
    public val representations: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.apimanagement.inputs.ApiOperationRequestArgs =
        com.pulumi.azure.apimanagement.inputs.ApiOperationRequestArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .headers(
                headers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .queryParameters(
                queryParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .representations(
                representations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var headers: Output>? = null

    private var queryParameters: Output>? = null

    private var representations: Output>? = null

    /**
     * @param value A description of the HTTP Request, which may include HTML tags.
     */
    @JvmName("akphqvbysggjtahk")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

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

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

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

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

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

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

    /**
     * @param value One or more `representation` blocks as defined below.
     */
    @JvmName("vqhwaktkrgopivfd")
    public suspend fun representations(`value`: Output>) {
        this.representations = value
    }

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

    /**
     * @param values One or more `representation` blocks as defined below.
     */
    @JvmName("mnvimbfscqilmwgu")
    public suspend fun representations(values: List>) {
        this.representations = Output.all(values)
    }

    /**
     * @param value A description of the HTTP Request, which may include HTML tags.
     */
    @JvmName("iejcudkwndnslhlf")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @param argument One or more `representation` blocks as defined below.
     */
    @JvmName("gxpsedrnmbqtkfai")
    public suspend
    fun representations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApiOperationRequestRepresentationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.representations = mapped
    }

    /**
     * @param argument One or more `representation` blocks as defined below.
     */
    @JvmName("ewelkwfcpvbauosn")
    public suspend fun representations(
        vararg
        argument: suspend ApiOperationRequestRepresentationArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            ApiOperationRequestRepresentationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.representations = mapped
    }

    /**
     * @param argument One or more `representation` blocks as defined below.
     */
    @JvmName("ldxwdhfstehfrcfl")
    public suspend
    fun representations(argument: suspend ApiOperationRequestRepresentationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ApiOperationRequestRepresentationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.representations = mapped
    }

    /**
     * @param values One or more `representation` blocks as defined below.
     */
    @JvmName("hgytthodgepytgal")
    public suspend fun representations(vararg values: ApiOperationRequestRepresentationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.representations = mapped
    }

    internal fun build(): ApiOperationRequestArgs = ApiOperationRequestArgs(
        description = description,
        headers = headers,
        queryParameters = queryParameters,
        representations = representations,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy