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

com.pulumi.azurenative.cache.kotlin.inputs.DatabasePropertiesGeoReplicationArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.cache.kotlin.inputs

import com.pulumi.azurenative.cache.inputs.DatabasePropertiesGeoReplicationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Optional set of properties to configure geo replication for this database.
 * @property groupNickname Name for the group of linked database resources
 * @property linkedDatabases List of database resources to link with this database
 */
public data class DatabasePropertiesGeoReplicationArgs(
    public val groupNickname: Output? = null,
    public val linkedDatabases: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cache.inputs.DatabasePropertiesGeoReplicationArgs =
        com.pulumi.azurenative.cache.inputs.DatabasePropertiesGeoReplicationArgs.builder()
            .groupNickname(groupNickname?.applyValue({ args0 -> args0 }))
            .linkedDatabases(
                linkedDatabases?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DatabasePropertiesGeoReplicationArgs].
 */
@PulumiTagMarker
public class DatabasePropertiesGeoReplicationArgsBuilder internal constructor() {
    private var groupNickname: Output? = null

    private var linkedDatabases: Output>? = null

    /**
     * @param value Name for the group of linked database resources
     */
    @JvmName("qfceicupimtptwyp")
    public suspend fun groupNickname(`value`: Output) {
        this.groupNickname = value
    }

    /**
     * @param value List of database resources to link with this database
     */
    @JvmName("agqhxtqegnrhmkpy")
    public suspend fun linkedDatabases(`value`: Output>) {
        this.linkedDatabases = value
    }

    @JvmName("edkkwdhxaeaybbbo")
    public suspend fun linkedDatabases(vararg values: Output) {
        this.linkedDatabases = Output.all(values.asList())
    }

    /**
     * @param values List of database resources to link with this database
     */
    @JvmName("cyugrpsfgipjkvkd")
    public suspend fun linkedDatabases(values: List>) {
        this.linkedDatabases = Output.all(values)
    }

    /**
     * @param value Name for the group of linked database resources
     */
    @JvmName("xlesbhyjfxupbaha")
    public suspend fun groupNickname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupNickname = mapped
    }

    /**
     * @param value List of database resources to link with this database
     */
    @JvmName("pydchrhgesabwxlh")
    public suspend fun linkedDatabases(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkedDatabases = mapped
    }

    /**
     * @param argument List of database resources to link with this database
     */
    @JvmName("rdsbynyplnwsdifb")
    public suspend fun linkedDatabases(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LinkedDatabaseArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.linkedDatabases = mapped
    }

    /**
     * @param argument List of database resources to link with this database
     */
    @JvmName("vmlkllgebqcqsqqm")
    public suspend fun linkedDatabases(vararg argument: suspend LinkedDatabaseArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LinkedDatabaseArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.linkedDatabases = mapped
    }

    /**
     * @param argument List of database resources to link with this database
     */
    @JvmName("ulbpdwjhxlislyua")
    public suspend fun linkedDatabases(argument: suspend LinkedDatabaseArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(LinkedDatabaseArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.linkedDatabases = mapped
    }

    /**
     * @param values List of database resources to link with this database
     */
    @JvmName("iroidrnwofpchvls")
    public suspend fun linkedDatabases(vararg values: LinkedDatabaseArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.linkedDatabases = mapped
    }

    internal fun build(): DatabasePropertiesGeoReplicationArgs = DatabasePropertiesGeoReplicationArgs(
        groupNickname = groupNickname,
        linkedDatabases = linkedDatabases,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy