commonMain.aws.sdk.kotlin.services.firehose.model.DatabaseSourceDescription.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public class DatabaseSourceDescription private constructor(builder: Builder) {
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val columns: aws.sdk.kotlin.services.firehose.model.DatabaseColumnList? = builder.columns
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val databaseSourceAuthenticationConfiguration: aws.sdk.kotlin.services.firehose.model.DatabaseSourceAuthenticationConfiguration? = builder.databaseSourceAuthenticationConfiguration
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val databaseSourceVpcConfiguration: aws.sdk.kotlin.services.firehose.model.DatabaseSourceVpcConfiguration? = builder.databaseSourceVpcConfiguration
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val databases: aws.sdk.kotlin.services.firehose.model.DatabaseList? = builder.databases
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val endpoint: kotlin.String? = builder.endpoint
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val port: kotlin.Int? = builder.port
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val snapshotInfo: List? = builder.snapshotInfo
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val snapshotWatermarkTable: kotlin.String? = builder.snapshotWatermarkTable
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val sslMode: aws.sdk.kotlin.services.firehose.model.SslMode? = builder.sslMode
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val surrogateKeys: List? = builder.surrogateKeys
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val tables: aws.sdk.kotlin.services.firehose.model.DatabaseTableList? = builder.tables
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public val type: aws.sdk.kotlin.services.firehose.model.DatabaseType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.DatabaseSourceDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DatabaseSourceDescription(")
append("columns=$columns,")
append("databaseSourceAuthenticationConfiguration=$databaseSourceAuthenticationConfiguration,")
append("databaseSourceVpcConfiguration=$databaseSourceVpcConfiguration,")
append("databases=$databases,")
append("endpoint=$endpoint,")
append("port=$port,")
append("snapshotInfo=$snapshotInfo,")
append("snapshotWatermarkTable=$snapshotWatermarkTable,")
append("sslMode=$sslMode,")
append("surrogateKeys=$surrogateKeys,")
append("tables=$tables,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columns?.hashCode() ?: 0
result = 31 * result + (databaseSourceAuthenticationConfiguration?.hashCode() ?: 0)
result = 31 * result + (databaseSourceVpcConfiguration?.hashCode() ?: 0)
result = 31 * result + (databases?.hashCode() ?: 0)
result = 31 * result + (endpoint?.hashCode() ?: 0)
result = 31 * result + (port ?: 0)
result = 31 * result + (snapshotInfo?.hashCode() ?: 0)
result = 31 * result + (snapshotWatermarkTable?.hashCode() ?: 0)
result = 31 * result + (sslMode?.hashCode() ?: 0)
result = 31 * result + (surrogateKeys?.hashCode() ?: 0)
result = 31 * result + (tables?.hashCode() ?: 0)
result = 31 * result + (type?.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 DatabaseSourceDescription
if (columns != other.columns) return false
if (databaseSourceAuthenticationConfiguration != other.databaseSourceAuthenticationConfiguration) return false
if (databaseSourceVpcConfiguration != other.databaseSourceVpcConfiguration) return false
if (databases != other.databases) return false
if (endpoint != other.endpoint) return false
if (port != other.port) return false
if (snapshotInfo != other.snapshotInfo) return false
if (snapshotWatermarkTable != other.snapshotWatermarkTable) return false
if (sslMode != other.sslMode) return false
if (surrogateKeys != other.surrogateKeys) return false
if (tables != other.tables) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.DatabaseSourceDescription = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var columns: aws.sdk.kotlin.services.firehose.model.DatabaseColumnList? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var databaseSourceAuthenticationConfiguration: aws.sdk.kotlin.services.firehose.model.DatabaseSourceAuthenticationConfiguration? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var databaseSourceVpcConfiguration: aws.sdk.kotlin.services.firehose.model.DatabaseSourceVpcConfiguration? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var databases: aws.sdk.kotlin.services.firehose.model.DatabaseList? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var endpoint: kotlin.String? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var port: kotlin.Int? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var snapshotInfo: List? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var snapshotWatermarkTable: kotlin.String? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var sslMode: aws.sdk.kotlin.services.firehose.model.SslMode? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var surrogateKeys: List? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var tables: aws.sdk.kotlin.services.firehose.model.DatabaseTableList? = null
/**
* Amazon Data Firehose is in preview release and is subject to change.
*/
public var type: aws.sdk.kotlin.services.firehose.model.DatabaseType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.firehose.model.DatabaseSourceDescription) : this() {
this.columns = x.columns
this.databaseSourceAuthenticationConfiguration = x.databaseSourceAuthenticationConfiguration
this.databaseSourceVpcConfiguration = x.databaseSourceVpcConfiguration
this.databases = x.databases
this.endpoint = x.endpoint
this.port = x.port
this.snapshotInfo = x.snapshotInfo
this.snapshotWatermarkTable = x.snapshotWatermarkTable
this.sslMode = x.sslMode
this.surrogateKeys = x.surrogateKeys
this.tables = x.tables
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.firehose.model.DatabaseSourceDescription = DatabaseSourceDescription(this)
/**
* construct an [aws.sdk.kotlin.services.firehose.model.DatabaseColumnList] inside the given [block]
*/
public fun columns(block: aws.sdk.kotlin.services.firehose.model.DatabaseColumnList.Builder.() -> kotlin.Unit) {
this.columns = aws.sdk.kotlin.services.firehose.model.DatabaseColumnList.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.DatabaseSourceAuthenticationConfiguration] inside the given [block]
*/
public fun databaseSourceAuthenticationConfiguration(block: aws.sdk.kotlin.services.firehose.model.DatabaseSourceAuthenticationConfiguration.Builder.() -> kotlin.Unit) {
this.databaseSourceAuthenticationConfiguration = aws.sdk.kotlin.services.firehose.model.DatabaseSourceAuthenticationConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.DatabaseSourceVpcConfiguration] inside the given [block]
*/
public fun databaseSourceVpcConfiguration(block: aws.sdk.kotlin.services.firehose.model.DatabaseSourceVpcConfiguration.Builder.() -> kotlin.Unit) {
this.databaseSourceVpcConfiguration = aws.sdk.kotlin.services.firehose.model.DatabaseSourceVpcConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.DatabaseList] inside the given [block]
*/
public fun databases(block: aws.sdk.kotlin.services.firehose.model.DatabaseList.Builder.() -> kotlin.Unit) {
this.databases = aws.sdk.kotlin.services.firehose.model.DatabaseList.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.firehose.model.DatabaseTableList] inside the given [block]
*/
public fun tables(block: aws.sdk.kotlin.services.firehose.model.DatabaseTableList.Builder.() -> kotlin.Unit) {
this.tables = aws.sdk.kotlin.services.firehose.model.DatabaseTableList.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}