com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1AssetResourceSpecArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dataplex.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dataplex.v1.inputs.GoogleCloudDataplexV1AssetResourceSpecArgs.builder
import com.pulumi.googlenative.dataplex.v1.kotlin.enums.GoogleCloudDataplexV1AssetResourceSpecReadAccessMode
import com.pulumi.googlenative.dataplex.v1.kotlin.enums.GoogleCloudDataplexV1AssetResourceSpecType
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
/**
* Identifies the cloud resource that is referenced by this asset.
* @property name Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}
* @property readAccessMode Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets.
* @property type Immutable. Type of resource.
*/
public data class GoogleCloudDataplexV1AssetResourceSpecArgs(
public val name: Output? = null,
public val readAccessMode: Output? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.dataplex.v1.inputs.GoogleCloudDataplexV1AssetResourceSpecArgs =
com.pulumi.googlenative.dataplex.v1.inputs.GoogleCloudDataplexV1AssetResourceSpecArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.readAccessMode(readAccessMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GoogleCloudDataplexV1AssetResourceSpecArgs].
*/
@PulumiTagMarker
public class GoogleCloudDataplexV1AssetResourceSpecArgsBuilder internal constructor() {
private var name: Output? = null
private var readAccessMode: Output? = null
private var type: Output? = null
/**
* @param value Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}
*/
@JvmName("qojabyqnawvjknsw")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets.
*/
@JvmName("kitxoccfecnudoaw")
public suspend fun readAccessMode(`value`: Output) {
this.readAccessMode = value
}
/**
* @param value Immutable. Type of resource.
*/
@JvmName("mydqtfqbsdtwkelk")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/{project_number}/buckets/{bucket_id} projects/{project_number}/datasets/{dataset_id}
*/
@JvmName("dkayrfvqpdkbrrau")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets.
*/
@JvmName("lkdgiciujawqusub")
public suspend fun readAccessMode(`value`: GoogleCloudDataplexV1AssetResourceSpecReadAccessMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readAccessMode = mapped
}
/**
* @param value Immutable. Type of resource.
*/
@JvmName("qpwxxvtyolufvtgw")
public suspend fun type(`value`: GoogleCloudDataplexV1AssetResourceSpecType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): GoogleCloudDataplexV1AssetResourceSpecArgs =
GoogleCloudDataplexV1AssetResourceSpecArgs(
name = name,
readAccessMode = readAccessMode,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy