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

com.pulumi.gcp.sql.kotlin.inputs.GetDatabaseInstancesPlainArgs.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.sql.kotlin.inputs

import com.pulumi.gcp.sql.inputs.GetDatabaseInstancesPlainArgs.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 getDatabaseInstances.
 * @property databaseVersion To filter out the Cloud SQL instances which are of the specified database version.
 * @property project The ID of the project in which the resources belong. If it is not provided, the provider project is used.
 * @property region To filter out the Cloud SQL instances which are located in the specified region.
 * @property state To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include `SQL_INSTANCE_STATE_UNSPECIFIED`, `RUNNABLE`, `SUSPENDED`, `PENDING_DELETE`, `PENDING_CREATE`, `MAINTENANCE`, `FAILED`.
 * @property tier To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
 * @property zone To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
 */
public data class GetDatabaseInstancesPlainArgs(
    public val databaseVersion: String? = null,
    public val project: String? = null,
    public val region: String? = null,
    public val state: String? = null,
    public val tier: String? = null,
    public val zone: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.sql.inputs.GetDatabaseInstancesPlainArgs =
        com.pulumi.gcp.sql.inputs.GetDatabaseInstancesPlainArgs.builder()
            .databaseVersion(databaseVersion?.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .region(region?.let({ args0 -> args0 }))
            .state(state?.let({ args0 -> args0 }))
            .tier(tier?.let({ args0 -> args0 }))
            .zone(zone?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetDatabaseInstancesPlainArgs].
 */
@PulumiTagMarker
public class GetDatabaseInstancesPlainArgsBuilder internal constructor() {
    private var databaseVersion: String? = null

    private var project: String? = null

    private var region: String? = null

    private var state: String? = null

    private var tier: String? = null

    private var zone: String? = null

    /**
     * @param value To filter out the Cloud SQL instances which are of the specified database version.
     */
    @JvmName("omsypewxvcbjoten")
    public suspend fun databaseVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.databaseVersion = mapped
    }

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

    /**
     * @param value To filter out the Cloud SQL instances which are located in the specified region.
     */
    @JvmName("yallojpbikqairbr")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.region = mapped
    }

    /**
     * @param value To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include `SQL_INSTANCE_STATE_UNSPECIFIED`, `RUNNABLE`, `SUSPENDED`, `PENDING_DELETE`, `PENDING_CREATE`, `MAINTENANCE`, `FAILED`.
     */
    @JvmName("oglglneqwglyghkw")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.state = mapped
    }

    /**
     * @param value To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
     */
    @JvmName("tvepkmjdqdvtdmqi")
    public suspend fun tier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tier = mapped
    }

    /**
     * @param value To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
     */
    @JvmName("mrhuqvowjorkarqm")
    public suspend fun zone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.zone = mapped
    }

    internal fun build(): GetDatabaseInstancesPlainArgs = GetDatabaseInstancesPlainArgs(
        databaseVersion = databaseVersion,
        project = project,
        region = region,
        state = state,
        tier = tier,
        zone = zone,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy