
com.pulumi.gcp.bigquery.kotlin.inputs.AppProfileSingleClusterRoutingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.bigquery.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.AppProfileSingleClusterRoutingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property allowTransactionalWrites If true, CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile.
* It is unsafe to send these requests to the same table/row/column in multiple clusters.
* @property clusterId The cluster to which read/write requests should be routed.
*/
public data class AppProfileSingleClusterRoutingArgs(
public val allowTransactionalWrites: Output? = null,
public val clusterId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.bigquery.inputs.AppProfileSingleClusterRoutingArgs =
com.pulumi.gcp.bigquery.inputs.AppProfileSingleClusterRoutingArgs.builder()
.allowTransactionalWrites(allowTransactionalWrites?.applyValue({ args0 -> args0 }))
.clusterId(clusterId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppProfileSingleClusterRoutingArgs].
*/
@PulumiTagMarker
public class AppProfileSingleClusterRoutingArgsBuilder internal constructor() {
private var allowTransactionalWrites: Output? = null
private var clusterId: Output? = null
/**
* @param value If true, CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile.
* It is unsafe to send these requests to the same table/row/column in multiple clusters.
*/
@JvmName("cqkgiqyxmjbpmbce")
public suspend fun allowTransactionalWrites(`value`: Output) {
this.allowTransactionalWrites = value
}
/**
* @param value The cluster to which read/write requests should be routed.
*/
@JvmName("qnqsbuwmnpianxkt")
public suspend fun clusterId(`value`: Output) {
this.clusterId = value
}
/**
* @param value If true, CheckAndMutateRow and ReadModifyWriteRow requests are allowed by this app profile.
* It is unsafe to send these requests to the same table/row/column in multiple clusters.
*/
@JvmName("kxivedttpllrglej")
public suspend fun allowTransactionalWrites(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowTransactionalWrites = mapped
}
/**
* @param value The cluster to which read/write requests should be routed.
*/
@JvmName("wvadjdfbasflhafk")
public suspend fun clusterId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.clusterId = mapped
}
internal fun build(): AppProfileSingleClusterRoutingArgs = AppProfileSingleClusterRoutingArgs(
allowTransactionalWrites = allowTransactionalWrites,
clusterId = clusterId ?: throw PulumiNullFieldException("clusterId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy