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

com.pulumi.azure.iot.kotlin.outputs.IoTHubCloudToDevice.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.iot.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property defaultTtl The default time to live for cloud-to-device messages, specified as an [ISO 8601 timespan duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). This value must be between 1 minute and 48 hours. Defaults to `PT1H`.
 * @property feedbacks A `feedback` block as defined below.
 * @property maxDeliveryCount The maximum delivery count for cloud-to-device per-device queues. This value must be between `1` and `100`. Defaults to `10`.
 */
public data class IoTHubCloudToDevice(
    public val defaultTtl: String? = null,
    public val feedbacks: List? = null,
    public val maxDeliveryCount: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.iot.outputs.IoTHubCloudToDevice): IoTHubCloudToDevice = IoTHubCloudToDevice(
            defaultTtl = javaType.defaultTtl().map({ args0 -> args0 }).orElse(null),
            feedbacks = javaType.feedbacks().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.iot.kotlin.outputs.IoTHubCloudToDeviceFeedback.Companion.toKotlin(args0)
                })
            }),
            maxDeliveryCount = javaType.maxDeliveryCount().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy