All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.dataplex.v1.kotlin.inputs.GoogleCloudDataplexV1SchemaSchemaFieldArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@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.GoogleCloudDataplexV1SchemaSchemaFieldArgs.builder
import com.pulumi.googlenative.dataplex.v1.kotlin.enums.GoogleCloudDataplexV1SchemaSchemaFieldMode
import com.pulumi.googlenative.dataplex.v1.kotlin.enums.GoogleCloudDataplexV1SchemaSchemaFieldType
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Represents a column field within a table schema.
 * @property description Optional. User friendly field description. Must be less than or equal to 1024 characters.
 * @property fields Optional. Any nested field for complex types.
 * @property mode Additional field semantics.
 * @property name The name of the field. Must contain only letters, numbers and underscores, with a maximum length of 767 characters, and must begin with a letter or underscore.
 * @property type The type of field.
 */
public data class GoogleCloudDataplexV1SchemaSchemaFieldArgs(
    public val description: Output? = null,
    public val fields: Output>? = null,
    public val mode: Output,
    public val name: Output,
    public val type: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.dataplex.v1.inputs.GoogleCloudDataplexV1SchemaSchemaFieldArgs =
        com.pulumi.googlenative.dataplex.v1.inputs.GoogleCloudDataplexV1SchemaSchemaFieldArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .fields(fields?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .mode(mode.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [GoogleCloudDataplexV1SchemaSchemaFieldArgs].
 */
@PulumiTagMarker
public class GoogleCloudDataplexV1SchemaSchemaFieldArgsBuilder internal constructor() {
    private var description: Output? = null

    private var fields: Output>? = null

    private var mode: Output? = null

    private var name: Output? = null

    private var type: Output? = null

    /**
     * @param value Optional. User friendly field description. Must be less than or equal to 1024 characters.
     */
    @JvmName("vevosexugxkldlgp")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Optional. Any nested field for complex types.
     */
    @JvmName("ctbyamtdsshpsdfk")
    public suspend fun fields(`value`: Output>) {
        this.fields = value
    }

    @JvmName("sqyjpuejwspvnbfi")
    public suspend fun fields(vararg values: Output) {
        this.fields = Output.all(values.asList())
    }

    /**
     * @param values Optional. Any nested field for complex types.
     */
    @JvmName("telxrlrxrrqdgdxj")
    public suspend fun fields(values: List>) {
        this.fields = Output.all(values)
    }

    /**
     * @param value Additional field semantics.
     */
    @JvmName("xbcrlhrkrlitdfew")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value The name of the field. Must contain only letters, numbers and underscores, with a maximum length of 767 characters, and must begin with a letter or underscore.
     */
    @JvmName("uwdmqsmcdadsggcg")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The type of field.
     */
    @JvmName("urrovfinsiegmdkg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Optional. User friendly field description. Must be less than or equal to 1024 characters.
     */
    @JvmName("lmxdrwxqkgiywoqi")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Optional. Any nested field for complex types.
     */
    @JvmName("edufgpcniaywtops")
    public suspend fun fields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fields = mapped
    }

    /**
     * @param argument Optional. Any nested field for complex types.
     */
    @JvmName("tlcggatiwlvybjgd")
    public suspend fun fields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDataplexV1SchemaSchemaFieldArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param argument Optional. Any nested field for complex types.
     */
    @JvmName("cvenwiqgjvuhupnr")
    public suspend fun fields(vararg argument: suspend GoogleCloudDataplexV1SchemaSchemaFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GoogleCloudDataplexV1SchemaSchemaFieldArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param argument Optional. Any nested field for complex types.
     */
    @JvmName("ytralslsjnxufapx")
    public suspend fun fields(argument: suspend GoogleCloudDataplexV1SchemaSchemaFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GoogleCloudDataplexV1SchemaSchemaFieldArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param values Optional. Any nested field for complex types.
     */
    @JvmName("kvayommyuckctfro")
    public suspend fun fields(vararg values: GoogleCloudDataplexV1SchemaSchemaFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fields = mapped
    }

    /**
     * @param value Additional field semantics.
     */
    @JvmName("vvkxbkimolalovyp")
    public suspend fun mode(`value`: GoogleCloudDataplexV1SchemaSchemaFieldMode) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value The name of the field. Must contain only letters, numbers and underscores, with a maximum length of 767 characters, and must begin with a letter or underscore.
     */
    @JvmName("elmjctbikdhijcbe")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The type of field.
     */
    @JvmName("agwrwnormtotlpwv")
    public suspend fun type(`value`: GoogleCloudDataplexV1SchemaSchemaFieldType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): GoogleCloudDataplexV1SchemaSchemaFieldArgs =
        GoogleCloudDataplexV1SchemaSchemaFieldArgs(
            description = description,
            fields = fields,
            mode = mode ?: throw PulumiNullFieldException("mode"),
            name = name ?: throw PulumiNullFieldException("name"),
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy