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

com.pulumi.azurenative.devices.kotlin.inputs.MessagingEndpointPropertiesArgs.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.MessagingEndpointPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The properties of the messaging endpoints used by this IoT hub.
 * @property lockDurationAsIso8601 The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
 * @property maxDeliveryCount The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
 * @property ttlAsIso8601 The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
 */
public data class MessagingEndpointPropertiesArgs(
    public val lockDurationAsIso8601: Output? = null,
    public val maxDeliveryCount: Output? = null,
    public val ttlAsIso8601: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devices.inputs.MessagingEndpointPropertiesArgs =
        com.pulumi.azurenative.devices.inputs.MessagingEndpointPropertiesArgs.builder()
            .lockDurationAsIso8601(lockDurationAsIso8601?.applyValue({ args0 -> args0 }))
            .maxDeliveryCount(maxDeliveryCount?.applyValue({ args0 -> args0 }))
            .ttlAsIso8601(ttlAsIso8601?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MessagingEndpointPropertiesArgs].
 */
@PulumiTagMarker
public class MessagingEndpointPropertiesArgsBuilder internal constructor() {
    private var lockDurationAsIso8601: Output? = null

    private var maxDeliveryCount: Output? = null

    private var ttlAsIso8601: Output? = null

    /**
     * @param value The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     */
    @JvmName("ywttibsaisdffxfg")
    public suspend fun lockDurationAsIso8601(`value`: Output) {
        this.lockDurationAsIso8601 = value
    }

    /**
     * @param value The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     */
    @JvmName("sbyjejkbqgqdgbtf")
    public suspend fun maxDeliveryCount(`value`: Output) {
        this.maxDeliveryCount = value
    }

    /**
     * @param value The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     */
    @JvmName("ufyrnmkidkmdxkib")
    public suspend fun ttlAsIso8601(`value`: Output) {
        this.ttlAsIso8601 = value
    }

    /**
     * @param value The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     */
    @JvmName("mbphpejwtcympdlm")
    public suspend fun lockDurationAsIso8601(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lockDurationAsIso8601 = mapped
    }

    /**
     * @param value The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     */
    @JvmName("qjwggkywavfoblcq")
    public suspend fun maxDeliveryCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDeliveryCount = mapped
    }

    /**
     * @param value The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     */
    @JvmName("lxdbcegcmmypoymv")
    public suspend fun ttlAsIso8601(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ttlAsIso8601 = mapped
    }

    internal fun build(): MessagingEndpointPropertiesArgs = MessagingEndpointPropertiesArgs(
        lockDurationAsIso8601 = lockDurationAsIso8601,
        maxDeliveryCount = maxDeliveryCount,
        ttlAsIso8601 = ttlAsIso8601,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy