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

com.pulumi.googlenative.datalineage.v1.kotlin.ProcessArgs.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.datalineage.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.datalineage.v1.ProcessArgs.builder
import com.pulumi.googlenative.datalineage.v1.kotlin.inputs.GoogleCloudDatacatalogLineageV1OriginArgs
import com.pulumi.googlenative.datalineage.v1.kotlin.inputs.GoogleCloudDatacatalogLineageV1OriginArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Creates a new process.
 * @property attributes Optional. The attributes of the process. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the process). Up to 100 attributes are allowed.
 * @property displayName Optional. A human-readable name you can set to display in a user interface. Must be not longer than 200 characters and only contain UTF-8 letters or numbers, spaces or characters like `_-:&.`
 * @property location
 * @property name Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`
 * @property origin Optional. The origin of this process and its runs and lineage events.
 * @property project
 * @property requestId A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.
 */
public data class ProcessArgs(
    public val attributes: Output>? = null,
    public val displayName: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val origin: Output? = null,
    public val project: Output? = null,
    public val requestId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.datalineage.v1.ProcessArgs =
        com.pulumi.googlenative.datalineage.v1.ProcessArgs.builder()
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .origin(origin?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .project(project?.applyValue({ args0 -> args0 }))
            .requestId(requestId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProcessArgs].
 */
@PulumiTagMarker
public class ProcessArgsBuilder internal constructor() {
    private var attributes: Output>? = null

    private var displayName: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var origin: Output? = null

    private var project: Output? = null

    private var requestId: Output? = null

    /**
     * @param value Optional. The attributes of the process. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the process). Up to 100 attributes are allowed.
     */
    @JvmName("kmulkbuyapgrsxnc")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

    /**
     * @param value Optional. A human-readable name you can set to display in a user interface. Must be not longer than 200 characters and only contain UTF-8 letters or numbers, spaces or characters like `_-:&.`
     */
    @JvmName("dssesurkwqfjgqbq")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value
     */
    @JvmName("mltjsaurhsglqlhc")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`
     */
    @JvmName("dmyyowhharehwcef")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Optional. The origin of this process and its runs and lineage events.
     */
    @JvmName("nfpddtaeiejltyhj")
    public suspend fun origin(`value`: Output) {
        this.origin = value
    }

    /**
     * @param value
     */
    @JvmName("bihjcnbsergvacak")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.
     */
    @JvmName("bhtumxyoqanytxqq")
    public suspend fun requestId(`value`: Output) {
        this.requestId = value
    }

    /**
     * @param value Optional. The attributes of the process. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the process). Up to 100 attributes are allowed.
     */
    @JvmName("hqxglyyjisimcugu")
    public suspend fun attributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param values Optional. The attributes of the process. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the process). Up to 100 attributes are allowed.
     */
    @JvmName("ptfvniiqviixoflj")
    public fun attributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param value Optional. A human-readable name you can set to display in a user interface. Must be not longer than 200 characters and only contain UTF-8 letters or numbers, spaces or characters like `_-:&.`
     */
    @JvmName("dtkorgcqvhmrobti")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value
     */
    @JvmName("qqurteuyfgljpwjg")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`
     */
    @JvmName("gdvmrndlqxfchvyt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Optional. The origin of this process and its runs and lineage events.
     */
    @JvmName("hxodtqwyjdbixyns")
    public suspend fun origin(`value`: GoogleCloudDatacatalogLineageV1OriginArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.origin = mapped
    }

    /**
     * @param argument Optional. The origin of this process and its runs and lineage events.
     */
    @JvmName("ycqehiorgtefcchk")
    public suspend fun origin(argument: suspend GoogleCloudDatacatalogLineageV1OriginArgsBuilder.() -> Unit) {
        val toBeMapped = GoogleCloudDatacatalogLineageV1OriginArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.origin = mapped
    }

    /**
     * @param value
     */
    @JvmName("ramjddevkfglvejt")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.
     */
    @JvmName("tdlakengbhtpjlba")
    public suspend fun requestId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requestId = mapped
    }

    internal fun build(): ProcessArgs = ProcessArgs(
        attributes = attributes,
        displayName = displayName,
        location = location,
        name = name,
        origin = origin,
        project = project,
        requestId = requestId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy