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

com.pulumi.azure.cosmosdb.kotlin.outputs.CassandraTableSchema.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.cosmosdb.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property clusterKeys One or more `cluster_key` blocks as defined below.
 * @property columns One or more `column` blocks as defined below.
 * @property partitionKeys One or more `partition_key` blocks as defined below.
 */
public data class CassandraTableSchema(
    public val clusterKeys: List? = null,
    public val columns: List,
    public val partitionKeys: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.cosmosdb.outputs.CassandraTableSchema):
            CassandraTableSchema = CassandraTableSchema(
            clusterKeys = javaType.clusterKeys().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.CassandraTableSchemaClusterKey.Companion.toKotlin(args0)
                })
            }),
            columns = javaType.columns().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.CassandraTableSchemaColumn.Companion.toKotlin(args0)
                })
            }),
            partitionKeys = javaType.partitionKeys().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.cosmosdb.kotlin.outputs.CassandraTableSchemaPartitionKey.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy