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

com.pulumi.azurenative.eventgrid.kotlin.inputs.EventHubEventSubscriptionDestinationArgs.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.eventgrid.kotlin.inputs

import com.pulumi.azurenative.eventgrid.inputs.EventHubEventSubscriptionDestinationArgs.builder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Information about the event hub destination for an event subscription.
 * @property deliveryAttributeMappings Delivery attribute details.
 * @property endpointType Type of the endpoint for the event subscription destination.
 * Expected value is 'EventHub'.
 * @property resourceId The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.
 */
public data class EventHubEventSubscriptionDestinationArgs(
    public val deliveryAttributeMappings: Output>>? =
        null,
    public val endpointType: Output,
    public val resourceId: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.EventHubEventSubscriptionDestinationArgs =
        com.pulumi.azurenative.eventgrid.inputs.EventHubEventSubscriptionDestinationArgs.builder()
            .deliveryAttributeMappings(
                deliveryAttributeMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.transform({ args0 -> args0.let({ args0 -> args0.toJava() }) }, { args0 ->
                            args0.let({ args0 ->
                                args0.toJava()
                            })
                        })
                    })
                }),
            )
            .endpointType(endpointType.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 })).build()
}

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

    private var endpointType: Output? = null

    private var resourceId: Output? = null

    /**
     * @param value Delivery attribute details.
     */
    @JvmName("yhasvxoexrvahehj")
    public suspend fun deliveryAttributeMappings(`value`: Output>>) {
        this.deliveryAttributeMappings = value
    }

    @JvmName("bccjgtxsksomqfpk")
    public suspend fun deliveryAttributeMappings(vararg values: Output>) {
        this.deliveryAttributeMappings = Output.all(values.asList())
    }

    /**
     * @param values Delivery attribute details.
     */
    @JvmName("ddxljkwpevmrpctn")
    public suspend fun deliveryAttributeMappings(values: List>>) {
        this.deliveryAttributeMappings = Output.all(values)
    }

    /**
     * @param value Type of the endpoint for the event subscription destination.
     * Expected value is 'EventHub'.
     */
    @JvmName("hrhfcpshcungwniy")
    public suspend fun endpointType(`value`: Output) {
        this.endpointType = value
    }

    /**
     * @param value The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.
     */
    @JvmName("fprbkhqdbfqvhcsn")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value Delivery attribute details.
     */
    @JvmName("jvnvrbdfseeqjtsw")
    public suspend fun deliveryAttributeMappings(`value`: List>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deliveryAttributeMappings = mapped
    }

    /**
     * @param values Delivery attribute details.
     */
    @JvmName("bucvdvxdrhgsukmk")
    public suspend fun deliveryAttributeMappings(vararg values: Either) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deliveryAttributeMappings = mapped
    }

    /**
     * @param value Type of the endpoint for the event subscription destination.
     * Expected value is 'EventHub'.
     */
    @JvmName("klspqttnvlecftcd")
    public suspend fun endpointType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointType = mapped
    }

    /**
     * @param value The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.
     */
    @JvmName("yddgrqowuseohsoy")
    public suspend fun resourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

    internal fun build(): EventHubEventSubscriptionDestinationArgs =
        EventHubEventSubscriptionDestinationArgs(
            deliveryAttributeMappings = deliveryAttributeMappings,
            endpointType = endpointType ?: throw PulumiNullFieldException("endpointType"),
            resourceId = resourceId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy