commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.SourceDataSetting.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Defines settings for a source data provider for a data migration.
*/
public class SourceDataSetting private constructor(builder: Builder) {
/**
* The change data capture (CDC) start position for the source data provider.
*/
public val cdcStartPosition: kotlin.String? = builder.cdcStartPosition
/**
* The change data capture (CDC) start time for the source data provider.
*/
public val cdcStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.cdcStartTime
/**
* The change data capture (CDC) stop time for the source data provider.
*/
public val cdcStopTime: aws.smithy.kotlin.runtime.time.Instant? = builder.cdcStopTime
/**
* The name of the replication slot on the source data provider. This attribute is only valid for a PostgreSQL or Aurora PostgreSQL source.
*/
public val slotName: kotlin.String? = builder.slotName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.SourceDataSetting = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SourceDataSetting(")
append("cdcStartPosition=$cdcStartPosition,")
append("cdcStartTime=$cdcStartTime,")
append("cdcStopTime=$cdcStopTime,")
append("slotName=$slotName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cdcStartPosition?.hashCode() ?: 0
result = 31 * result + (cdcStartTime?.hashCode() ?: 0)
result = 31 * result + (cdcStopTime?.hashCode() ?: 0)
result = 31 * result + (slotName?.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 SourceDataSetting
if (cdcStartPosition != other.cdcStartPosition) return false
if (cdcStartTime != other.cdcStartTime) return false
if (cdcStopTime != other.cdcStopTime) return false
if (slotName != other.slotName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.SourceDataSetting = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The change data capture (CDC) start position for the source data provider.
*/
public var cdcStartPosition: kotlin.String? = null
/**
* The change data capture (CDC) start time for the source data provider.
*/
public var cdcStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The change data capture (CDC) stop time for the source data provider.
*/
public var cdcStopTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the replication slot on the source data provider. This attribute is only valid for a PostgreSQL or Aurora PostgreSQL source.
*/
public var slotName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.SourceDataSetting) : this() {
this.cdcStartPosition = x.cdcStartPosition
this.cdcStartTime = x.cdcStartTime
this.cdcStopTime = x.cdcStopTime
this.slotName = x.slotName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.SourceDataSetting = SourceDataSetting(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy