com.pulumi.gcp.organizations.kotlin.inputs.GetFoldersPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.organizations.kotlin.inputs
import com.pulumi.gcp.organizations.inputs.GetFoldersPlainArgs.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 getFolders.
* @property parentId A string parent as defined in the [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#query-parameters).
*/
public data class GetFoldersPlainArgs(
public val parentId: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.organizations.inputs.GetFoldersPlainArgs =
com.pulumi.gcp.organizations.inputs.GetFoldersPlainArgs.builder()
.parentId(parentId.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetFoldersPlainArgs].
*/
@PulumiTagMarker
public class GetFoldersPlainArgsBuilder internal constructor() {
private var parentId: String? = null
/**
* @param value A string parent as defined in the [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#query-parameters).
*/
@JvmName("nxbgrokjbrcvnasb")
public suspend fun parentId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.parentId = mapped
}
internal fun build(): GetFoldersPlainArgs = GetFoldersPlainArgs(
parentId = parentId ?: throw PulumiNullFieldException("parentId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy