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

com.pulumi.gcp.oracledatabase.kotlin.inputs.AutonomousDatabasePropertiesConnectionStringArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.oracledatabase.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.oracledatabase.inputs.AutonomousDatabasePropertiesConnectionStringArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allConnectionStrings A list of all connection strings that can be used to connect to the
 * Autonomous Database.
 * @property dedicated The database service provides the least level of resources to each SQL
 * statement, but supports the most number of concurrent SQL statements.
 * @property high The database service provides the highest level of resources to each SQL
 * statement.
 * @property low The database service provides the least level of resources to each SQL
 * statement.
 * @property medium The database service provides a lower level of resources to each SQL
 * statement.
 * @property profiles A list of connection string profiles to allow clients to group, filter, and
 * select values based on the structured metadata.
 */
public data class AutonomousDatabasePropertiesConnectionStringArgs(
    public val allConnectionStrings: Output>? = null,
    public val dedicated: Output? = null,
    public val high: Output? = null,
    public val low: Output? = null,
    public val medium: Output? = null,
    public val profiles: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.oracledatabase.inputs.AutonomousDatabasePropertiesConnectionStringArgs =
        com.pulumi.gcp.oracledatabase.inputs.AutonomousDatabasePropertiesConnectionStringArgs.builder()
            .allConnectionStrings(
                allConnectionStrings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .dedicated(dedicated?.applyValue({ args0 -> args0 }))
            .high(high?.applyValue({ args0 -> args0 }))
            .low(low?.applyValue({ args0 -> args0 }))
            .medium(medium?.applyValue({ args0 -> args0 }))
            .profiles(
                profiles?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var dedicated: Output? = null

    private var high: Output? = null

    private var low: Output? = null

    private var medium: Output? = null

    private var profiles: Output>? =
        null

    /**
     * @param value A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("jxmsveqpueavygbr")
    public suspend fun allConnectionStrings(`value`: Output>) {
        this.allConnectionStrings = value
    }

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

    /**
     * @param values A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("lgvswufncvcxsqwm")
    public suspend fun allConnectionStrings(values: List>) {
        this.allConnectionStrings = Output.all(values)
    }

    /**
     * @param value The database service provides the least level of resources to each SQL
     * statement, but supports the most number of concurrent SQL statements.
     */
    @JvmName("brfbdteppmfgexvf")
    public suspend fun dedicated(`value`: Output) {
        this.dedicated = value
    }

    /**
     * @param value The database service provides the highest level of resources to each SQL
     * statement.
     */
    @JvmName("sdcvqeljgqsjjgdl")
    public suspend fun high(`value`: Output) {
        this.high = value
    }

    /**
     * @param value The database service provides the least level of resources to each SQL
     * statement.
     */
    @JvmName("pyppmivkibvvvyyr")
    public suspend fun low(`value`: Output) {
        this.low = value
    }

    /**
     * @param value The database service provides a lower level of resources to each SQL
     * statement.
     */
    @JvmName("fgmlpmufqadcdkkd")
    public suspend fun medium(`value`: Output) {
        this.medium = value
    }

    /**
     * @param value A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("dgkbdgodeixiaowe")
    public suspend fun profiles(`value`: Output>) {
        this.profiles = value
    }

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

    /**
     * @param values A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("yplvfjogegqpmgen")
    public suspend fun profiles(values: List>) {
        this.profiles = Output.all(values)
    }

    /**
     * @param value A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("uiejmcmmpfscffdg")
    public suspend fun allConnectionStrings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allConnectionStrings = mapped
    }

    /**
     * @param argument A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("kshcnocdrisknrga")
    public suspend fun allConnectionStrings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesConnectionStringAllConnectionStringArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allConnectionStrings = mapped
    }

    /**
     * @param argument A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("ucgsdhkkbfqlkmol")
    public suspend fun allConnectionStrings(vararg argument: suspend AutonomousDatabasePropertiesConnectionStringAllConnectionStringArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesConnectionStringAllConnectionStringArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allConnectionStrings = mapped
    }

    /**
     * @param argument A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("fqmncxodnfxwphey")
    public suspend fun allConnectionStrings(argument: suspend AutonomousDatabasePropertiesConnectionStringAllConnectionStringArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AutonomousDatabasePropertiesConnectionStringAllConnectionStringArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.allConnectionStrings = mapped
    }

    /**
     * @param values A list of all connection strings that can be used to connect to the
     * Autonomous Database.
     */
    @JvmName("boexdjvftujskahg")
    public suspend fun allConnectionStrings(vararg values: AutonomousDatabasePropertiesConnectionStringAllConnectionStringArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allConnectionStrings = mapped
    }

    /**
     * @param value The database service provides the least level of resources to each SQL
     * statement, but supports the most number of concurrent SQL statements.
     */
    @JvmName("dpotgtebbesyeefj")
    public suspend fun dedicated(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dedicated = mapped
    }

    /**
     * @param value The database service provides the highest level of resources to each SQL
     * statement.
     */
    @JvmName("ubovrujryogwmgqa")
    public suspend fun high(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.high = mapped
    }

    /**
     * @param value The database service provides the least level of resources to each SQL
     * statement.
     */
    @JvmName("qrkcmwdidpferqrr")
    public suspend fun low(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.low = mapped
    }

    /**
     * @param value The database service provides a lower level of resources to each SQL
     * statement.
     */
    @JvmName("odvhngjsinuqwclc")
    public suspend fun medium(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.medium = mapped
    }

    /**
     * @param value A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("ixqtcrinypooxxuo")
    public suspend fun profiles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profiles = mapped
    }

    /**
     * @param argument A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("sqxohqfwwiyrafue")
    public suspend fun profiles(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesConnectionStringProfileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.profiles = mapped
    }

    /**
     * @param argument A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("lqbwmntqtbgvdpnf")
    public suspend fun profiles(vararg argument: suspend AutonomousDatabasePropertiesConnectionStringProfileArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AutonomousDatabasePropertiesConnectionStringProfileArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.profiles = mapped
    }

    /**
     * @param argument A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("mvwwwtavcxtvijyc")
    public suspend fun profiles(argument: suspend AutonomousDatabasePropertiesConnectionStringProfileArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                AutonomousDatabasePropertiesConnectionStringProfileArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.profiles = mapped
    }

    /**
     * @param values A list of connection string profiles to allow clients to group, filter, and
     * select values based on the structured metadata.
     */
    @JvmName("wxwjclttubggpmxw")
    public suspend fun profiles(vararg values: AutonomousDatabasePropertiesConnectionStringProfileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.profiles = mapped
    }

    internal fun build(): AutonomousDatabasePropertiesConnectionStringArgs =
        AutonomousDatabasePropertiesConnectionStringArgs(
            allConnectionStrings = allConnectionStrings,
            dedicated = dedicated,
            high = high,
            low = low,
            medium = medium,
            profiles = profiles,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy