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

com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceRedshiftStorage0PropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.datazone.kotlin.inputs

import com.pulumi.awsnative.datazone.inputs.DataSourceRedshiftStorage0PropertiesArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The details of the Amazon Redshift cluster source.
 * @property redshiftClusterSource
 */
public data class DataSourceRedshiftStorage0PropertiesArgs(
    public val redshiftClusterSource: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datazone.inputs.DataSourceRedshiftStorage0PropertiesArgs =
        com.pulumi.awsnative.datazone.inputs.DataSourceRedshiftStorage0PropertiesArgs.builder()
            .redshiftClusterSource(
                redshiftClusterSource.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataSourceRedshiftStorage0PropertiesArgs].
 */
@PulumiTagMarker
public class DataSourceRedshiftStorage0PropertiesArgsBuilder internal constructor() {
    private var redshiftClusterSource: Output? = null

    /**
     * @param value
     */
    @JvmName("cvappvonqfptnacf")
    public suspend fun redshiftClusterSource(`value`: Output) {
        this.redshiftClusterSource = value
    }

    /**
     * @param value
     */
    @JvmName("ucfumtmmikqfhfbf")
    public suspend fun redshiftClusterSource(`value`: DataSourceRedshiftClusterStorageArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.redshiftClusterSource = mapped
    }

    /**
     * @param argument
     */
    @JvmName("cwnybgdktwulgypt")
    public suspend fun redshiftClusterSource(argument: suspend DataSourceRedshiftClusterStorageArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceRedshiftClusterStorageArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.redshiftClusterSource = mapped
    }

    internal fun build(): DataSourceRedshiftStorage0PropertiesArgs =
        DataSourceRedshiftStorage0PropertiesArgs(
            redshiftClusterSource = redshiftClusterSource ?: throw
                PulumiNullFieldException("redshiftClusterSource"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy