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

com.pulumi.aws.pipes.kotlin.inputs.PipeTargetParametersHttpParametersArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.pipes.kotlin.inputs

import com.pulumi.aws.pipes.inputs.PipeTargetParametersHttpParametersArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property headerParameters
 * @property pathParameterValues
 * @property queryStringParameters
 */
public data class PipeTargetParametersHttpParametersArgs(
    public val headerParameters: Output>? = null,
    public val pathParameterValues: Output? = null,
    public val queryStringParameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.pipes.inputs.PipeTargetParametersHttpParametersArgs =
        com.pulumi.aws.pipes.inputs.PipeTargetParametersHttpParametersArgs.builder()
            .headerParameters(
                headerParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .pathParameterValues(pathParameterValues?.applyValue({ args0 -> args0 }))
            .queryStringParameters(
                queryStringParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var pathParameterValues: Output? = null

    private var queryStringParameters: Output>? = null

    /**
     * @param value
     */
    @JvmName("sxvtgbtlnehhkeoj")
    public suspend fun headerParameters(`value`: Output>) {
        this.headerParameters = value
    }

    /**
     * @param value
     */
    @JvmName("wmismqnudffskkwo")
    public suspend fun pathParameterValues(`value`: Output) {
        this.pathParameterValues = value
    }

    /**
     * @param value
     */
    @JvmName("cwveudojiwaenhgg")
    public suspend fun queryStringParameters(`value`: Output>) {
        this.queryStringParameters = value
    }

    /**
     * @param value
     */
    @JvmName("xgaqevypgelnxtvf")
    public suspend fun headerParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerParameters = mapped
    }

    /**
     * @param values
     */
    @JvmName("vqaqluvbdkimlumo")
    public fun headerParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerParameters = mapped
    }

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

    /**
     * @param value
     */
    @JvmName("jyjmqnpswcvltcpn")
    public suspend fun queryStringParameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

    /**
     * @param values
     */
    @JvmName("valfsflbphlrirve")
    public fun queryStringParameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringParameters = mapped
    }

    internal fun build(): PipeTargetParametersHttpParametersArgs =
        PipeTargetParametersHttpParametersArgs(
            headerParameters = headerParameters,
            pathParameterValues = pathParameterValues,
            queryStringParameters = queryStringParameters,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy