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

com.pulumi.googlenative.clouddeploy.v1.kotlin.inputs.CloudRunLocationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.clouddeploy.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.clouddeploy.v1.inputs.CloudRunLocationArgs.builder
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

/**
 * Information specifying where to deploy a Cloud Run Service.
 * @property location The location for the Cloud Run Service. Format must be `projects/{project}/locations/{location}`.
 */
public data class CloudRunLocationArgs(
    public val location: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.clouddeploy.v1.inputs.CloudRunLocationArgs =
        com.pulumi.googlenative.clouddeploy.v1.inputs.CloudRunLocationArgs.builder()
            .location(location.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CloudRunLocationArgs].
 */
@PulumiTagMarker
public class CloudRunLocationArgsBuilder internal constructor() {
    private var location: Output? = null

    /**
     * @param value The location for the Cloud Run Service. Format must be `projects/{project}/locations/{location}`.
     */
    @JvmName("abwaeoncwheshqyg")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The location for the Cloud Run Service. Format must be `projects/{project}/locations/{location}`.
     */
    @JvmName("vmjcqlugtoauffct")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.location = mapped
    }

    internal fun build(): CloudRunLocationArgs = CloudRunLocationArgs(
        location = location ?: throw PulumiNullFieldException("location"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy