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