![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDataValue.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iottwinmaker.kotlin.outputs
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* An object that specifies a value for a property.
* @property booleanValue A Boolean value.
* @property doubleValue A double value.
* @property expression An expression that produces the value.
* @property integerValue An integer value.
* @property listValue A list of multiple values.
* @property longValue A long value.
* @property mapValue An object that maps strings to multiple DataValue objects.
* @property relationshipValue A value that relates a component to another component.
* @property stringValue A string value.
*/
public data class EntityDataValue(
public val booleanValue: Boolean? = null,
public val doubleValue: Double? = null,
public val expression: String? = null,
public val integerValue: Int? = null,
public val listValue: List? = null,
public val longValue: Double? = null,
public val mapValue: Map? = null,
public val relationshipValue: EntityDataValueRelationshipValueProperties? = null,
public val stringValue: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iottwinmaker.outputs.EntityDataValue): EntityDataValue = EntityDataValue(
booleanValue = javaType.booleanValue().map({ args0 -> args0 }).orElse(null),
doubleValue = javaType.doubleValue().map({ args0 -> args0 }).orElse(null),
expression = javaType.expression().map({ args0 -> args0 }).orElse(null),
integerValue = javaType.integerValue().map({ args0 -> args0 }).orElse(null),
listValue = javaType.listValue().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDataValue.Companion.toKotlin(args0)
})
}),
longValue = javaType.longValue().map({ args0 -> args0 }).orElse(null),
mapValue = javaType.mapValue().map({ args0 ->
args0.key.to(
args0.value.let({ args0 ->
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDataValue.Companion.toKotlin(args0)
}),
)
}).toMap(),
relationshipValue = javaType.relationshipValue().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDataValueRelationshipValueProperties.Companion.toKotlin(args0)
})
}).orElse(null),
stringValue = javaType.stringValue().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy