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

com.pulumi.aws.quicksight.kotlin.inputs.DataSourceParametersRedshiftArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.quicksight.kotlin.inputs

import com.pulumi.aws.quicksight.inputs.DataSourceParametersRedshiftArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property clusterId The ID of the cluster to which to connect.
 * @property database The database to which to connect.
 * @property host The host to which to connect.
 * @property port The port to which to connect.
 */
public data class DataSourceParametersRedshiftArgs(
    public val clusterId: Output? = null,
    public val database: Output,
    public val host: Output? = null,
    public val port: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.quicksight.inputs.DataSourceParametersRedshiftArgs =
        com.pulumi.aws.quicksight.inputs.DataSourceParametersRedshiftArgs.builder()
            .clusterId(clusterId?.applyValue({ args0 -> args0 }))
            .database(database.applyValue({ args0 -> args0 }))
            .host(host?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 })).build()
}

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

    private var database: Output? = null

    private var host: Output? = null

    private var port: Output? = null

    /**
     * @param value The ID of the cluster to which to connect.
     */
    @JvmName("ospksquprlmxkouq")
    public suspend fun clusterId(`value`: Output) {
        this.clusterId = value
    }

    /**
     * @param value The database to which to connect.
     */
    @JvmName("qgqaqjrlfmpnoiwp")
    public suspend fun database(`value`: Output) {
        this.database = value
    }

    /**
     * @param value The host to which to connect.
     */
    @JvmName("qqbhvktsmbbtvqte")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value The port to which to connect.
     */
    @JvmName("qebatiswccgewyyl")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The ID of the cluster to which to connect.
     */
    @JvmName("lfxpwtmmrobxqkeq")
    public suspend fun clusterId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterId = mapped
    }

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

    /**
     * @param value The host to which to connect.
     */
    @JvmName("kfakanfbnohdcyfn")
    public suspend fun host(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param value The port to which to connect.
     */
    @JvmName("kscrpkqagkbogeix")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): DataSourceParametersRedshiftArgs = DataSourceParametersRedshiftArgs(
        clusterId = clusterId,
        database = database ?: throw PulumiNullFieldException("database"),
        host = host,
        port = port,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy