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

com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDefinition.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iottwinmaker.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * An object that specifies information about a property definition.
 * @property configuration An object that specifies information about a property configuration.
 * @property dataType An object that contains information about the data type.
 * @property defaultValue An object that contains the default value.
 * @property isExternalId A Boolean value that specifies whether the property ID comes from an external data store.
 * @property isFinal A Boolean value that specifies whether the property definition can be updated.
 * @property isImported A Boolean value that specifies whether the property definition is imported from an external data store.
 * @property isInherited A Boolean value that specifies whether the property definition is inherited from a parent entity.
 * @property isRequiredInEntity A Boolean value that specifies whether the property is required.
 * @property isStoredExternally A Boolean value that specifies whether the property is stored externally.
 * @property isTimeSeries A Boolean value that specifies whether the property consists of time series data.
 */
public data class EntityDefinition(
    public val configuration: Map? = null,
    public val dataType: EntityDataType? = null,
    public val defaultValue: EntityDataValue? = null,
    public val isExternalId: Boolean? = null,
    public val isFinal: Boolean? = null,
    public val isImported: Boolean? = null,
    public val isInherited: Boolean? = null,
    public val isRequiredInEntity: Boolean? = null,
    public val isStoredExternally: Boolean? = null,
    public val isTimeSeries: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iottwinmaker.outputs.EntityDefinition): EntityDefinition = EntityDefinition(
            configuration = javaType.configuration().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            dataType = javaType.dataType().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDataType.Companion.toKotlin(args0)
                })
            }).orElse(null),
            defaultValue = javaType.defaultValue().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.iottwinmaker.kotlin.outputs.EntityDataValue.Companion.toKotlin(args0)
                })
            }).orElse(null),
            isExternalId = javaType.isExternalId().map({ args0 -> args0 }).orElse(null),
            isFinal = javaType.isFinal().map({ args0 -> args0 }).orElse(null),
            isImported = javaType.isImported().map({ args0 -> args0 }).orElse(null),
            isInherited = javaType.isInherited().map({ args0 -> args0 }).orElse(null),
            isRequiredInEntity = javaType.isRequiredInEntity().map({ args0 -> args0 }).orElse(null),
            isStoredExternally = javaType.isStoredExternally().map({ args0 -> args0 }).orElse(null),
            isTimeSeries = javaType.isTimeSeries().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy