
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelProperty.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 com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetModelDataType
import com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetModelDataTypeSpec
import kotlin.String
import kotlin.Suppress
/**
* Contains information about an asset model property.
* @property dataType The data type of the asset model property.
* @property dataTypeSpec The data type of the structure for this property.
* @property externalId The External ID of the Asset Model Property
* @property id The ID of the Asset Model Property
* @property logicalId Customer provided Logical ID for property.
* @property name The name of the asset model property.
* @property type The property type
* @property unit The unit of the asset model property, such as Newtons or RPM.
*/
public data class AssetModelProperty(
public val dataType: AssetModelDataType,
public val dataTypeSpec: AssetModelDataTypeSpec? = null,
public val externalId: String? = null,
public val id: String? = null,
public val logicalId: String? = null,
public val name: String,
public val type: AssetModelPropertyType,
public val unit: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AssetModelProperty): AssetModelProperty = AssetModelProperty(
dataType = javaType.dataType().let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetModelDataType.Companion.toKotlin(args0)
}),
dataTypeSpec = javaType.dataTypeSpec().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.enums.AssetModelDataTypeSpec.Companion.toKotlin(args0)
})
}).orElse(null),
externalId = javaType.externalId().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
logicalId = javaType.logicalId().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
type = javaType.type().let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AssetModelPropertyType.Companion.toKotlin(args0)
}),
unit = javaType.unit().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy