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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReloadReplicationTablesRequest.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

/**
 *
 */
public class ReloadReplicationTablesRequest private constructor(builder: Builder) {
    /**
     * Options for reload. Specify `data-reload` to reload the data and re-validate it if validation is enabled. Specify `validate-only` to re-validate the table. This option applies only when validation is enabled for the replication.
     */
    public val reloadOption: aws.sdk.kotlin.services.databasemigrationservice.model.ReloadOptionValue? = builder.reloadOption
    /**
     * The Amazon Resource Name of the replication config for which to reload tables.
     */
    public val replicationConfigArn: kotlin.String? = builder.replicationConfigArn
    /**
     * The list of tables to reload.
     */
    public val tablesToReload: List? = builder.tablesToReload

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

    override fun toString(): kotlin.String = buildString {
        append("ReloadReplicationTablesRequest(")
        append("reloadOption=$reloadOption,")
        append("replicationConfigArn=$replicationConfigArn,")
        append("tablesToReload=$tablesToReload")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = reloadOption?.hashCode() ?: 0
        result = 31 * result + (replicationConfigArn?.hashCode() ?: 0)
        result = 31 * result + (tablesToReload?.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 ReloadReplicationTablesRequest

        if (reloadOption != other.reloadOption) return false
        if (replicationConfigArn != other.replicationConfigArn) return false
        if (tablesToReload != other.tablesToReload) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Options for reload. Specify `data-reload` to reload the data and re-validate it if validation is enabled. Specify `validate-only` to re-validate the table. This option applies only when validation is enabled for the replication.
         */
        public var reloadOption: aws.sdk.kotlin.services.databasemigrationservice.model.ReloadOptionValue? = null
        /**
         * The Amazon Resource Name of the replication config for which to reload tables.
         */
        public var replicationConfigArn: kotlin.String? = null
        /**
         * The list of tables to reload.
         */
        public var tablesToReload: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReloadReplicationTablesRequest) : this() {
            this.reloadOption = x.reloadOption
            this.replicationConfigArn = x.replicationConfigArn
            this.tablesToReload = x.tablesToReload
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy