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

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

package com.pulumi.azure.eventgrid.kotlin.inputs

import com.pulumi.azure.eventgrid.inputs.EventSubscriptionAzureFunctionEndpointArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property functionId Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
 * @property maxEventsPerBatch Maximum number of events per batch.
 * @property preferredBatchSizeInKilobytes Preferred batch size in Kilobytes.
 */
public data class EventSubscriptionAzureFunctionEndpointArgs(
    public val functionId: Output,
    public val maxEventsPerBatch: Output? = null,
    public val preferredBatchSizeInKilobytes: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.eventgrid.inputs.EventSubscriptionAzureFunctionEndpointArgs =
        com.pulumi.azure.eventgrid.inputs.EventSubscriptionAzureFunctionEndpointArgs.builder()
            .functionId(functionId.applyValue({ args0 -> args0 }))
            .maxEventsPerBatch(maxEventsPerBatch?.applyValue({ args0 -> args0 }))
            .preferredBatchSizeInKilobytes(
                preferredBatchSizeInKilobytes?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [EventSubscriptionAzureFunctionEndpointArgs].
 */
@PulumiTagMarker
public class EventSubscriptionAzureFunctionEndpointArgsBuilder internal constructor() {
    private var functionId: Output? = null

    private var maxEventsPerBatch: Output? = null

    private var preferredBatchSizeInKilobytes: Output? = null

    /**
     * @param value Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
     */
    @JvmName("utpoobavupxnngyb")
    public suspend fun functionId(`value`: Output) {
        this.functionId = value
    }

    /**
     * @param value Maximum number of events per batch.
     */
    @JvmName("egjhxgnctujxgcvm")
    public suspend fun maxEventsPerBatch(`value`: Output) {
        this.maxEventsPerBatch = value
    }

    /**
     * @param value Preferred batch size in Kilobytes.
     */
    @JvmName("ptotfaxgcwgotvkc")
    public suspend fun preferredBatchSizeInKilobytes(`value`: Output) {
        this.preferredBatchSizeInKilobytes = value
    }

    /**
     * @param value Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
     */
    @JvmName("hhycfykkkhbxwavy")
    public suspend fun functionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.functionId = mapped
    }

    /**
     * @param value Maximum number of events per batch.
     */
    @JvmName("licqwdedwyvllgyx")
    public suspend fun maxEventsPerBatch(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxEventsPerBatch = mapped
    }

    /**
     * @param value Preferred batch size in Kilobytes.
     */
    @JvmName("touvltaiiojgglns")
    public suspend fun preferredBatchSizeInKilobytes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferredBatchSizeInKilobytes = mapped
    }

    internal fun build(): EventSubscriptionAzureFunctionEndpointArgs =
        EventSubscriptionAzureFunctionEndpointArgs(
            functionId = functionId ?: throw PulumiNullFieldException("functionId"),
            maxEventsPerBatch = maxEventsPerBatch,
            preferredBatchSizeInKilobytes = preferredBatchSizeInKilobytes,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy