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

com.pulumi.gcp.databasemigrationservice.kotlin.inputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs.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.databasemigrationservice.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property databaseFlags Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
 * @property id The database username.
 * @property labels Labels for the AlloyDB primary instance created by DMS.
 * @property machineConfig Configuration for the machines that host the underlying database engine.
 * Structure is documented below.
 * @property privateIp (Output)
 * Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.
 */
public data class ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs(
    public val databaseFlags: Output>? = null,
    public val id: Output,
    public val labels: Output>? = null,
    public val machineConfig: Output,
    public val privateIp: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs =
        com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs.builder()
            .databaseFlags(
                databaseFlags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .id(id.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .machineConfig(machineConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .privateIp(privateIp?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs].
 */
@PulumiTagMarker
public class ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgsBuilder internal constructor() {
    private var databaseFlags: Output>? = null

    private var id: Output? = null

    private var labels: Output>? = null

    private var machineConfig:
        Output? = null

    private var privateIp: Output? = null

    /**
     * @param value Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
     */
    @JvmName("rmjqdhwbmgmwfrhr")
    public suspend fun databaseFlags(`value`: Output>) {
        this.databaseFlags = value
    }

    /**
     * @param value The database username.
     */
    @JvmName("qclgenawhkqyomti")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Labels for the AlloyDB primary instance created by DMS.
     */
    @JvmName("pjkfeldqrlkbkmjj")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Configuration for the machines that host the underlying database engine.
     * Structure is documented below.
     */
    @JvmName("spfrfdlbpsxylcfx")
    public suspend fun machineConfig(`value`: Output) {
        this.machineConfig = value
    }

    /**
     * @param value (Output)
     * Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.
     */
    @JvmName("jodmbghiugjuiphx")
    public suspend fun privateIp(`value`: Output) {
        this.privateIp = value
    }

    /**
     * @param value Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
     */
    @JvmName("sucngxlfjrqlfyce")
    public suspend fun databaseFlags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseFlags = mapped
    }

    /**
     * @param values Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.
     */
    @JvmName("beetidkfkuwkrvxa")
    public fun databaseFlags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseFlags = mapped
    }

    /**
     * @param value The database username.
     */
    @JvmName("nadbcfvpohhlnxsa")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Labels for the AlloyDB primary instance created by DMS.
     */
    @JvmName("wkofvcwxcjfpxfum")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Labels for the AlloyDB primary instance created by DMS.
     */
    @JvmName("gwfpyxwhocabhkil")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Configuration for the machines that host the underlying database engine.
     * Structure is documented below.
     */
    @JvmName("bxdeqqfswcvaenio")
    public suspend fun machineConfig(`value`: ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.machineConfig = mapped
    }

    /**
     * @param argument Configuration for the machines that host the underlying database engine.
     * Structure is documented below.
     */
    @JvmName("oraimnqutfvwelcu")
    public suspend fun machineConfig(argument: suspend ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.machineConfig = mapped
    }

    /**
     * @param value (Output)
     * Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.
     */
    @JvmName("slbmnsknrdrpwqic")
    public suspend fun privateIp(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIp = mapped
    }

    internal fun build(): ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs =
        ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs(
            databaseFlags = databaseFlags,
            id = id ?: throw PulumiNullFieldException("id"),
            labels = labels,
            machineConfig = machineConfig ?: throw PulumiNullFieldException("machineConfig"),
            privateIp = privateIp,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy