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

com.pulumi.gcp.databasemigrationservice.kotlin.inputs.ConnectionProfileAlloydbArgs.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.12.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.ConnectionProfileAlloydbArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property clusterId Required. The AlloyDB cluster ID that this connection profile is associated with.
 * @property settings Immutable. Metadata used to create the destination AlloyDB cluster.
 * Structure is documented below.
 */
public data class ConnectionProfileAlloydbArgs(
    public val clusterId: Output,
    public val settings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileAlloydbArgs = com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileAlloydbArgs.builder()
        .clusterId(clusterId.applyValue({ args0 -> args0 }))
        .settings(settings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ConnectionProfileAlloydbArgs].
 */
@PulumiTagMarker
public class ConnectionProfileAlloydbArgsBuilder internal constructor() {
    private var clusterId: Output? = null

    private var settings: Output? = null

    /**
     * @param value Required. The AlloyDB cluster ID that this connection profile is associated with.
     */
    @JvmName("ojfneeliuawcbxbv")
    public suspend fun clusterId(`value`: Output) {
        this.clusterId = value
    }

    /**
     * @param value Immutable. Metadata used to create the destination AlloyDB cluster.
     * Structure is documented below.
     */
    @JvmName("ambktfaifhkfmumx")
    public suspend fun settings(`value`: Output) {
        this.settings = value
    }

    /**
     * @param value Required. The AlloyDB cluster ID that this connection profile is associated with.
     */
    @JvmName("stgqekqjvoojwnry")
    public suspend fun clusterId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusterId = mapped
    }

    /**
     * @param value Immutable. Metadata used to create the destination AlloyDB cluster.
     * Structure is documented below.
     */
    @JvmName("cwtkkakhtcqsgbvm")
    public suspend fun settings(`value`: ConnectionProfileAlloydbSettingsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.settings = mapped
    }

    /**
     * @param argument Immutable. Metadata used to create the destination AlloyDB cluster.
     * Structure is documented below.
     */
    @JvmName("tbdeybgpbjkwfvdt")
    public suspend fun settings(argument: suspend ConnectionProfileAlloydbSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionProfileAlloydbSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.settings = mapped
    }

    internal fun build(): ConnectionProfileAlloydbArgs = ConnectionProfileAlloydbArgs(
        clusterId = clusterId ?: throw PulumiNullFieldException("clusterId"),
        settings = settings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy