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

com.pulumi.azure.eventhub.kotlin.inputs.EventSubscriptionDeliveryPropertyArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.eventhub.kotlin.inputs

import com.pulumi.azure.eventhub.inputs.EventSubscriptionDeliveryPropertyArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property headerName The name of the header to send on to the destination
 * @property secret True if the `value` is a secret and should be protected, otherwise false. If True, then this value won't be returned from Azure API calls
 * @property sourceField If the `type` is `Dynamic`, then provide the payload field to be used as the value. Valid source fields differ by subscription type.
 * @property type Either `Static` or `Dynamic`
 * @property value If the `type` is `Static`, then provide the value to use
 */
public data class EventSubscriptionDeliveryPropertyArgs(
    public val headerName: Output,
    public val secret: Output? = null,
    public val sourceField: Output? = null,
    public val type: Output,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.eventhub.inputs.EventSubscriptionDeliveryPropertyArgs =
        com.pulumi.azure.eventhub.inputs.EventSubscriptionDeliveryPropertyArgs.builder()
            .headerName(headerName.applyValue({ args0 -> args0 }))
            .secret(secret?.applyValue({ args0 -> args0 }))
            .sourceField(sourceField?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventSubscriptionDeliveryPropertyArgs].
 */
@PulumiTagMarker
public class EventSubscriptionDeliveryPropertyArgsBuilder internal constructor() {
    private var headerName: Output? = null

    private var secret: Output? = null

    private var sourceField: Output? = null

    private var type: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The name of the header to send on to the destination
     */
    @JvmName("pithbscbutfeloiu")
    public suspend fun headerName(`value`: Output) {
        this.headerName = value
    }

    /**
     * @param value True if the `value` is a secret and should be protected, otherwise false. If True, then this value won't be returned from Azure API calls
     */
    @JvmName("ibvtjdogxujdnjcv")
    public suspend fun secret(`value`: Output) {
        this.secret = value
    }

    /**
     * @param value If the `type` is `Dynamic`, then provide the payload field to be used as the value. Valid source fields differ by subscription type.
     */
    @JvmName("bnxwrrxaysgayigd")
    public suspend fun sourceField(`value`: Output) {
        this.sourceField = value
    }

    /**
     * @param value Either `Static` or `Dynamic`
     */
    @JvmName("wbhhwhdqgwxodneb")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value If the `type` is `Static`, then provide the value to use
     */
    @JvmName("uqcolftuiccdpixb")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The name of the header to send on to the destination
     */
    @JvmName("berlyjxjfddxnynx")
    public suspend fun headerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerName = mapped
    }

    /**
     * @param value True if the `value` is a secret and should be protected, otherwise false. If True, then this value won't be returned from Azure API calls
     */
    @JvmName("ytiamxqklqmwiejg")
    public suspend fun secret(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secret = mapped
    }

    /**
     * @param value If the `type` is `Dynamic`, then provide the payload field to be used as the value. Valid source fields differ by subscription type.
     */
    @JvmName("eclhvfnowexiwmpo")
    public suspend fun sourceField(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceField = mapped
    }

    /**
     * @param value Either `Static` or `Dynamic`
     */
    @JvmName("kwsrxpatwqjgdxfs")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value If the `type` is `Static`, then provide the value to use
     */
    @JvmName("pcmttiybkojsshxu")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): EventSubscriptionDeliveryPropertyArgs =
        EventSubscriptionDeliveryPropertyArgs(
            headerName = headerName ?: throw PulumiNullFieldException("headerName"),
            secret = secret,
            sourceField = sourceField,
            type = type ?: throw PulumiNullFieldException("type"),
            `value` = `value`,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy