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

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

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

package com.pulumi.digitalocean.kotlin.inputs

import com.pulumi.digitalocean.inputs.GetDatabaseReplicaPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getDatabaseReplica.
 * @property clusterId The ID of the original source database cluster.
 * @property name The name for the database replica.
 * @property tags A list of tag names to be applied to the database replica.
 */
public data class GetDatabaseReplicaPlainArgs(
    public val clusterId: String,
    public val name: String,
    public val tags: List? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.GetDatabaseReplicaPlainArgs =
        com.pulumi.digitalocean.inputs.GetDatabaseReplicaPlainArgs.builder()
            .clusterId(clusterId.let({ args0 -> args0 }))
            .name(name.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [GetDatabaseReplicaPlainArgs].
 */
@PulumiTagMarker
public class GetDatabaseReplicaPlainArgsBuilder internal constructor() {
    private var clusterId: String? = null

    private var name: String? = null

    private var tags: List? = null

    /**
     * @param value The ID of the original source database cluster.
     */
    @JvmName("bwitjgueyssefrpq")
    public suspend fun clusterId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.clusterId = mapped
    }

    /**
     * @param value The name for the database replica.
     */
    @JvmName("qvknmmrgoosxnwfl")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value A list of tag names to be applied to the database replica.
     */
    @JvmName("opgogqiwymlercaa")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values A list of tag names to be applied to the database replica.
     */
    @JvmName("ajypkqlymbhongpl")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetDatabaseReplicaPlainArgs = GetDatabaseReplicaPlainArgs(
        clusterId = clusterId ?: throw PulumiNullFieldException("clusterId"),
        name = name ?: throw PulumiNullFieldException("name"),
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy