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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Provides information that defines an Amazon Redshift data provider.
 */
public class RedshiftDataProviderSettings private constructor(builder: Builder) {
    /**
     * The database name on the Amazon Redshift data provider.
     */
    public val databaseName: kotlin.String? = builder.databaseName
    /**
     * The port value for the Amazon Redshift data provider.
     */
    public val port: kotlin.Int? = builder.port
    /**
     * The name of the Amazon Redshift server.
     */
    public val serverName: kotlin.String? = builder.serverName

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

    override fun toString(): kotlin.String = buildString {
        append("RedshiftDataProviderSettings(")
        append("databaseName=$databaseName,")
        append("port=$port,")
        append("serverName=$serverName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = databaseName?.hashCode() ?: 0
        result = 31 * result + (port ?: 0)
        result = 31 * result + (serverName?.hashCode() ?: 0)
        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 RedshiftDataProviderSettings

        if (databaseName != other.databaseName) return false
        if (port != other.port) return false
        if (serverName != other.serverName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The database name on the Amazon Redshift data provider.
         */
        public var databaseName: kotlin.String? = null
        /**
         * The port value for the Amazon Redshift data provider.
         */
        public var port: kotlin.Int? = null
        /**
         * The name of the Amazon Redshift server.
         */
        public var serverName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.RedshiftDataProviderSettings) : this() {
            this.databaseName = x.databaseName
            this.port = x.port
            this.serverName = x.serverName
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy