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

com.pulumi.digitalocean.kotlin.inputs.GetRegionPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.digitalocean.inputs.GetRegionPlainArgs.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

/**
 * A collection of arguments for invoking getRegion.
 * @property slug A human-readable string that is used as a unique identifier for each region.
 */
public data class GetRegionPlainArgs(
    public val slug: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.GetRegionPlainArgs =
        com.pulumi.digitalocean.inputs.GetRegionPlainArgs.builder()
            .slug(slug.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRegionPlainArgs].
 */
@PulumiTagMarker
public class GetRegionPlainArgsBuilder internal constructor() {
    private var slug: String? = null

    /**
     * @param value A human-readable string that is used as a unique identifier for each region.
     */
    @JvmName("cgsbopbocyoumvqp")
    public suspend fun slug(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.slug = mapped
    }

    internal fun build(): GetRegionPlainArgs = GetRegionPlainArgs(
        slug = slug ?: throw PulumiNullFieldException("slug"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy