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

com.pulumi.azure.iot.kotlin.outputs.IotHubDpsLinkedHub.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.iot.kotlin.outputs

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

/**
 *
 * @property allocationWeight The weight applied to the IoT Hub. Defaults to `1`.
 * @property applyAllocationPolicy Determines whether to apply allocation policies to the IoT Hub. Defaults to `true`.
 * @property connectionString The connection string to connect to the IoT Hub.
 * @property hostname The IoT Hub hostname.
 * @property location The location of the IoT hub.
 */
public data class IotHubDpsLinkedHub(
    public val allocationWeight: Int? = null,
    public val applyAllocationPolicy: Boolean? = null,
    public val connectionString: String,
    public val hostname: String? = null,
    public val location: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.iot.outputs.IotHubDpsLinkedHub): IotHubDpsLinkedHub = IotHubDpsLinkedHub(
            allocationWeight = javaType.allocationWeight().map({ args0 -> args0 }).orElse(null),
            applyAllocationPolicy = javaType.applyAllocationPolicy().map({ args0 -> args0 }).orElse(null),
            connectionString = javaType.connectionString(),
            hostname = javaType.hostname().map({ args0 -> args0 }).orElse(null),
            location = javaType.location(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy