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

com.pulumi.gcp.notebooks.kotlin.LocationArgs.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.notebooks.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.notebooks.LocationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Represents a Location resource.
 * ## Import
 * Location can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{name}}`
 * * `{{project}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, Location can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:notebooks/location:Location default projects/{{project}}/locations/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:notebooks/location:Location default {{project}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:notebooks/location:Location default {{name}}
 * ```
 * @property name Name of the Location resource.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 */
public data class LocationArgs(
    public val name: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.notebooks.LocationArgs =
        com.pulumi.gcp.notebooks.LocationArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LocationArgs].
 */
@PulumiTagMarker
public class LocationArgsBuilder internal constructor() {
    private var name: Output? = null

    private var project: Output? = null

    /**
     * @param value Name of the Location resource.
     */
    @JvmName("anksanusvjpwfxwh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("narwuocjwkfhcxrg")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Name of the Location resource.
     */
    @JvmName("alfldvkmkmhumfxo")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("qnqndhregvsdjxnk")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): LocationArgs = LocationArgs(
        name = name,
        project = project,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy