com.pulumi.gcp.sql.kotlin.inputs.GetCaCertsPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.sql.kotlin.inputs
import com.pulumi.gcp.sql.inputs.GetCaCertsPlainArgs.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 getCaCerts.
* @property instance The name or self link of the instance.
* @property project The ID of the project in which the resource belongs. If `project` is not provided, the provider project is used.
*/
public data class GetCaCertsPlainArgs(
public val instance: String,
public val project: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.sql.inputs.GetCaCertsPlainArgs =
com.pulumi.gcp.sql.inputs.GetCaCertsPlainArgs.builder()
.instance(instance.let({ args0 -> args0 }))
.project(project?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetCaCertsPlainArgs].
*/
@PulumiTagMarker
public class GetCaCertsPlainArgsBuilder internal constructor() {
private var instance: String? = null
private var project: String? = null
/**
* @param value The name or self link of the instance.
*/
@JvmName("adqtrlwdtxcniaqb")
public suspend fun instance(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.instance = mapped
}
/**
* @param value The ID of the project in which the resource belongs. If `project` is not provided, the provider project is used.
*/
@JvmName("edetxhwajwisptco")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
internal fun build(): GetCaCertsPlainArgs = GetCaCertsPlainArgs(
instance = instance ?: throw PulumiNullFieldException("instance"),
project = project,
)
}