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

com.pulumi.gcp.diagflow.kotlin.inputs.FulfillmentGenericWebServiceArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.diagflow.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.diagflow.inputs.FulfillmentGenericWebServiceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property password The password for HTTP Basic authentication.
 * @property requestHeaders The HTTP request headers to send together with fulfillment requests.
 * @property uri The fulfillment URI for receiving POST requests. It must use https protocol.
 * @property username The user name for HTTP Basic authentication.
 */
public data class FulfillmentGenericWebServiceArgs(
    public val password: Output? = null,
    public val requestHeaders: Output>? = null,
    public val uri: Output,
    public val username: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.diagflow.inputs.FulfillmentGenericWebServiceArgs =
        com.pulumi.gcp.diagflow.inputs.FulfillmentGenericWebServiceArgs.builder()
            .password(password?.applyValue({ args0 -> args0 }))
            .requestHeaders(
                requestHeaders?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .uri(uri.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FulfillmentGenericWebServiceArgs].
 */
@PulumiTagMarker
public class FulfillmentGenericWebServiceArgsBuilder internal constructor() {
    private var password: Output? = null

    private var requestHeaders: Output>? = null

    private var uri: Output? = null

    private var username: Output? = null

    /**
     * @param value The password for HTTP Basic authentication.
     */
    @JvmName("ygajrcbjrkpjwtxb")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The HTTP request headers to send together with fulfillment requests.
     */
    @JvmName("lhjlgqfsckoppnpq")
    public suspend fun requestHeaders(`value`: Output>) {
        this.requestHeaders = value
    }

    /**
     * @param value The fulfillment URI for receiving POST requests. It must use https protocol.
     */
    @JvmName("kmvlsbvogonldcra")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value The user name for HTTP Basic authentication.
     */
    @JvmName("mdnpklocmodvulue")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value The password for HTTP Basic authentication.
     */
    @JvmName("xebxkorpmiromqxo")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The HTTP request headers to send together with fulfillment requests.
     */
    @JvmName("qxwanyqrdudnxccg")
    public suspend fun requestHeaders(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestHeaders = mapped
    }

    /**
     * @param values The HTTP request headers to send together with fulfillment requests.
     */
    @JvmName("pskymmybxuhlpifd")
    public fun requestHeaders(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requestHeaders = mapped
    }

    /**
     * @param value The fulfillment URI for receiving POST requests. It must use https protocol.
     */
    @JvmName("uxkplaymnhhsdofm")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    /**
     * @param value The user name for HTTP Basic authentication.
     */
    @JvmName("nscmbcgbaikjgisx")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): FulfillmentGenericWebServiceArgs = FulfillmentGenericWebServiceArgs(
        password = password,
        requestHeaders = requestHeaders,
        uri = uri ?: throw PulumiNullFieldException("uri"),
        username = username,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy