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

com.pulumi.azurenative.scheduler.kotlin.inputs.HttpRequestArgs.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.scheduler.kotlin.inputs

import com.pulumi.azurenative.scheduler.inputs.HttpRequestArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property authentication Gets or sets the authentication method of the request.
 * @property body Gets or sets the request body.
 * @property headers Gets or sets the headers.
 * @property method Gets or sets the method of the request.
 * @property uri Gets or sets the URI of the request.
 */
public data class HttpRequestArgs(
    public val authentication: Output? = null,
    public val body: Output? = null,
    public val headers: Output>? = null,
    public val method: Output? = null,
    public val uri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.scheduler.inputs.HttpRequestArgs =
        com.pulumi.azurenative.scheduler.inputs.HttpRequestArgs.builder()
            .authentication(authentication?.applyValue({ args0 -> args0 }))
            .body(body?.applyValue({ args0 -> args0 }))
            .headers(headers?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .method(method?.applyValue({ args0 -> args0 }))
            .uri(uri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [HttpRequestArgs].
 */
@PulumiTagMarker
public class HttpRequestArgsBuilder internal constructor() {
    private var authentication: Output? = null

    private var body: Output? = null

    private var headers: Output>? = null

    private var method: Output? = null

    private var uri: Output? = null

    /**
     * @param value Gets or sets the authentication method of the request.
     */
    @JvmName("qrmkmtpgqxdgnyfu")
    public suspend fun authentication(`value`: Output) {
        this.authentication = value
    }

    /**
     * @param value Gets or sets the request body.
     */
    @JvmName("spcqktxjypnnonsb")
    public suspend fun body(`value`: Output) {
        this.body = value
    }

    /**
     * @param value Gets or sets the headers.
     */
    @JvmName("pcvawbopedmdqoqq")
    public suspend fun headers(`value`: Output>) {
        this.headers = value
    }

    /**
     * @param value Gets or sets the method of the request.
     */
    @JvmName("ipmihohchqhluvjr")
    public suspend fun method(`value`: Output) {
        this.method = value
    }

    /**
     * @param value Gets or sets the URI of the request.
     */
    @JvmName("hnrlljmcvxxmnbuh")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Gets or sets the authentication method of the request.
     */
    @JvmName("iybkphvddmpiywdb")
    public suspend fun authentication(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param value Gets or sets the request body.
     */
    @JvmName("qegjlwshupnqacwk")
    public suspend fun body(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.body = mapped
    }

    /**
     * @param value Gets or sets the headers.
     */
    @JvmName("jipauwysniahjwtm")
    public suspend fun headers(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headers = mapped
    }

    /**
     * @param values Gets or sets the headers.
     */
    @JvmName("nownqntlvxyleioi")
    public fun headers(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headers = mapped
    }

    /**
     * @param value Gets or sets the method of the request.
     */
    @JvmName("ojqfvakxcidksqhk")
    public suspend fun method(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.method = mapped
    }

    /**
     * @param value Gets or sets the URI of the request.
     */
    @JvmName("hfdcrdwlgoqjekah")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): HttpRequestArgs = HttpRequestArgs(
        authentication = authentication,
        body = body,
        headers = headers,
        method = method,
        uri = uri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy