com.pulumi.digitalocean.kotlin.inputs.GetProjectPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.digitalocean.inputs.GetProjectPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getProject.
* @property id the ID of the project to retrieve
* @property name the name of the project to retrieve. The data source will raise an error if more than
* one project has the provided name or if no project has that name.
*/
public data class GetProjectPlainArgs(
public val id: String? = null,
public val name: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.GetProjectPlainArgs =
com.pulumi.digitalocean.inputs.GetProjectPlainArgs.builder()
.id(id?.let({ args0 -> args0 }))
.name(name?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetProjectPlainArgs].
*/
@PulumiTagMarker
public class GetProjectPlainArgsBuilder internal constructor() {
private var id: String? = null
private var name: String? = null
/**
* @param value the ID of the project to retrieve
*/
@JvmName("hrxakspetwdywhjm")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.id = mapped
}
/**
* @param value the name of the project to retrieve. The data source will raise an error if more than
* one project has the provided name or if no project has that name.
*/
@JvmName("vgbxhkfclgvwspbk")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.name = mapped
}
internal fun build(): GetProjectPlainArgs = GetProjectPlainArgs(
id = id,
name = name,
)
}