com.pulumi.gcp.organizations.kotlin.inputs.GetFolderPlainArgs.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.GetFolderPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getFolder.
* @property folder The name of the Folder in the form `{folder_id}` or `folders/{folder_id}`.
* @property lookupOrganization `true` to find the organization that the folder belongs, `false` to avoid the lookup. It searches up the tree. (defaults to `false`)
*/
public data class GetFolderPlainArgs(
public val folder: String,
public val lookupOrganization: Boolean? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.organizations.inputs.GetFolderPlainArgs =
com.pulumi.gcp.organizations.inputs.GetFolderPlainArgs.builder()
.folder(folder.let({ args0 -> args0 }))
.lookupOrganization(lookupOrganization?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetFolderPlainArgs].
*/
@PulumiTagMarker
public class GetFolderPlainArgsBuilder internal constructor() {
private var folder: String? = null
private var lookupOrganization: Boolean? = null
/**
* @param value The name of the Folder in the form `{folder_id}` or `folders/{folder_id}`.
*/
@JvmName("qwblspwftbmplvvj")
public suspend fun folder(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.folder = mapped
}
/**
* @param value `true` to find the organization that the folder belongs, `false` to avoid the lookup. It searches up the tree. (defaults to `false`)
*/
@JvmName("esfptkghrwnjhsrg")
public suspend fun lookupOrganization(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.lookupOrganization = mapped
}
internal fun build(): GetFolderPlainArgs = GetFolderPlainArgs(
folder = folder ?: throw PulumiNullFieldException("folder"),
lookupOrganization = lookupOrganization,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy