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

com.pulumi.azurenative.iotoperations.kotlin.outputs.DataFlowEndpointMqttResponse.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.iotoperations.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * Broker endpoint properties
 * @property clientIdPrefix Client ID prefix. Client ID generated by the dataflow is -TBD. Optional; no prefix if omitted.
 * @property host Host of the Broker in the form of :. Optional; connects to Broker if omitted.
 * @property keepAliveSeconds Broker KeepAlive for connection in seconds.
 * @property maxInflightMessages The max number of messages to keep in flight. For subscribe, this is the receive maximum. For publish, this is the maximum number of messages to send before waiting for an ack.
 * @property protocol Enable or disable websockets.
 * @property qos Qos for Broker connection.
 * @property retain Whether or not to keep the retain setting.
 * @property sessionExpirySeconds Session expiry in seconds.
 * @property tls TLS configuration.
 */
public data class DataFlowEndpointMqttResponse(
    public val clientIdPrefix: String? = null,
    public val host: String? = null,
    public val keepAliveSeconds: Int? = null,
    public val maxInflightMessages: Int? = null,
    public val protocol: String? = null,
    public val qos: Int? = null,
    public val retain: String? = null,
    public val sessionExpirySeconds: Int? = null,
    public val tls: TlsPropertiesResponse? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.iotoperations.outputs.DataFlowEndpointMqttResponse): DataFlowEndpointMqttResponse = DataFlowEndpointMqttResponse(
            clientIdPrefix = javaType.clientIdPrefix().map({ args0 -> args0 }).orElse(null),
            host = javaType.host().map({ args0 -> args0 }).orElse(null),
            keepAliveSeconds = javaType.keepAliveSeconds().map({ args0 -> args0 }).orElse(null),
            maxInflightMessages = javaType.maxInflightMessages().map({ args0 -> args0 }).orElse(null),
            protocol = javaType.protocol().map({ args0 -> args0 }).orElse(null),
            qos = javaType.qos().map({ args0 -> args0 }).orElse(null),
            retain = javaType.retain().map({ args0 -> args0 }).orElse(null),
            sessionExpirySeconds = javaType.sessionExpirySeconds().map({ args0 -> args0 }).orElse(null),
            tls = javaType.tls().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.iotoperations.kotlin.outputs.TlsPropertiesResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy