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

com.pulumi.gcp.compute.kotlin.inputs.GetZonesPlainArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.gcp.compute.inputs.GetZonesPlainArgs.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 getZones.
 * @property project Project from which to list available zones. Defaults to project declared in the provider.
 * @property region Region from which to list available zones. Defaults to region declared in the provider.
 * @property status Allows to filter list of zones based on their current status. Status can be either `UP` or `DOWN`.
 * Defaults to no filtering (all available zones - both `UP` and `DOWN`).
 */
public data class GetZonesPlainArgs(
    public val project: String? = null,
    public val region: String? = null,
    public val status: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.GetZonesPlainArgs =
        com.pulumi.gcp.compute.inputs.GetZonesPlainArgs.builder()
            .project(project?.let({ args0 -> args0 }))
            .region(region?.let({ args0 -> args0 }))
            .status(status?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetZonesPlainArgs].
 */
@PulumiTagMarker
public class GetZonesPlainArgsBuilder internal constructor() {
    private var project: String? = null

    private var region: String? = null

    private var status: String? = null

    /**
     * @param value Project from which to list available zones. Defaults to project declared in the provider.
     */
    @JvmName("dqqvsrfocmspxedx")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value Region from which to list available zones. Defaults to region declared in the provider.
     */
    @JvmName("obrvqgeajwafnpdj")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.region = mapped
    }

    /**
     * @param value Allows to filter list of zones based on their current status. Status can be either `UP` or `DOWN`.
     * Defaults to no filtering (all available zones - both `UP` and `DOWN`).
     */
    @JvmName("xipkcqtnxxttsifk")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.status = mapped
    }

    internal fun build(): GetZonesPlainArgs = GetZonesPlainArgs(
        project = project,
        region = region,
        status = status,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy