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

com.pulumi.azure.sql.kotlin.inputs.GetDatabasePlainArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.sql.kotlin.inputs

import com.pulumi.azure.sql.inputs.GetDatabasePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getDatabase.
 * @property name The name of the SQL Database.
 * @property resourceGroupName Specifies the name of the Resource Group where the Azure SQL Database exists.
 * @property serverName The name of the SQL Server.
 * @property tags A mapping of tags assigned to the resource.
 */
public data class GetDatabasePlainArgs(
    public val name: String,
    public val resourceGroupName: String,
    public val serverName: String,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.sql.inputs.GetDatabasePlainArgs =
        com.pulumi.azure.sql.inputs.GetDatabasePlainArgs.builder()
            .name(name.let({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName.let({ args0 -> args0 }))
            .serverName(serverName.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetDatabasePlainArgs].
 */
@PulumiTagMarker
public class GetDatabasePlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var resourceGroupName: String? = null

    private var serverName: String? = null

    private var tags: Map? = null

    /**
     * @param value The name of the SQL Database.
     */
    @JvmName("mcudkatwusfxauux")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group where the Azure SQL Database exists.
     */
    @JvmName("vioyuksaibfaeqns")
    public suspend fun resourceGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The name of the SQL Server.
     */
    @JvmName("osmellphxoulpmrw")
    public suspend fun serverName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.serverName = mapped
    }

    /**
     * @param value A mapping of tags assigned to the resource.
     */
    @JvmName("uvymsbrlijklmixd")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags assigned to the resource.
     */
    @JvmName("acthjsolusokyfml")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetDatabasePlainArgs = GetDatabasePlainArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        resourceGroupName = resourceGroupName ?: throw PulumiNullFieldException("resourceGroupName"),
        serverName = serverName ?: throw PulumiNullFieldException("serverName"),
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy