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

com.pulumi.gcp.databasemigrationservice.kotlin.inputs.ConnectionProfileCloudsqlArgs.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.ConnectionProfileCloudsqlArgs.builder
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.jvm.JvmName

/**
 *
 * @property cloudSqlId (Output)
 * Output only. The Cloud SQL instance ID that this connection profile is associated with.
 * @property privateIp (Output)
 * Output only. The Cloud SQL database instance's private IP.
 * @property publicIp (Output)
 * Output only. The Cloud SQL database instance's public IP.
 * @property settings Immutable. Metadata used to create the destination Cloud SQL database.
 * Structure is documented below.
 */
public data class ConnectionProfileCloudsqlArgs(
    public val cloudSqlId: Output? = null,
    public val privateIp: Output? = null,
    public val publicIp: Output? = null,
    public val settings: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileCloudsqlArgs =
        com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileCloudsqlArgs.builder()
            .cloudSqlId(cloudSqlId?.applyValue({ args0 -> args0 }))
            .privateIp(privateIp?.applyValue({ args0 -> args0 }))
            .publicIp(publicIp?.applyValue({ args0 -> args0 }))
            .settings(settings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ConnectionProfileCloudsqlArgs].
 */
@PulumiTagMarker
public class ConnectionProfileCloudsqlArgsBuilder internal constructor() {
    private var cloudSqlId: Output? = null

    private var privateIp: Output? = null

    private var publicIp: Output? = null

    private var settings: Output? = null

    /**
     * @param value (Output)
     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
     */
    @JvmName("dncimcsjqrdkcgre")
    public suspend fun cloudSqlId(`value`: Output) {
        this.cloudSqlId = value
    }

    /**
     * @param value (Output)
     * Output only. The Cloud SQL database instance's private IP.
     */
    @JvmName("fmoqutpaoxldfalg")
    public suspend fun privateIp(`value`: Output) {
        this.privateIp = value
    }

    /**
     * @param value (Output)
     * Output only. The Cloud SQL database instance's public IP.
     */
    @JvmName("jbrevawaxgxrinup")
    public suspend fun publicIp(`value`: Output) {
        this.publicIp = value
    }

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

    /**
     * @param value (Output)
     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
     */
    @JvmName("ffdxnvulvlleuvem")
    public suspend fun cloudSqlId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudSqlId = mapped
    }

    /**
     * @param value (Output)
     * Output only. The Cloud SQL database instance's private IP.
     */
    @JvmName("yramrirahuoyjniv")
    public suspend fun privateIp(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIp = mapped
    }

    /**
     * @param value (Output)
     * Output only. The Cloud SQL database instance's public IP.
     */
    @JvmName("rkringmtvumxfdqn")
    public suspend fun publicIp(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIp = mapped
    }

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

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

    internal fun build(): ConnectionProfileCloudsqlArgs = ConnectionProfileCloudsqlArgs(
        cloudSqlId = cloudSqlId,
        privateIp = privateIp,
        publicIp = publicIp,
        settings = settings,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy