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

com.pulumi.awsnative.kinesisfirehose.kotlin.inputs.DeliveryStreamHttpEndpointRequestConfigurationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.kinesisfirehose.kotlin.inputs

import com.pulumi.awsnative.kinesisfirehose.inputs.DeliveryStreamHttpEndpointRequestConfigurationArgs.builder
import com.pulumi.awsnative.kinesisfirehose.kotlin.enums.DeliveryStreamHttpEndpointRequestConfigurationContentEncoding
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property commonAttributes Describes the metadata sent to the HTTP endpoint destination.
 * @property contentEncoding Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. For more information, see Content-Encoding in MDN Web Docs, the official Mozilla documentation.
 */
public data class DeliveryStreamHttpEndpointRequestConfigurationArgs(
    public val commonAttributes: Output>? = null,
    public val contentEncoding: Output? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kinesisfirehose.inputs.DeliveryStreamHttpEndpointRequestConfigurationArgs =
        com.pulumi.awsnative.kinesisfirehose.inputs.DeliveryStreamHttpEndpointRequestConfigurationArgs.builder()
            .commonAttributes(
                commonAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .contentEncoding(
                contentEncoding?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var contentEncoding:
        Output? = null

    /**
     * @param value Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("txhdabdkdfnjmupa")
    public suspend fun commonAttributes(`value`: Output>) {
        this.commonAttributes = value
    }

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

    /**
     * @param values Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("yqrhwlxaasbkcoys")
    public suspend fun commonAttributes(values: List>) {
        this.commonAttributes = Output.all(values)
    }

    /**
     * @param value Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. For more information, see Content-Encoding in MDN Web Docs, the official Mozilla documentation.
     */
    @JvmName("jsgrjcdqujbekpfd")
    public suspend fun contentEncoding(`value`: Output) {
        this.contentEncoding = value
    }

    /**
     * @param value Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("imqhftsepmlwbhww")
    public suspend fun commonAttributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commonAttributes = mapped
    }

    /**
     * @param argument Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("gknijaeemoafbnti")
    public suspend fun commonAttributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DeliveryStreamHttpEndpointCommonAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.commonAttributes = mapped
    }

    /**
     * @param argument Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("rfkdtfysjofsbfjl")
    public suspend fun commonAttributes(vararg argument: suspend DeliveryStreamHttpEndpointCommonAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DeliveryStreamHttpEndpointCommonAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.commonAttributes = mapped
    }

    /**
     * @param argument Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("aggfrjksogiicoim")
    public suspend fun commonAttributes(argument: suspend DeliveryStreamHttpEndpointCommonAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DeliveryStreamHttpEndpointCommonAttributeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.commonAttributes = mapped
    }

    /**
     * @param values Describes the metadata sent to the HTTP endpoint destination.
     */
    @JvmName("ewtljtteaapmbpdg")
    public suspend fun commonAttributes(vararg values: DeliveryStreamHttpEndpointCommonAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.commonAttributes = mapped
    }

    /**
     * @param value Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to the destination. For more information, see Content-Encoding in MDN Web Docs, the official Mozilla documentation.
     */
    @JvmName("fswuhynmqqgnbmjs")
    public suspend fun contentEncoding(`value`: DeliveryStreamHttpEndpointRequestConfigurationContentEncoding?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentEncoding = mapped
    }

    internal fun build(): DeliveryStreamHttpEndpointRequestConfigurationArgs =
        DeliveryStreamHttpEndpointRequestConfigurationArgs(
            commonAttributes = commonAttributes,
            contentEncoding = contentEncoding,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy