com.pulumi.azure.cosmosdb.kotlin.inputs.CassandraTableSchemaArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cosmosdb.kotlin.inputs
import com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 CassandraTableSchemaArgs(
public val clusterKeys: Output>? = null,
public val columns: Output>,
public val partitionKeys: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaArgs =
com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaArgs.builder()
.clusterKeys(
clusterKeys?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.columns(
columns.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.partitionKeys(
partitionKeys.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [CassandraTableSchemaArgs].
*/
@PulumiTagMarker
public class CassandraTableSchemaArgsBuilder internal constructor() {
private var clusterKeys: Output>? = null
private var columns: Output>? = null
private var partitionKeys: Output>? = null
/**
* @param value One or more `cluster_key` blocks as defined below.
*/
@JvmName("wgwdwymmknlmnjht")
public suspend fun clusterKeys(`value`: Output>) {
this.clusterKeys = value
}
@JvmName("liqdmrcflulqcuwn")
public suspend fun clusterKeys(vararg values: Output) {
this.clusterKeys = Output.all(values.asList())
}
/**
* @param values One or more `cluster_key` blocks as defined below.
*/
@JvmName("twrmumobjkpalcms")
public suspend fun clusterKeys(values: List