com.pulumi.digitalocean.kotlin.inputs.GetDatabaseConnectionPoolPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetDatabaseConnectionPoolPlainArgs.builder
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
/**
* A collection of arguments for invoking getDatabaseConnectionPool.
* @property clusterId The ID of the original source database cluster.
* @property name The name for the database connection pool.
*/
public data class GetDatabaseConnectionPoolPlainArgs(
public val clusterId: String,
public val name: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetDatabaseConnectionPoolPlainArgs =
com.pulumi.digitalocean.inputs.GetDatabaseConnectionPoolPlainArgs.builder()
.clusterId(clusterId.let({ args0 -> args0 }))
.name(name.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetDatabaseConnectionPoolPlainArgs].
*/
@PulumiTagMarker
public class GetDatabaseConnectionPoolPlainArgsBuilder internal constructor() {
private var clusterId: String? = null
private var name: String? = null
/**
* @param value The ID of the original source database cluster.
*/
@JvmName("qgkbaeamiyvuowod")
public suspend fun clusterId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.clusterId = mapped
}
/**
* @param value The name for the database connection pool.
*/
@JvmName("fsfdgamrviaprokm")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetDatabaseConnectionPoolPlainArgs = GetDatabaseConnectionPoolPlainArgs(
clusterId = clusterId ?: throw PulumiNullFieldException("clusterId"),
name = name ?: throw PulumiNullFieldException("name"),
)
}