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

com.pulumi.gcp.diagflow.kotlin.inputs.CxWebhookGenericWebServiceArgs.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.CxWebhookGenericWebServiceArgs.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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property allowedCaCerts Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification.
 * @property requestHeaders The HTTP request headers to send together with webhook requests.
 * @property uri Whether to use speech adaptation for speech recognition.
 */
public data class CxWebhookGenericWebServiceArgs(
    public val allowedCaCerts: Output>? = null,
    public val requestHeaders: Output>? = null,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.diagflow.inputs.CxWebhookGenericWebServiceArgs =
        com.pulumi.gcp.diagflow.inputs.CxWebhookGenericWebServiceArgs.builder()
            .allowedCaCerts(allowedCaCerts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .requestHeaders(
                requestHeaders?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CxWebhookGenericWebServiceArgs].
 */
@PulumiTagMarker
public class CxWebhookGenericWebServiceArgsBuilder internal constructor() {
    private var allowedCaCerts: Output>? = null

    private var requestHeaders: Output>? = null

    private var uri: Output? = null

    /**
     * @param value Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification.
     */
    @JvmName("sfoysjyagxqremjm")
    public suspend fun allowedCaCerts(`value`: Output>) {
        this.allowedCaCerts = value
    }

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

    /**
     * @param values Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification.
     */
    @JvmName("xihoubyhmsiytdew")
    public suspend fun allowedCaCerts(values: List>) {
        this.allowedCaCerts = Output.all(values)
    }

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

    /**
     * @param value Whether to use speech adaptation for speech recognition.
     */
    @JvmName("xvwxytkcdfpcfcxg")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification.
     */
    @JvmName("fttaojsuokmlnjtf")
    public suspend fun allowedCaCerts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedCaCerts = mapped
    }

    /**
     * @param values Specifies a list of allowed custom CA certificates (in DER format) for HTTPS verification.
     */
    @JvmName("vcpsejxylvlrjvje")
    public suspend fun allowedCaCerts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedCaCerts = mapped
    }

    /**
     * @param value The HTTP request headers to send together with webhook requests.
     */
    @JvmName("mtyaawfvrtgujtot")
    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 webhook requests.
     */
    @JvmName("csobvqsheqahvjbi")
    public fun requestHeaders(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requestHeaders = mapped
    }

    /**
     * @param value Whether to use speech adaptation for speech recognition.
     */
    @JvmName("xpdjpsglenwtdnev")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): CxWebhookGenericWebServiceArgs = CxWebhookGenericWebServiceArgs(
        allowedCaCerts = allowedCaCerts,
        requestHeaders = requestHeaders,
        uri = uri ?: throw PulumiNullFieldException("uri"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy