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

com.pulumi.azurenative.devices.kotlin.inputs.EventHubPropertiesArgs.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.devices.kotlin.inputs

import com.pulumi.azurenative.devices.inputs.EventHubPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.
 * @property partitionCount The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
 * @property retentionTimeInDays The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
 */
public data class EventHubPropertiesArgs(
    public val partitionCount: Output? = null,
    public val retentionTimeInDays: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devices.inputs.EventHubPropertiesArgs =
        com.pulumi.azurenative.devices.inputs.EventHubPropertiesArgs.builder()
            .partitionCount(partitionCount?.applyValue({ args0 -> args0 }))
            .retentionTimeInDays(retentionTimeInDays?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EventHubPropertiesArgs].
 */
@PulumiTagMarker
public class EventHubPropertiesArgsBuilder internal constructor() {
    private var partitionCount: Output? = null

    private var retentionTimeInDays: Output? = null

    /**
     * @param value The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
     */
    @JvmName("epgaxjolnswybfkk")
    public suspend fun partitionCount(`value`: Output) {
        this.partitionCount = value
    }

    /**
     * @param value The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
     */
    @JvmName("gkxvdbbdvyguhcli")
    public suspend fun retentionTimeInDays(`value`: Output) {
        this.retentionTimeInDays = value
    }

    /**
     * @param value The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
     */
    @JvmName("kuoidjiwgfvenbin")
    public suspend fun partitionCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.partitionCount = mapped
    }

    /**
     * @param value The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
     */
    @JvmName("lksvtpasddasaaym")
    public suspend fun retentionTimeInDays(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionTimeInDays = mapped
    }

    internal fun build(): EventHubPropertiesArgs = EventHubPropertiesArgs(
        partitionCount = partitionCount,
        retentionTimeInDays = retentionTimeInDays,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy