com.pulumi.azure.cosmosdb.kotlin.inputs.CassandraTableSchemaColumnArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.cosmosdb.kotlin.inputs
import com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaColumnArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property name Name of the column to be created.
* @property type Type of the column to be created.
*/
public data class CassandraTableSchemaColumnArgs(
public val name: Output,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaColumnArgs =
com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaColumnArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CassandraTableSchemaColumnArgs].
*/
@PulumiTagMarker
public class CassandraTableSchemaColumnArgsBuilder internal constructor() {
private var name: Output? = null
private var type: Output? = null
/**
* @param value Name of the column to be created.
*/
@JvmName("ewnnbhsamfxjshsy")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Type of the column to be created.
*/
@JvmName("ageynyrgpnsgmxks")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Name of the column to be created.
*/
@JvmName("spisgromcnfqotcb")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Type of the column to be created.
*/
@JvmName("ascwvssgspmfyqrb")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): CassandraTableSchemaColumnArgs = CassandraTableSchemaColumnArgs(
name = name ?: throw PulumiNullFieldException("name"),
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy