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

commonMain.aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationInput.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The configuration details of the Amazon Redshift data source.
 */
public class RedshiftRunConfigurationInput private constructor(builder: Builder) {
    /**
     * The data access role included in the configuration details of the Amazon Redshift data source.
     */
    public val dataAccessRole: kotlin.String? = builder.dataAccessRole
    /**
     * The details of the credentials required to access an Amazon Redshift cluster.
     */
    public val redshiftCredentialConfiguration: aws.sdk.kotlin.services.datazone.model.RedshiftCredentialConfiguration? = builder.redshiftCredentialConfiguration
    /**
     * The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.
     */
    public val redshiftStorage: aws.sdk.kotlin.services.datazone.model.RedshiftStorage? = builder.redshiftStorage
    /**
     * The relational filger configurations included in the configuration details of the Amazon Redshift data source.
     */
    public val relationalFilterConfigurations: List = requireNotNull(builder.relationalFilterConfigurations) { "A non-null value must be provided for relationalFilterConfigurations" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationInput = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("RedshiftRunConfigurationInput(")
        append("dataAccessRole=$dataAccessRole,")
        append("redshiftCredentialConfiguration=$redshiftCredentialConfiguration,")
        append("redshiftStorage=$redshiftStorage,")
        append("relationalFilterConfigurations=$relationalFilterConfigurations")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataAccessRole?.hashCode() ?: 0
        result = 31 * result + (redshiftCredentialConfiguration?.hashCode() ?: 0)
        result = 31 * result + (redshiftStorage?.hashCode() ?: 0)
        result = 31 * result + (relationalFilterConfigurations.hashCode())
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as RedshiftRunConfigurationInput

        if (dataAccessRole != other.dataAccessRole) return false
        if (redshiftCredentialConfiguration != other.redshiftCredentialConfiguration) return false
        if (redshiftStorage != other.redshiftStorage) return false
        if (relationalFilterConfigurations != other.relationalFilterConfigurations) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationInput = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The data access role included in the configuration details of the Amazon Redshift data source.
         */
        public var dataAccessRole: kotlin.String? = null
        /**
         * The details of the credentials required to access an Amazon Redshift cluster.
         */
        public var redshiftCredentialConfiguration: aws.sdk.kotlin.services.datazone.model.RedshiftCredentialConfiguration? = null
        /**
         * The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.
         */
        public var redshiftStorage: aws.sdk.kotlin.services.datazone.model.RedshiftStorage? = null
        /**
         * The relational filger configurations included in the configuration details of the Amazon Redshift data source.
         */
        public var relationalFilterConfigurations: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationInput) : this() {
            this.dataAccessRole = x.dataAccessRole
            this.redshiftCredentialConfiguration = x.redshiftCredentialConfiguration
            this.redshiftStorage = x.redshiftStorage
            this.relationalFilterConfigurations = x.relationalFilterConfigurations
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.RedshiftRunConfigurationInput = RedshiftRunConfigurationInput(this)

        /**
         * construct an [aws.sdk.kotlin.services.datazone.model.RedshiftCredentialConfiguration] inside the given [block]
         */
        public fun redshiftCredentialConfiguration(block: aws.sdk.kotlin.services.datazone.model.RedshiftCredentialConfiguration.Builder.() -> kotlin.Unit) {
            this.redshiftCredentialConfiguration = aws.sdk.kotlin.services.datazone.model.RedshiftCredentialConfiguration.invoke(block)
        }

        internal fun correctErrors(): Builder {
            if (relationalFilterConfigurations == null) relationalFilterConfigurations = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy