![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.documentdb.kotlin.inputs.CassandraTableResourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.CassandraTableResourceArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Cosmos DB Cassandra table resource object
* @property analyticalStorageTtl Analytical TTL.
* @property defaultTtl Time to live of the Cosmos DB Cassandra table
* @property id Name of the Cosmos DB Cassandra table
* @property schema Schema of the Cosmos DB Cassandra table
*/
public data class CassandraTableResourceArgs(
public val analyticalStorageTtl: Output? = null,
public val defaultTtl: Output? = null,
public val id: Output,
public val schema: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.CassandraTableResourceArgs =
com.pulumi.azurenative.documentdb.inputs.CassandraTableResourceArgs.builder()
.analyticalStorageTtl(analyticalStorageTtl?.applyValue({ args0 -> args0 }))
.defaultTtl(defaultTtl?.applyValue({ args0 -> args0 }))
.id(id.applyValue({ args0 -> args0 }))
.schema(schema?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [CassandraTableResourceArgs].
*/
@PulumiTagMarker
public class CassandraTableResourceArgsBuilder internal constructor() {
private var analyticalStorageTtl: Output? = null
private var defaultTtl: Output? = null
private var id: Output? = null
private var schema: Output? = null
/**
* @param value Analytical TTL.
*/
@JvmName("tkqquqnrqjrydsji")
public suspend fun analyticalStorageTtl(`value`: Output) {
this.analyticalStorageTtl = value
}
/**
* @param value Time to live of the Cosmos DB Cassandra table
*/
@JvmName("jexdltmhxcbjhtpv")
public suspend fun defaultTtl(`value`: Output) {
this.defaultTtl = value
}
/**
* @param value Name of the Cosmos DB Cassandra table
*/
@JvmName("utlwfogydenvoefu")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Schema of the Cosmos DB Cassandra table
*/
@JvmName("hhltfymblaybiolu")
public suspend fun schema(`value`: Output) {
this.schema = value
}
/**
* @param value Analytical TTL.
*/
@JvmName("glcyvcurbpslklgn")
public suspend fun analyticalStorageTtl(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.analyticalStorageTtl = mapped
}
/**
* @param value Time to live of the Cosmos DB Cassandra table
*/
@JvmName("spcrpugixjhptntd")
public suspend fun defaultTtl(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultTtl = mapped
}
/**
* @param value Name of the Cosmos DB Cassandra table
*/
@JvmName("qqeiygmpiwokfjmp")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Schema of the Cosmos DB Cassandra table
*/
@JvmName("jepwmkcbutspouph")
public suspend fun schema(`value`: CassandraSchemaArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schema = mapped
}
/**
* @param argument Schema of the Cosmos DB Cassandra table
*/
@JvmName("hfctiianpllcafer")
public suspend fun schema(argument: suspend CassandraSchemaArgsBuilder.() -> Unit) {
val toBeMapped = CassandraSchemaArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.schema = mapped
}
internal fun build(): CassandraTableResourceArgs = CassandraTableResourceArgs(
analyticalStorageTtl = analyticalStorageTtl,
defaultTtl = defaultTtl,
id = id ?: throw PulumiNullFieldException("id"),
schema = schema,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy