com.pulumi.gcp.compute.kotlin.inputs.GetRegionsPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.gcp.compute.inputs.GetRegionsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getRegions.
* @property project Project from which to list available regions. Defaults to project declared in the provider.
* @property status Allows to filter list of regions based on their current status. Status can be either `UP` or `DOWN`.
* Defaults to no filtering (all available regions - both `UP` and `DOWN`).
*/
public data class GetRegionsPlainArgs(
public val project: String? = null,
public val status: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.GetRegionsPlainArgs =
com.pulumi.gcp.compute.inputs.GetRegionsPlainArgs.builder()
.project(project?.let({ args0 -> args0 }))
.status(status?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetRegionsPlainArgs].
*/
@PulumiTagMarker
public class GetRegionsPlainArgsBuilder internal constructor() {
private var project: String? = null
private var status: String? = null
/**
* @param value Project from which to list available regions. Defaults to project declared in the provider.
*/
@JvmName("kvqrxugcwwmsmelc")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.project = mapped
}
/**
* @param value Allows to filter list of regions based on their current status. Status can be either `UP` or `DOWN`.
* Defaults to no filtering (all available regions - both `UP` and `DOWN`).
*/
@JvmName("nblyhpccfrkmevtt")
public suspend fun status(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.status = mapped
}
internal fun build(): GetRegionsPlainArgs = GetRegionsPlainArgs(
project = project,
status = status,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy