
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelVariableValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotsitewise.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property hierarchyExternalId The External ID of the hierarchy that is trying to be referenced
* @property hierarchyId The ID of the hierarchy that is trying to be referenced
* @property hierarchyLogicalId The `LogicalID` of the hierarchy to query for the `PropertyLogicalID` .
* You use a `hierarchyLogicalID` instead of a model ID because you can have several hierarchies using the same model and therefore the same property. For example, you might have separately grouped assets that come from the same asset model. For more information, see [Defining relationships between asset models (hierarchies)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html) in the *AWS IoT SiteWise User Guide* .
* @property propertyExternalId The External ID of the property that is trying to be referenced
* @property propertyId The ID of the property that is trying to be referenced
* @property propertyLogicalId The `LogicalID` of the property that is being referenced.
* @property propertyPath The path of the property that is trying to be referenced
*/
public data class AssetModelVariableValue(
public val hierarchyExternalId: String? = null,
public val hierarchyId: String? = null,
public val hierarchyLogicalId: String? = null,
public val propertyExternalId: String? = null,
public val propertyId: String? = null,
public val propertyLogicalId: String? = null,
public val propertyPath: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AssetModelVariableValue): AssetModelVariableValue = AssetModelVariableValue(
hierarchyExternalId = javaType.hierarchyExternalId().map({ args0 -> args0 }).orElse(null),
hierarchyId = javaType.hierarchyId().map({ args0 -> args0 }).orElse(null),
hierarchyLogicalId = javaType.hierarchyLogicalId().map({ args0 -> args0 }).orElse(null),
propertyExternalId = javaType.propertyExternalId().map({ args0 -> args0 }).orElse(null),
propertyId = javaType.propertyId().map({ args0 -> args0 }).orElse(null),
propertyLogicalId = javaType.propertyLogicalId().map({ args0 -> args0 }).orElse(null),
propertyPath = javaType.propertyPath().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelPropertyPathDefinition.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy